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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d96a
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x1009b01c]
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 - 0x844], 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 - 0x804], eax
mov eax, dword [esi + 0x3c]
add eax, ecx
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
test dword [edi + 0x19c], 0xff000000
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x808], eax
je 0x10035e6d
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x84c], 0
push eax
sub esp, 8
mov dword [ebp - 0x848], 0
cmp dword [edi + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x830], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x10035dc1
test eax, eax
je 0x10035d6a
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 - 0x7fc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10035d94
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 0x1008ba48
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003660
jmp 0x10035e10
test eax, eax
je 0x10035dc9
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 - 0x7fc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10035df3
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 - 0x84c]
mov ecx, dword [ebp - 0x848]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
jne 0x10035e4e
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
je 0x10035e54
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x10035e6d
mov edx, ecx
mov dword [ebp - 0x80c], edx
jmp 0x10035e77
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0
push eax
sub esp, 8
mov dword [ebp - 0x850], 0
mov ecx, esp
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x830], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035ec9
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 - 0x7fc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10035ef3
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 - 0x85c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x830], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035f43
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 - 0x7fc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10035f6d
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 0x10035feb
test dword [eax + 0x1a4], 0xff000000
je 0x10035feb
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x85c]
mov byte [ebp - 0x82a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x858]
add eax, dword [ebp - 0x850]
cmp dword [ebp - 0x854], edi
mov dword [ebp - 0x810], eax
cmovg edi, dword [ebp - 0x854]
jmp 0x10035ffe
mov byte [ebp - 0x82a], 0
xor edi, edi
mov dword [ebp - 0x810], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10036137
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10036137
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036039
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 0x10036059
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x84c]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031470
mov ecx, dword [eax]
cmp ecx, edi
mov eax, dword [eax + 4]
cmovg edi, ecx
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x7fc], edi
cmp dword [0x100a065c], edi
jb 0x100360ae
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100360ae
mov edi, dword [0x100a065c]
sub edi, dword [ebp - 0x7fc]
shr edi, 1
jmp 0x100360b0
xor edi, edi
mov ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x808]
add ecx, edi
add edx, dword [ebp - 0x820]
mov eax, dword [ebp - 0x804]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x808]
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, dword [esi + 8]
add ecx, dword [ebp - 0x820]
add ecx, dword [ebp - 0x810]
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
mov edi, dword [ebp - 0x834]
add eax, dword [ebp - 0x824]
add dword [ebp - 0x804], eax
mov eax, dword [esi + 0x3c]
add eax, ecx
mov ecx, esi
cmp edi, eax
cmovbe edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x834], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10036137
add edi, dword [0x100a065c]
mov dword [ebp - 0x834], edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003623c
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036161
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 0x10036181
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 - 0x84c]
push eax
call fcn.10031470
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x820], eax
cmp dword [0x100a065c], ecx
jl 0x100361d5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x824]
test al, al
je 0x100361d5
mov eax, dword [0x100a065c]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x100361d7
xor edi, edi
mov edx, dword [ebp - 0x808]
add ecx, edi
add edx, dword [ebp - 0x820]
mov eax, dword [ebp - 0x804]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x808]
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 + 8]
add ecx, dword [ebp - 0x820]
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
add eax, dword [ebp - 0x824]
add dword [ebp - 0x804], eax
mov eax, dword [esi + 0x3c]
add eax, ecx
mov ecx, dword [ebp - 0x834]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x834], ecx
xor edi, edi
lea eax, [ebp - 0x330]
push 0x190
push edi
push eax
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x83c], edi
call fcn.100535b0
push 0x190
lea eax, [ebp - 0x1a0]
push edi
push eax
call fcn.100535b0
push 0x190
lea eax, [ebp - 0x4c0]
push edi
push eax
call fcn.100535b0
mov eax, dword [esi + 0x34]
add esp, 0x24
test eax, eax
je 0x10036c2b
mov ecx, dword [esi + 8]
xor edx, edx
add ecx, dword [esi + 0x3c]
mov dword [ebp - 0x818], edx
test eax, eax
jle 0x10036a10
lea edi, [esi + 0xd30]
mov dword [ebp - 0x808], edx
mov dword [ebp - 0x814], edi
mov edi, edx
nop dword [eax + eax]
cmp dword [ebp - 0x808], 0xe10
jge 0x10036a10
test edx, edx
jle 0x100362dd
mov eax, dword [esi + 0x18]
add ecx, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x80c]
add edi, ecx
mov dword [ebp - 0x800], edi
cmp dword [eax], edx
mov eax, edi
cmovne eax, ecx
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
mov dword [ebp - 0x800], eax
cmp dword [ecx + 0x14], 8
jb 0x1003630c
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 - 0x824]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x830], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036349
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 - 0x848], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10036373
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 ecx, esp
mov dword [ebp - 0x7fc], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x7e4], 8
mov eax, dword [ebp - 0x7e8]
cmovae edx, dword [ebp - 0x7f8]
mov dword [ebp - 0x840], edx
mov dword [ebp - 0x838], eax
cmp eax, 0x7ffffffe
ja 0x100372c1
mov dword [ecx + 0x14], 7
cmp eax, 8
jae 0x100363e4
mov dword [ecx + 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
jmp 0x10036444
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100363f5
mov eax, SysReAllocString
jmp 0x10036400
cmp eax, 0xa
mov edx, 0xa
cmovb eax, edx
mov dword [ebp - 0x81c], eax
inc eax
push eax
call fcn.10003600
mov ecx, dword [ebp - 0x7fc]
mov edx, dword [ebp - 0x838]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x81c]
mov dword [ecx], eax
mov dword [ecx + 0x14], edx
mov ecx, dword [ebp - 0x838]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x840]
push eax
call fcn.10053010
add esp, 0xc
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 - 0x820]
mov eax, dword [ebp - 0x824]
add eax, dword [ebp - 0x804]
mov edx, dword [ebp - 0x814]
add edx, 0xfffff9b8
add ecx, dword [ebp - 0x800]
push ecx
push eax
push dword [ebp - 0x800]
mov dword [ebp - 0x840], edx
push dword [ebp - 0x804]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x820]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, ecx
mov dword [ebp - 0x81c], ecx
add eax, dword [ebp - 0x800]
mov dword [ebp - 0x800], 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 0x100372bc
mov edx, dword [ebp - 0x808]
lea eax, [ebp - 0x824]
add edx, dword [ebp - 0x7fc]
push eax
sub esp, 8
mov dword [ebp - 0x7fc], edx
mov ecx, esp
mov dword [ebp - 0x848], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036522
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 - 0x830], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10036552
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 - 0x820]
mov edx, dword [ebp - 0x800]
mov eax, dword [ebp - 0x824]
add eax, dword [ebp - 0x804]
mov edi, dword [ebp - 0x814]
add ecx, edx
add edi, 0xfffffff8
push ecx
push eax
push edx
push dword [ebp - 0x804]
mov dword [ebp - 0x830], edi
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x818]
mov edi, dword [ebp - 0x828]
add dword [ebp - 0x800], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x820]
imul eax, dword [esi + 0x44]
add dword [ebp - 0x81c], eax
mov eax, dword [esi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [esi + 0x18]
jne 0x10036756
test dword [eax + 0x198], 0xff000000
jne 0x10036766
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 0x100372bc
mov edx, dword [ebp - 0x7fc]
add edx, dword [ebp - 0x808]
mov dword [ebp - 0x7fc], edx
cmp dword [edx + 0x10], 0
je 0x10036772
cmp dword [esi + 0x48], 0
je 0x10036772
cmp byte [ebp - 0x829], 0
je 0x10036772
lea eax, [ebp - 0x824]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x848], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036690
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], 0xf
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x838], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x100366c0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x7fc]
mov byte [ebp - 4], 0x10
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 eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
imul ecx, dword [ebp - 0x820]
mov edx, dword [ebp - 0x800]
add edx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x824]
add eax, dword [ebp - 0x804]
add ecx, edx
mov dword [ebp - 0x800], edx
push ecx
push eax
mov eax, dword [ebp - 0x814]
push edx
push dword [ebp - 0x804]
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x820]
mov edi, dword [ebp - 0x828]
add dword [ebp - 0x800], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x820]
imul eax, dword [esi + 0x48]
add dword [ebp - 0x81c], eax
jmp 0x1003679c
test dword [eax + 0x168], 0xff000000
je 0x100365ff
mov byte [ebp - 0x829], 1
jmp 0x10036606
mov eax, dword [ebp - 0x824]
mov edx, dword [ebp - 0x804]
add eax, edx
mov ecx, dword [ebp - 0x800]
push ecx
push eax
mov eax, dword [ebp - 0x814]
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 - 0x818]
mov eax, dword [eax]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x814]
mov ecx, dword [eax - 0x644]
mov eax, ecx
sub eax, dword [ebp - 0x80c]
cmp edx, dword [ebp - 0x838]
mov dword [ebp - 0x7fc], ecx
cmove ecx, eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x114], 0
jle 0x10036914
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 8]
mov edi, dword [ebp - 0x828]
cmp ecx, eax
jle 0x10036914
mov edx, dword [ebp - 0x814]
mov ecx, dword [esi + 0x3c]
mov eax, ecx
sub eax, dword [esi + 8]
add eax, dword [edx + 0x644]
mov edx, dword [esi + 0x18]
cmp eax, dword [edx + 0x114]
mov edx, dword [ebp - 0x818]
jle 0x10036914
mov eax, dword [ebp - 0x814]
mov edi, dword [ebp - 0x83c]
mov eax, dword [eax + 0x634]
cmp edi, eax
cmovle edi, eax
xor eax, eax
cmp edx, dword [ebp - 0x838]
mov dword [ebp - 0x83c], edi
cmove eax, dword [ebp - 0x80c]
add eax, ecx
mov ecx, dword [esi + 0x18]
add eax, dword [esi + 8]
mov edi, eax
mov dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x828]
sub edi, dword [ebp - 0x7fc]
push edi
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
push dword [ebp - 0x840]
mov dword [ebp - 0x838], eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x814]
push edi
mov edi, dword [ebp - 0x838]
add eax, 0x638
push edi
push eax
mov dword [ebp - 0x7fc], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x804]
mov edx, dword [eax + 0x644]
mov eax, dword [ebp - 0x828]
mov dword [ebp + eax*4 - 0x4c0], ecx
add ecx, edi
mov edi, dword [ebp - 0x828]
mov eax, dword [ebp - 0x81c]
inc edi
add dword [ebp - 0x800], eax
cmp dword [ebp - 0x83c], edx
mov eax, dword [ebp - 0x814]
cmovg edx, dword [ebp - 0x83c]
mov dword [ebp - 0x804], ecx
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x83c], edx
jmp 0x10036947
mov ecx, dword [ebp - 0x800]
mov eax, ecx
cmp dword [ebp - 0x83c], ecx
cmovg eax, dword [ebp - 0x83c]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp - 0x814]
lea ecx, [eax + 0x638]
mov dword [ebp - 0x7fc], ecx
mov ecx, dword [ebp - 0x804]
mov eax, dword [eax - 0x640]
mov dword [ebp + edi*4 - 0x4c0], ecx
mov ecx, dword [ebp - 0x840]
sub eax, dword [ecx]
mov ecx, dword [ebp + edi*4 - 0x330]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [ebp - 0x814]
mov edx, dword [eax]
sub edx, dword [eax - 8]
mov eax, dword [eax + 0x640]
cmp ecx, edx
cmovg edx, ecx
mov ecx, dword [ebp - 0x7fc]
sub eax, dword [ecx]
cmp edx, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7e4]
cmovle edx, eax
mov dword [ebp + edi*4 - 0x330], edx
mov edx, dword [ebp - 0x818]
mov dword [ebp + edx*4 - 0x1a0], edi
cmp ecx, 8
jb 0x100369e9
mov edx, dword [ebp - 0x7f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100369d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100372b7
push ecx
push edx
call fcn.1004d1ad
mov edx, dword [ebp - 0x818]
add esp, 8
add dword [ebp - 0x808], 0x24
inc edx
add dword [ebp - 0x814], 0x10
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x818], edx
cmp edx, eax
jge 0x10036a10
mov ecx, dword [ebp - 0x800]
jmp 0x100362c0
xor ecx, ecx
mov dword [ebp - 0x800], ecx
test eax, eax
jle 0x10036be1
lea edi, [esi + 0xd30]
cmp ecx, 0x64
jge 0x10036bdb
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0x644]
mov ecx, edx
sub ecx, dword [ebp - 0x80c]
mov esi, dword [ebp - 0x800]
cmp esi, dword [eax]
mov eax, esi
push dword [edi + 0x644]
cmove edx, ecx
mov eax, dword [ebp + eax*4 - 0x1a0]
mov dword [ebp - 0x808], 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 - 0x844]
xor ecx, ecx
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x818], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x100]
cmp edx, 1
jne 0x10036aff
mov ecx, dword [ebp - 0x808]
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 - 0x808]
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 - 0x808]
sar eax, 1
mov dword [ebp - 0x81c], 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 0x10036b4e
test edx, edx
jne 0x10036b0b
cmp byte [eax + 0x104], cl
jne 0x10036b18
cmp edx, 2
jne 0x10036b54
cmp byte [eax + 0x104], cl
jne 0x10036b54
mov eax, dword [ebp - 0x808]
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 - 0x81c], 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 - 0x81c]
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 - 0x800]
dec eax
cmp ecx, eax
jge 0x10036bab
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x10036bad
cmp ecx, eax
jne 0x10036bc8
mov edx, dword [ebp - 0x83c]
mov eax, edx
cmp dword [ebp - 0x834], edx
cmovg eax, dword [ebp - 0x834]
mov dword [edi - 0xc7c], eax
inc ecx
add edi, 0x10
mov dword [ebp - 0x800], ecx
cmp ecx, dword [esi + 0x34]
jl 0x10036a26
mov edi, dword [ebp - 0x828]
mov eax, dword [ebp - 0x83c]
cmp dword [ebp - 0x834], eax
cmovg eax, dword [ebp - 0x834]
mov ecx, eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x834], ecx
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [esi + eax*8 + 0xa8]
mov eax, dword [ebp + edi*4 - 0x4c0]
add eax, dword [ebp + edi*4 - 0x330]
sub eax, dword [esi + 4]
movups xmmword [esi + 0x98], xmm0
mov dword [ebp - 0x804], eax
jmp 0x10036c43
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x804]
sub ecx, dword [eax + 0x124]
sub ecx, dword [esi + 4]
mov dword [ebp - 0x804], ecx
push 0x190
lea eax, [ebp - 0x650]
push 0
push eax
call fcn.100535b0
push 0x190
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.100535b0
mov eax, dword [esi + 0x18]
add esp, 0x18
cmp byte [eax + 0x104], 0
jne 0x10036eb5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x10036c97
cmp dword [ecx + 0x10], 0
je 0x10036c97
mov eax, dword [esi + 0x78]
jmp 0x10036cc2
cmp dword [ecx + 0x34], 0
je 0x10036ca5
mov eax, dword [esi + 0x88]
jmp 0x10036cc2
cmp dword [esi + 0x34], 0
je 0x10036cbc
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x80c], eax
jmp 0x10036cd3
mov eax, dword [ebp - 0x848]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x80c], eax
test edx, edx
je 0x10036eb5
xor ecx, ecx
test edi, edi
js 0x10036d8d
nop dword [eax]
xor eax, eax
test edx, edx
jle 0x10036cfd
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x10036cf6
inc eax
cmp eax, edx
jl 0x10036ce6
jmp 0x10036cfd
mov dword [ebp + ecx*4 - 0x650], eax
inc ecx
cmp ecx, edi
jle 0x10036ce0
mov eax, edi
mov dword [ebp - 0x7fc], edi
nop word [eax + eax]
lea ecx, [eax*4]
lea edx, [ebp - 0x650]
mov dword [ebp - 0x844], ecx
add edx, ecx
cmp eax, edi
mov eax, dword [edx]
jne 0x10036d3c
mov ecx, dword [ebp - 0x80c]
add eax, eax
sub ecx, dword [esi + eax*8 + 0xa8]
jmp 0x10036d59
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 - 0x844]
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 - 0x7fc]
sub eax, 1
mov dword [ebp - 0x7fc], eax
jns 0x10036d10
xor edx, edx
mov dword [ebp - 0x7fc], edx
cmp dword [esi + 0x34], edx
jle 0x10036e43
lea edi, [esi + 0x6e8]
mov dword [ebp - 0x80c], edi
nop word [eax + eax]
mov eax, dword [ebp + edx*4 - 0x1a0]
lea ecx, [ebp - 0x7e0]
shl eax, 2
add ecx, eax
mov dword [ebp - 0x844], ecx
cmp edx, dword [ebp + eax - 0x650]
je 0x10036de8
push 0
push dword [ecx]
lea eax, [edi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x844]
mov edi, dword [ecx]
push 0
push edi
push dword [ebp - 0x80c]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x80c]
push 0
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push edi
mov edi, dword [ebp - 0x80c]
lea eax, [edi + 0xc80]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x7fc]
add edi, 0x10
inc edx
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x7fc], edx
cmp edx, dword [esi + 0x34]
jl 0x10036db0
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 0x10036e8f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10036e8f
mov eax, dword [esi + 0x18]
lea edx, [esi + 0x78]
mov ecx, dword [esi + 0xb0]
push 0
add ecx, dword [eax + 0x124]
sub ecx, dword [edx]
push ecx
push edx
call edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x10036eb5
mov eax, dword [esi + 0x18]
lea edx, [esi + 0x88]
mov ecx, dword [esi + 0xb0]
push 0
add ecx, dword [eax + 0x124]
sub ecx, dword [edx]
push ecx
push edx
call edi
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x804]
mov edi, dword [ebp - 0x834]
add edx, dword [esi + 0x38]
add edi, dword [esi + 0x3c]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x808], edx
mov dword [ebp - 0x80c], edi
je 0x10036f07
cmp dword [esi + 0x34], 0
jne 0x10036f07
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 - 0x808], edx
cmovle edi, eax
mov dword [ebp - 0x80c], edi
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.100321a0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x808]
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 0x10037037
cmp dword [esi + 0x34], 0
je 0x10037037
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10037037
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
mov edi, dword [edi + 0x134]
sub edi, dword [esi + 8]
sub edi, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x854]
sub edi, dword [esi + 0x3c]
add edi, dword [esi + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x810], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x810]
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0x850]
add eax, edi
mov dword [ebp - 0x810], 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 ecx, dword [esi + 0x1be0]
mov edx, dword [ebp - 0x810]
add ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x858]
add eax, ecx
push eax
mov eax, dword [ebp - 0x85c]
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 0x10037037
mov eax, dword [0x100a065c]
neg eax
push eax
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a065c]
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.10031d20
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x34]
cmp byte [eax + 0x104], dl
je 0x10037170
test ecx, ecx
jle 0x10037259
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 0x10037161
mov edi, dword [ebp + edx*4 - 0x1a0]
mov ecx, dword [ebp - 0x828]
cmp edi, ecx
jne 0x100370cb
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], 0
mov eax, edx
test edi, edi
lea eax, [eax + eax*4]
lea edi, [eax + esi]
jne 0x100370e0
mov word [edi + 0x19d8], 0
test edx, edx
jne 0x100370fb
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19d8], al
test ecx, ecx
jne 0x100370fb
mov byte [esi + 0x19da], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x1003711a
mov byte [edi + 0x19db], 1
test ecx, ecx
jne 0x1003711a
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19d9], al
mov eax, dword [ebp + edx*4 - 0x1a0]
cmp eax, ecx
jne 0x10037143
test ecx, ecx
jle 0x10037143
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x10037143
mov byte [edi + 0x19da], 1
test eax, eax
jne 0x10037161
test ecx, ecx
jle 0x10037161
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037161
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19d9], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037090
jmp 0x10037259
test ecx, ecx
jle 0x10037259
nop dword [eax + eax]
mov al, byte [esi + 0x19dc]
lea ecx, [esi + edx*4]
mov byte [edx + ecx + 0x19dc], al
cmp byte [esi + 0x19dc], 0
je 0x1003724f
mov edi, dword [ebp + edx*4 - 0x1a0]
test edi, edi
jne 0x100371b3
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], di
mov ecx, dword [ebp - 0x828]
mov eax, edx
cmp edi, ecx
lea eax, [eax + eax*4]
lea edi, [eax + esi]
jne 0x100371ce
mov word [edi + 0x19d8], 0
test edx, edx
jne 0x100371e9
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19da], al
test ecx, ecx
jne 0x100371e9
mov byte [esi + 0x19d8], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x10037208
mov byte [edi + 0x19d9], 1
test ecx, ecx
jne 0x10037208
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19db], al
mov eax, dword [ebp + edx*4 - 0x1a0]
cmp eax, ecx
jne 0x10037231
test ecx, ecx
jle 0x10037231
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x10037231
mov byte [edi + 0x19d8], 1
test eax, eax
jne 0x1003724f
test ecx, ecx
jle 0x1003724f
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x1003724f
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19db], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037180
mov eax, dword [esi + 8]
neg eax
push eax
mov eax, dword [esi + 4]
neg eax
push eax
lea eax, [esi + 0x19c8]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003729a
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003729a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003729a
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.1004d19f
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005ce0f
call fcn.10005be0
call fcn.100036f0
int3