Function at 0x100362f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e93a
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x1009c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x800], eax
mov eax, dword [esi + 0x3c]
add eax, ecx
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
test dword [edi + 0x19c], 0xff000000
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x814], eax
je 0x100364bd
lea eax, [ebp - 0x848]
mov dword [ebp - 0x848], 0
push eax
sub esp, 8
mov dword [ebp - 0x844], 0
cmp dword [edi + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x7fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x10036411
test eax, eax
je 0x100363ba
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x840], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100363e4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push 1
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xorps xmm0, xmm0
push 1
movups xmmword [ecx], xmm0
push 0x1008ca28
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003620
jmp 0x10036460
test eax, eax
je 0x10036419
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x840], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10036443
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x18]
push dword [eax + 0xf4]
add eax, 0xe4
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x844]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
jne 0x1003649e
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
je 0x100364a4
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x100364bd
mov edx, ecx
mov dword [ebp - 0x804], edx
jmp 0x100364c7
mov dword [ebp - 0x804], 0
lea eax, [ebp - 0x850]
mov dword [ebp - 0x850], 0
push eax
sub esp, 8
mov dword [ebp - 0x84c], 0
mov ecx, esp
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x7fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036519
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x840], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10036543
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 7
lea eax, [esi + 0x1bf4]
push dword [esi + 0x1c04]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
lea eax, [ebp - 0x858]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x7fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036593
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x840], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100365bd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 9
lea eax, [esi + 0x1c0c]
push dword [esi + 0x1c1c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
test dword [eax + 0x1a0], 0xff000000
je 0x1003663b
test dword [eax + 0x1a4], 0xff000000
je 0x1003663b
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x858]
mov byte [ebp - 0x82a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x854]
add eax, dword [ebp - 0x84c]
cmp dword [ebp - 0x850], edi
mov dword [ebp - 0x834], eax
cmovg edi, dword [ebp - 0x850]
jmp 0x1003664e
mov byte [ebp - 0x82a], 0
xor edi, edi
mov dword [ebp - 0x834], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10036785
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10036785
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036689
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100366a9
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x848]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031ab0
mov ecx, dword [eax]
cmp ecx, edi
mov eax, dword [eax + 4]
cmovg edi, ecx
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x80c], edi
cmp dword [0x100a16bc], edi
jb 0x100366fe
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100366fe
mov edi, dword [0x100a16bc]
sub edi, dword [ebp - 0x80c]
shr edi, 1
jmp 0x10036700
xor edi, edi
mov ecx, dword [ebp - 0x828]
mov edx, dword [ebp - 0x814]
add ecx, edi
add edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x800]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x814]
add eax, edi
push eax
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, esi
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
mov edi, dword [ebp - 0x838]
add eax, dword [ebp - 0x828]
add dword [ebp - 0x800], eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 8]
add eax, dword [ebp - 0x824]
add eax, dword [ebp - 0x834]
cmp edi, eax
cmovbe edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x838], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10036785
add edi, dword [0x100a16bc]
mov dword [ebp - 0x838], edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003688a
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100367af
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100367cf
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + 0x1c]
mov ecx, esi
add eax, 0x24
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x848]
push eax
call fcn.10031ab0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x824], eax
cmp dword [0x100a16bc], ecx
jl 0x10036823
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x828]
test al, al
je 0x10036823
mov eax, dword [0x100a16bc]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x10036825
xor edi, edi
mov edx, dword [ebp - 0x814]
add ecx, edi
add edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x800]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x814]
add eax, edi
push eax
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x3c]
add ecx, dword [esi + 8]
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
add eax, dword [ebp - 0x828]
add dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x824]
add eax, ecx
mov ecx, dword [ebp - 0x838]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x838], ecx
xor edi, edi
lea eax, [ebp - 0x330]
push 0x190
push edi
push eax
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x83c], edi
call fcn.10054380
push 0x190
lea eax, [ebp - 0x1a0]
push edi
push eax
call fcn.10054380
push 0x190
lea eax, [ebp - 0x4c0]
push edi
push eax
call fcn.10054380
mov eax, dword [esi + 0x34]
add esp, 0x24
test eax, eax
je 0x10037265
mov ecx, dword [esi + 0x3c]
xor edx, edx
add ecx, dword [esi + 8]
mov dword [ebp - 0x808], ecx
mov dword [ebp - 0x818], edx
test eax, eax
jle 0x10037045
lea edi, [esi + 0xd30]
mov dword [ebp - 0x814], edx
mov dword [ebp - 0x810], edi
mov edi, edx
nop dword [eax]
cmp dword [ebp - 0x814], 0xe10
jge 0x10037045
test edx, edx
jle 0x10036933
mov eax, dword [esi + 0x18]
add ecx, dword [eax + 0x128]
mov dword [ebp - 0x808], ecx
mov eax, dword [esi + 0x30]
cmp dword [eax], edx
jne 0x10036946
add ecx, dword [ebp - 0x804]
mov dword [ebp - 0x808], ecx
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
cmp dword [ecx + 0x14], 7
jbe 0x10036957
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push edx
push dword [esi + 0x2c]
lea ecx, [ebp - 0x7f8]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea eax, [ebp - 0x828]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x85c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036994
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x844], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x100369be
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x7f8]
push dword [ebp - 0x7e8]
xorps xmm0, xmm0
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x840], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
cmp dword [ebp - 0x7e4], 7
mov ecx, dword [ebp - 0x7e8]
cmova edx, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], edx
mov dword [ebp - 0x820], ecx
cmp ecx, 0x7ffffffe
ja 0x10037924
mov dword [eax + 0x14], 7
cmp ecx, 7
ja 0x10036a30
mov dword [eax + 0x10], ecx
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
jmp 0x10036a97
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x10036a42
mov ecx, SysReAllocString
jmp 0x10036a4d
cmp ecx, 0xa
mov edx, 0xa
cmovb ecx, edx
mov dword [ebp - 0x80c], ecx
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.100035b0
mov edx, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x820]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x80c]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x820]
mov dword [edx], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x7fc]
push eax
call fcn.10053de0
add esp, 0x14
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x808]
mov eax, dword [ebp - 0x828]
add eax, dword [ebp - 0x800]
add ecx, edx
push ecx
push eax
mov eax, dword [ebp - 0x810]
push edx
push dword [ebp - 0x800]
add eax, 0xfffff9b8
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x824]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, ecx
mov dword [ebp - 0x820], ecx
add dword [ebp - 0x808], eax
mov eax, dword [esi + 0x24]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x7fc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x818]
jbe 0x1003791f
mov edx, dword [ebp - 0x7fc]
lea eax, [ebp - 0x828]
add edx, dword [ebp - 0x814]
push eax
sub esp, 8
mov dword [ebp - 0x7fc], edx
mov ecx, esp
mov dword [ebp - 0x844], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036b65
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x85c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10036b95
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x7fc]
mov byte [ebp - 4], 0xe
push dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov ecx, dword [esi + 0x44]
imul ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x808]
mov eax, dword [ebp - 0x828]
add eax, dword [ebp - 0x800]
add ecx, edx
push ecx
push eax
mov eax, dword [ebp - 0x810]
push edx
push dword [ebp - 0x800]
add eax, 0xfffffff8
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x818]
add dword [ebp - 0x808], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x824]
imul eax, dword [esi + 0x44]
add dword [ebp - 0x820], eax
mov eax, dword [esi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [esi + 0x18]
jne 0x10036d92
test dword [eax + 0x198], 0xff000000
jne 0x10036da2
mov byte [ebp - 0x829], 0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x7fc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x818]
jbe 0x1003791f
mov eax, dword [ebp - 0x7fc]
add eax, dword [ebp - 0x814]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x80c], eax
lea edx, [eax + 0x10]
je 0x10036dae
cmp dword [esi + 0x48], 0
je 0x10036dae
cmp byte [ebp - 0x829], 0
je 0x10036dae
lea eax, [ebp - 0x828]
mov edi, edx
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x844], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036cd5
lock inc dword [eax + 4]
mov edi, dword [ebp - 0x80c]
add edi, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x85c], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10036d01
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, edi
mov byte [ebp - 4], 0x10
push dword [edx]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x80c]
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
imul ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x808]
add edx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x828]
mov edi, dword [ebp - 0x800]
add eax, edi
add ecx, edx
mov dword [ebp - 0x808], edx
push ecx
push eax
mov eax, dword [ebp - 0x810]
push edx
push edi
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x824]
add dword [ebp - 0x808], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x824]
imul eax, dword [esi + 0x48]
add dword [ebp - 0x820], eax
jmp 0x10036dd8
test dword [eax + 0x168], 0xff000000
je 0x10036c36
mov byte [ebp - 0x829], 1
jmp 0x10036c3d
mov eax, dword [ebp - 0x828]
mov edx, dword [ebp - 0x800]
add eax, edx
mov ecx, dword [ebp - 0x808]
push ecx
push eax
mov eax, dword [ebp - 0x810]
push ecx
push edx
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x810]
mov edi, dword [eax]
mov ecx, dword [edx - 0x644]
mov eax, ecx
sub eax, dword [ebp - 0x804]
cmp dword [ebp - 0x818], edi
mov dword [ebp - 0x7fc], edi
mov edi, ecx
cmove edi, eax
mov dword [ebp - 0x80c], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x80c], edi
mov edi, dword [ebp - 0x830]
cmp dword [eax + 0x114], 0
jle 0x10036f55
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add eax, ecx
cmp dword [ebp - 0x80c], eax
jle 0x10036f55
mov eax, dword [esi + 0x3c]
sub eax, ecx
mov ecx, dword [esi + 0x18]
add eax, dword [edx + 0x644]
cmp eax, dword [ecx + 0x114]
mov ecx, dword [ebp - 0x818]
jle 0x10036f55
mov eax, dword [edx + 0x634]
mov edi, dword [ebp - 0x83c]
cmp edi, eax
cmovle edi, eax
xor eax, eax
cmp ecx, dword [ebp - 0x7fc]
mov ecx, dword [esi + 0x18]
cmove eax, dword [ebp - 0x804]
add eax, dword [esi + 0x3c]
add eax, dword [esi + 8]
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x840], edi
mov edi, eax
mov eax, dword [ebp - 0x830]
sub edi, dword [edx - 0x644]
push edi
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
mov dword [ebp - 0x80c], eax
lea eax, [edx - 0x648]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x810]
push edi
push dword [ebp - 0x80c]
add eax, 0xfffffff8
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x810]
push edi
mov edi, dword [ebp - 0x80c]
add eax, 0x638
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x800]
mov eax, dword [edx + 0x644]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp - 0x830]
mov esi, dword [ebp - 0x83c]
mov dword [ebp + eax*4 - 0x4c0], ecx
add ecx, edi
mov edi, dword [ebp - 0x830]
mov eax, dword [ebp - 0x820]
inc edi
add dword [ebp - 0x808], eax
cmp dword [ebp - 0x840], esi
mov dword [ebp - 0x800], ecx
cmovg esi, dword [ebp - 0x840]
mov dword [ebp - 0x83c], esi
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 0x830], edi
jmp 0x10036f76
mov ecx, dword [ebp - 0x808]
mov eax, ecx
cmp dword [ebp - 0x83c], ecx
mov ecx, dword [ebp - 0x800]
cmovg eax, dword [ebp - 0x83c]
mov dword [ebp - 0x83c], eax
mov eax, dword [edx - 0x640]
sub eax, dword [edx - 0x648]
mov edx, dword [edx]
mov dword [ebp + edi*4 - 0x4c0], ecx
mov ecx, dword [ebp + edi*4 - 0x330]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [ebp - 0x810]
sub edx, dword [eax - 8]
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
mov eax, dword [ecx + 0x640]
sub eax, dword [ecx + 0x638]
cmp edx, eax
mov byte [ebp - 4], 1
cmovle edx, eax
mov eax, dword [ebp - 0x7e4]
mov dword [ebp + edi*4 - 0x330], edx
mov edx, dword [ebp - 0x818]
mov dword [ebp + edx*4 - 0x1a0], edi
cmp eax, 7
jbe 0x1003701c
mov edx, dword [ebp - 0x7f8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037006
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003791a
push ecx
push edx
call fcn.1004dfa8
mov edx, dword [ebp - 0x818]
add esp, 8
mov ecx, dword [ebp - 0x810]
add dword [ebp - 0x814], 0x24
inc edx
mov eax, dword [esi + 0x34]
add ecx, 0x10
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x810], ecx
cmp edx, eax
jge 0x10037045
mov ecx, dword [ebp - 0x808]
jmp 0x10036910
xor ecx, ecx
mov dword [ebp - 0x810], ecx
test eax, eax
jle 0x1003721b
lea edi, [esi + 0xd30]
nop dword [eax + eax]
cmp ecx, 0x64
jge 0x10037215
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0x644]
mov ecx, edx
sub ecx, dword [ebp - 0x804]
mov esi, dword [ebp - 0x810]
cmp esi, dword [eax]
mov eax, esi
push dword [edi + 0x644]
cmove edx, ecx
mov eax, dword [ebp + eax*4 - 0x1a0]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp + eax*4 - 0x4c0]
mov eax, dword [ebp + eax*4 - 0x330]
add eax, ecx
push eax
push edx
push ecx
lea eax, [edi - 0xc88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp - 0x81c]
xor ecx, ecx
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x100]
cmp edx, 1
jne 0x10037139
mov ecx, dword [ebp - 0x814]
mov eax, dword [edi - 0x648]
sub eax, dword [edi - 0x640]
add eax, dword [ebp + ecx*4 - 0x330]
cdq
sub eax, edx
mov edx, dword [ebp - 0x814]
mov ecx, eax
mov eax, dword [edi - 8]
sub eax, dword [edi]
sar ecx, 1
add eax, dword [ebp + edx*4 - 0x330]
cdq
sub eax, edx
mov edx, dword [ebp - 0x814]
sar eax, 1
mov dword [ebp - 0x820], eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, dword [ebp + edx*4 - 0x330]
cdq
sub eax, edx
sar eax, 1
jmp 0x10037188
test edx, edx
jne 0x10037145
cmp byte [eax + 0x104], cl
jne 0x10037152
cmp edx, 2
jne 0x1003718e
cmp byte [eax + 0x104], cl
jne 0x1003718e
mov eax, dword [ebp - 0x814]
mov ecx, dword [edi - 0x648]
sub ecx, dword [edi - 0x640]
mov edx, dword [ebp + eax*4 - 0x330]
add ecx, edx
mov eax, dword [edi - 8]
sub eax, dword [edi]
add eax, edx
mov dword [ebp - 0x820], eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, edx
mov dword [ebp - 0x818], eax
push 0
push ecx
lea eax, [edi - 0x648]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x820]
lea eax, [edi - 8]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x818]
lea eax, [edi + 0x638]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x810]
dec eax
cmp ecx, eax
jge 0x100371e5
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x100371e7
cmp ecx, eax
jne 0x10037202
mov edx, dword [ebp - 0x83c]
mov eax, edx
cmp dword [ebp - 0x838], edx
cmovg eax, dword [ebp - 0x838]
mov dword [edi - 0xc7c], eax
inc ecx
add edi, 0x10
mov dword [ebp - 0x810], ecx
cmp ecx, dword [esi + 0x34]
jl 0x10037060
mov edi, dword [ebp - 0x830]
mov eax, dword [ebp - 0x83c]
cmp dword [ebp - 0x838], eax
cmovg eax, dword [ebp - 0x838]
mov ecx, eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x838], ecx
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [esi + eax*8 + 0xa8]
mov eax, dword [ebp + edi*4 - 0x4c0]
sub eax, dword [esi + 4]
add eax, dword [ebp + edi*4 - 0x330]
movups xmmword [esi + 0x98], xmm0
mov dword [ebp - 0x800], eax
jmp 0x1003727d
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x800]
sub ecx, dword [eax + 0x124]
sub ecx, dword [esi + 4]
mov dword [ebp - 0x800], ecx
push 0x190
lea eax, [ebp - 0x650]
push 0
push eax
call fcn.10054380
push 0x190
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.10054380
mov eax, dword [esi + 0x18]
add esp, 0x18
cmp byte [eax + 0x104], 0
jne 0x100374f5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x100372d1
cmp dword [ecx + 0x10], 0
je 0x100372d1
mov eax, dword [esi + 0x78]
jmp 0x100372fc
cmp dword [ecx + 0x34], 0
je 0x100372df
mov eax, dword [esi + 0x88]
jmp 0x100372fc
cmp dword [esi + 0x34], 0
je 0x100372f6
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
jmp 0x1003730d
mov eax, dword [ebp - 0x844]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
test edx, edx
je 0x100374f5
xor ecx, ecx
test edi, edi
js 0x100373cd
xor eax, eax
test edx, edx
jle 0x10037337
nop dword [eax]
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x10037330
inc eax
cmp eax, edx
jl 0x10037320
jmp 0x10037337
mov dword [ebp + ecx*4 - 0x650], eax
inc ecx
cmp ecx, edi
jle 0x10037317
mov eax, edi
mov dword [ebp - 0x81c], edi
nop dword [eax]
nop dword [eax + eax]
lea ecx, [eax*4]
lea edx, [ebp - 0x650]
mov dword [ebp - 0x7fc], ecx
add edx, ecx
cmp eax, edi
mov eax, dword [edx]
jne 0x1003737c
mov ecx, dword [ebp - 0x804]
add eax, eax
sub ecx, dword [esi + eax*8 + 0xa8]
jmp 0x10037399
mov ecx, dword [edx + 4]
add eax, eax
add ecx, 0xb
add ecx, ecx
mov ecx, dword [esi + ecx*8]
sub ecx, dword [esi + eax*8 + 0xa8]
mov eax, dword [esi + 0x18]
add ecx, dword [eax + 0x128]
mov eax, dword [edx]
mov edx, dword [ebp - 0x7fc]
shl eax, 4
push 0
add eax, 0xa8
push ecx
add eax, esi
mov dword [ebp + edx - 0x7e0], ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x81c]
sub eax, 1
mov dword [ebp - 0x81c], eax
jns 0x10037350
xor ecx, ecx
mov dword [ebp - 0x81c], ecx
cmp dword [esi + 0x34], ecx
jle 0x10037483
lea edi, [esi + 0x6e8]
mov dword [ebp - 0x804], edi
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x1a0]
lea edx, [ebp - 0x7e0]
shl eax, 2
add edx, eax
mov dword [ebp - 0x7fc], edx
cmp ecx, dword [ebp + eax - 0x650]
je 0x10037428
push 0
push dword [edx]
lea eax, [edi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x7fc]
mov edi, dword [edx]
push 0
push edi
push dword [ebp - 0x804]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x804]
push 0
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push edi
mov edi, dword [ebp - 0x804]
lea eax, [edi + 0xc80]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x81c]
add edi, 0x10
inc ecx
mov dword [ebp - 0x804], edi
mov dword [ebp - 0x81c], ecx
cmp ecx, dword [esi + 0x34]
jl 0x100373f0
mov eax, dword [esi + 0x30]
mov ecx, esi
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [esi + eax*8 + 0xa8]
mov eax, dword [esi]
movups xmmword [esi + 0x98], xmm0
mov eax, dword [eax + 0x50]
call eax
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
test al, al
jne 0x100374cf
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x100374cf
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x78]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [esi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x100374f5
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x88]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [esi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
add edx, dword [ebp - 0x800]
add edi, dword [ebp - 0x838]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x804], edx
mov dword [ebp - 0x80c], edi
je 0x10037547
cmp dword [esi + 0x34], 0
jne 0x10037547
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x108]
cmp edx, eax
cmovle edx, eax
mov eax, dword [ecx + 0x110]
cmp edi, eax
mov dword [ebp - 0x804], edx
cmovle edi, eax
mov dword [ebp - 0x80c], edi
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100327d0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x804]
add edx, dword [ebp - 0x80c]
push edx
mov dword [esi + 0x74], edx
lea eax, [eax + ecx*2]
push eax
push 0
lea ecx, [esi + 0x19c8]
mov dword [esi + 0x70], eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 0x82a], 0
je 0x10037677
cmp dword [esi + 0x34], 0
je 0x10037677
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10037677
mov edi, dword [edi + 0x134]
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
sub edi, dword [esi + 0x3c]
sub edi, dword [esi + 8]
sub edi, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x850]
add edi, dword [esi + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x834], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x834]
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0x84c]
add eax, edi
mov dword [ebp - 0x834], edx
push eax
lea eax, [edx + ecx]
push eax
push edi
push edx
lea edi, [esi + 0x1bd4]
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x834]
mov ecx, dword [eax + 0x12c]
add ecx, dword [esi + 0x1be0]
mov eax, dword [ebp - 0x854]
add eax, ecx
push eax
mov eax, dword [ebp - 0x858]
add eax, edx
push eax
push ecx
push edx
lea eax, [esi + 0x1be4]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10037677
mov eax, dword [0x100a16bc]
neg eax
push eax
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a16bc]
neg eax
push eax
push 0
lea eax, [esi + 0x1be4]
push eax
call edi
lea eax, [esi + 0x19c8]
push eax
lea edi, [esi + 0x19b8]
push edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 8]
not eax
push eax
mov eax, dword [esi + 4]
not eax
push eax
push edi
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10032350
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x34]
cmp byte [eax + 0x104], dl
je 0x100377c1
test ecx, ecx
jle 0x100378bc
nop word [eax + eax]
mov al, byte [esi + 0x19dc]
lea ecx, [esi + edx*4]
mov byte [edx + ecx + 0x19dc], al
cmp byte [esi + 0x19dc], 0
je 0x100377b2
mov edi, dword [ebp + edx*4 - 0x1a0]
mov ecx, dword [ebp - 0x830]
cmp edi, ecx
jne 0x1003770b
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], 0
mov eax, edx
lea eax, [eax + eax*4]
mov dword [ebp - 0x81c], eax
test edi, edi
jne 0x10037722
mov word [eax + esi + 0x19d8], di
test edx, edx
jne 0x1003773d
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19d8], al
test ecx, ecx
jne 0x1003773d
mov byte [esi + 0x19da], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x10037771
mov eax, dword [ebp - 0x81c]
mov byte [eax + esi + 0x19db], 1
test ecx, ecx
jne 0x10037771
mov eax, dword [esi + 0x18]
mov edi, dword [ebp - 0x81c]
mov al, byte [eax + 0x58]
mov byte [edi + esi + 0x19d9], al
mov edi, dword [ebp + edx*4 - 0x1a0]
cmp edi, ecx
jne 0x10037790
test ecx, ecx
jle 0x10037790
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x10037790
lea eax, [esi + edx*4]
mov byte [edx + eax + 0x19da], 1
test edi, edi
jne 0x100377b2
test ecx, ecx
jle 0x100377b2
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100377b2
mov eax, dword [esi + 0x18]
lea ecx, [esi + edx*4]
mov al, byte [eax + 0x58]
mov byte [edx + ecx + 0x19d9], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x100376d0
jmp 0x100378bc
test ecx, ecx
jle 0x100378bc
nop dword [eax]
mov al, byte [esi + 0x19dc]
lea ecx, [esi + edx*4]
mov byte [edx + ecx + 0x19dc], al
cmp byte [esi + 0x19dc], 0
je 0x100378b2
mov edi, dword [ebp + edx*4 - 0x1a0]
test edi, edi
jne 0x10037803
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], di
mov ecx, dword [ebp - 0x830]
mov eax, edx
lea eax, [eax + eax*4]
mov dword [ebp - 0x81c], eax
cmp edi, ecx
jne 0x10037822
mov word [eax + esi + 0x19d8], 0
test edx, edx
jne 0x1003783d
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19da], al
test ecx, ecx
jne 0x1003783d
mov byte [esi + 0x19d8], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x10037871
mov eax, dword [ebp - 0x81c]
mov byte [eax + esi + 0x19d9], 1
test ecx, ecx
jne 0x10037871
mov eax, dword [esi + 0x18]
mov edi, dword [ebp - 0x81c]
mov al, byte [eax + 0x58]
mov byte [edi + esi + 0x19db], al
mov edi, dword [ebp + edx*4 - 0x1a0]
cmp edi, ecx
jne 0x10037890
test ecx, ecx
jle 0x10037890
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x10037890
lea eax, [esi + edx*4]
mov byte [edx + eax + 0x19d8], 1
test edi, edi
jne 0x100378b2
test ecx, ecx
jle 0x100378b2
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100378b2
mov eax, dword [esi + 0x18]
lea ecx, [esi + edx*4]
mov al, byte [eax + 0x58]
mov byte [edx + ecx + 0x19db], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x100377d0
mov eax, dword [esi + 8]
neg eax
push eax
mov eax, dword [esi + 4]
add esi, 0x19c8
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100378fd
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100378fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100378fd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004df9a
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005dcef
call fcn.10005a20
call fcn.100036c0
int3