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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e97a
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 0x1003650d
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 0x10036461
test eax, eax
je 0x1003640a
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 0x10036434
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 0x100364b0
test eax, eax
je 0x10036469
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 0x10036493
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 0x100364ee
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
je 0x100364f4
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x1003650d
mov edx, ecx
mov dword [ebp - 0x804], edx
jmp 0x10036517
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 0x10036569
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 0x10036593
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 0x100365e3
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 0x1003660d
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 0x1003668b
test dword [eax + 0x1a4], 0xff000000
je 0x1003668b
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 0x1003669e
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 0x100367d5
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x100367d5
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100366d9
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 0x100366f9
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.10031af0
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 0x1003674e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003674e
mov edi, dword [0x100a16bc]
sub edi, dword [ebp - 0x80c]
shr edi, 1
jmp 0x10036750
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 0x100367d5
add edi, dword [0x100a16bc]
mov dword [ebp - 0x838], edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x100368da
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100367ff
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 0x1003681f
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.10031af0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x824], eax
cmp dword [0x100a16bc], ecx
jl 0x10036873
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x828]
test al, al
je 0x10036873
mov eax, dword [0x100a16bc]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x10036875
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.100543c0
push 0x190
lea eax, [ebp - 0x1a0]
push edi
push eax
call fcn.100543c0
push 0x190
lea eax, [ebp - 0x4c0]
push edi
push eax
call fcn.100543c0
mov eax, dword [esi + 0x34]
add esp, 0x24
test eax, eax
je 0x100372b5
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 0x10037095
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 0x10037095
test edx, edx
jle 0x10036983
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 0x10036996
add ecx, dword [ebp - 0x804]
mov dword [ebp - 0x808], ecx
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
cmp dword [ecx + 0x14], 7
jbe 0x100369a7
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 0x100369e4
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 0x10036a0e
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 0x10037974
mov dword [eax + 0x14], 7
cmp ecx, 7
ja 0x10036a80
mov dword [eax + 0x10], ecx
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
jmp 0x10036ae7
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x10036a92
mov ecx, SysReAllocString
jmp 0x10036a9d
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.10053e20
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 0x1003796f
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 0x10036bb5
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 0x10036be5
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 0x10036de2
test dword [eax + 0x198], 0xff000000
jne 0x10036df2
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 0x1003796f
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 0x10036dfe
cmp dword [esi + 0x48], 0
je 0x10036dfe
cmp byte [ebp - 0x829], 0
je 0x10036dfe
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 0x10036d25
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 0x10036d51
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 0x10036e28
test dword [eax + 0x168], 0xff000000
je 0x10036c86
mov byte [ebp - 0x829], 1
jmp 0x10036c8d
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 0x10036fa5
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add eax, ecx
cmp dword [ebp - 0x80c], eax
jle 0x10036fa5
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 0x10036fa5
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 0x10036fc6
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 0x1003706c
mov edx, dword [ebp - 0x7f8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10037056
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003796a
push ecx
push edx
call fcn.1004dff6
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 0x10037095
mov ecx, dword [ebp - 0x808]
jmp 0x10036960
xor ecx, ecx
mov dword [ebp - 0x810], ecx
test eax, eax
jle 0x1003726b
lea edi, [esi + 0xd30]
nop dword [eax + eax]
cmp ecx, 0x64
jge 0x10037265
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 0x10037189
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 0x100371d8
test edx, edx
jne 0x10037195
cmp byte [eax + 0x104], cl
jne 0x100371a2
cmp edx, 2
jne 0x100371de
cmp byte [eax + 0x104], cl
jne 0x100371de
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 0x10037235
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x10037237
cmp ecx, eax
jne 0x10037252
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 0x100370b0
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 0x100372cd
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.100543c0
push 0x190
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.100543c0
mov eax, dword [esi + 0x18]
add esp, 0x18
cmp byte [eax + 0x104], 0
jne 0x10037545
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x10037321
cmp dword [ecx + 0x10], 0
je 0x10037321
mov eax, dword [esi + 0x78]
jmp 0x1003734c
cmp dword [ecx + 0x34], 0
je 0x1003732f
mov eax, dword [esi + 0x88]
jmp 0x1003734c
cmp dword [esi + 0x34], 0
je 0x10037346
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
jmp 0x1003735d
mov eax, dword [ebp - 0x844]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
test edx, edx
je 0x10037545
xor ecx, ecx
test edi, edi
js 0x1003741d
xor eax, eax
test edx, edx
jle 0x10037387
nop dword [eax]
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x10037380
inc eax
cmp eax, edx
jl 0x10037370
jmp 0x10037387
mov dword [ebp + ecx*4 - 0x650], eax
inc ecx
cmp ecx, edi
jle 0x10037367
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 0x100373cc
mov ecx, dword [ebp - 0x804]
add eax, eax
sub ecx, dword [esi + eax*8 + 0xa8]
jmp 0x100373e9
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 0x100373a0
xor ecx, ecx
mov dword [ebp - 0x81c], ecx
cmp dword [esi + 0x34], ecx
jle 0x100374d3
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 0x10037478
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 0x10037440
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 0x1003751f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x1003751f
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 0x10037545
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 0x10037597
cmp dword [esi + 0x34], 0
jne 0x10037597
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.10032820
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 0x100376c7
cmp dword [esi + 0x34], 0
je 0x100376c7
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x100376c7
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 0x100376c7
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.10032390
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x34]
cmp byte [eax + 0x104], dl
je 0x10037811
test ecx, ecx
jle 0x1003790c
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 0x10037802
mov edi, dword [ebp + edx*4 - 0x1a0]
mov ecx, dword [ebp - 0x830]
cmp edi, ecx
jne 0x1003775b
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 0x10037772
mov word [eax + esi + 0x19d8], di
test edx, edx
jne 0x1003778d
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19d8], al
test ecx, ecx
jne 0x1003778d
mov byte [esi + 0x19da], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100377c1
mov eax, dword [ebp - 0x81c]
mov byte [eax + esi + 0x19db], 1
test ecx, ecx
jne 0x100377c1
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 0x100377e0
test ecx, ecx
jle 0x100377e0
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x100377e0
lea eax, [esi + edx*4]
mov byte [edx + eax + 0x19da], 1
test edi, edi
jne 0x10037802
test ecx, ecx
jle 0x10037802
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037802
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 0x10037720
jmp 0x1003790c
test ecx, ecx
jle 0x1003790c
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 0x10037902
mov edi, dword [ebp + edx*4 - 0x1a0]
test edi, edi
jne 0x10037853
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 0x10037872
mov word [eax + esi + 0x19d8], 0
test edx, edx
jne 0x1003788d
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19da], al
test ecx, ecx
jne 0x1003788d
mov byte [esi + 0x19d8], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100378c1
mov eax, dword [ebp - 0x81c]
mov byte [eax + esi + 0x19d9], 1
test ecx, ecx
jne 0x100378c1
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 0x100378e0
test ecx, ecx
jle 0x100378e0
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x100378e0
lea eax, [esi + edx*4]
mov byte [edx + eax + 0x19d8], 1
test edi, edi
jne 0x10037902
test ecx, ecx
jle 0x10037902
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037902
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 0x10037820
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 0x1003794d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003794d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003794d
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.1004dfe8
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005dd2f
call fcn.10005a20
call fcn.100036c0
int3