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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d95a
mov eax, dword fs:[0]
push eax
sub esp, 0x864
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 ecx, dword [esi + 8]
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
add eax, ecx
add edi, dword [esi + 4]
mov dword [ebp - 0x810], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x82c], ecx
test dword [eax + 0x19c], 0xff000000
mov dword [ebp - 0x808], edi
je 0x10035ebe
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
cmp dword [eax + 0xf4], 0
lea eax, [ebp - 0x858]
push eax
jne 0x10035e31
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x818], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035dda
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 - 0x84c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10035e04
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 0x1008ba58
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003610
jmp 0x10035e9b
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x818], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035e54
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 - 0x84c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10035e7e
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.100040e0
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov eax, dword [ebp - 0x858]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x854]
mov dword [esi + 0x14], eax
add eax, 4
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test dword [eax + 0x19c], 0xff000000
je 0x10035ed8
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x804], edx
jmp 0x10035ee2
mov dword [ebp - 0x804], 0
lea eax, [ebp - 0x864]
mov dword [ebp - 0x864], 0
push eax
sub esp, 8
mov dword [ebp - 0x860], 0
mov ecx, esp
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x818], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035f34
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 - 0x84c], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10035f5e
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.100040e0
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
lea eax, [ebp - 0x86c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x818], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035fae
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 - 0x84c], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10035fd8
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.100040e0
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 0x1003605c
test dword [eax + 0x1a4], 0xff000000
je 0x1003605c
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov byte [ebp - 0x825], 1
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x86c]
add eax, dword [ebp - 0x868]
add eax, dword [ebp - 0x860]
cmp dword [ebp - 0x864], ecx
mov dword [ebp - 0x814], eax
cmovg ecx, dword [ebp - 0x864]
mov dword [ebp - 0x7fc], ecx
jmp 0x10036075
xor eax, eax
mov byte [ebp - 0x825], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x7fc], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x100361c4
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x100361c4
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100360b0
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 0x100360d0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x850]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.100314f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x7fc]
cmp ecx, eax
mov dword [ebp - 0x820], ecx
cmovg eax, ecx
mov dword [ebp - 0x7fc], eax
cmp dword [0x100a065c], eax
jb 0x1003612b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003612b
mov ecx, dword [0x100a065c]
sub ecx, dword [ebp - 0x7fc]
shr ecx, 1
jmp 0x1003612d
xor ecx, ecx
mov edx, dword [ebp - 0x810]
add edx, dword [ebp - 0x81c]
mov dword [ebp - 0x7fc], ecx
add ecx, dword [ebp - 0x820]
mov eax, dword [ebp - 0x7fc]
add ecx, edi
push edx
push ecx
push dword [ebp - 0x810]
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 [ebp - 0x7fc]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x82c]
add eax, dword [ebp - 0x820]
add edi, eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 8]
add eax, dword [ebp - 0x81c]
add eax, dword [ebp - 0x814]
cmp ecx, eax
mov dword [ebp - 0x808], edi
cmovbe ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x82c], ecx
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100361c4
mov eax, dword [ebp - 0x82c]
add eax, dword [0x100a065c]
mov dword [ebp - 0x82c], eax
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x100362db
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100361ee
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 0x1003620e
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 - 0x850]
push eax
call fcn.100314f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x81c], eax
cmp dword [0x100a065c], ecx
jl 0x10036266
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x820]
test al, al
je 0x10036266
mov eax, dword [0x100a065c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7fc], eax
jmp 0x1003626e
xor edx, edx
mov dword [ebp - 0x7fc], edx
mov edx, dword [ebp - 0x810]
mov eax, dword [ebp - 0x7fc]
add ecx, eax
add edx, dword [ebp - 0x81c]
add ecx, edi
push edx
push ecx
push dword [ebp - 0x810]
add eax, edi
push eax
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x7fc]
mov ecx, dword [esi + 0x3c]
add ecx, dword [esi + 8]
mov eax, dword [eax + 0x124]
lea eax, [eax + edx*2]
add eax, dword [ebp - 0x820]
add edi, eax
mov eax, dword [ebp - 0x81c]
add eax, ecx
mov dword [ebp - 0x808], edi
mov ecx, dword [ebp - 0x82c]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x82c], ecx
xor edi, edi
lea eax, [ebp - 0x330]
push 0x190
push edi
push eax
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x838], 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 0x10036bf7
mov ecx, dword [esi + 0x3c]
xor edx, edx
add ecx, dword [esi + 8]
mov dword [ebp - 0x824], edx
test eax, eax
jle 0x100369dc
mov dword [ebp - 0x840], eax
lea eax, [esi + 0xd30]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x840]
mov dword [ebp - 0x7fc], edx
nop dword [eax]
nop word [eax + eax]
cmp dword [ebp - 0x7fc], 0xe10
jge 0x100369dc
test edx, edx
jle 0x1003638d
mov eax, dword [esi + 0x18]
add ecx, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x804]
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 0x100363bc
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 - 0x820]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x818], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100363f9
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 - 0x84c], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10036423
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x7f8]
push dword [ebp - 0x7e8]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.100040e0
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 - 0x81c]
mov eax, dword [ebp - 0x820]
add eax, dword [ebp - 0x808]
mov edx, dword [ebp - 0x80c]
add edx, 0xfffff9b8
add ecx, dword [ebp - 0x800]
push ecx
push eax
push dword [ebp - 0x800]
mov dword [ebp - 0x818], edx
push dword [ebp - 0x808]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x81c]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x800]
add eax, ecx
mov dword [ebp - 0x810], ecx
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 - 0x840], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x824]
jbe 0x100372b4
mov edx, dword [ebp - 0x840]
lea eax, [ebp - 0x820]
add edx, dword [ebp - 0x7fc]
push eax
sub esp, 8
mov dword [ebp - 0x840], edx
mov ecx, esp
mov dword [ebp - 0x84c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003651c
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 - 0x848], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x1003654c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x840]
mov byte [ebp - 4], 0xe
push dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.100040e0
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 - 0x81c]
mov edx, dword [ebp - 0x800]
mov eax, dword [ebp - 0x820]
add eax, dword [ebp - 0x808]
mov edi, dword [ebp - 0x80c]
add ecx, edx
add edi, 0xfffffff8
push ecx
push eax
push edx
push dword [ebp - 0x808]
mov dword [ebp - 0x840], edi
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x81c]
add dword [ebp - 0x800], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x81c]
imul eax, dword [esi + 0x44]
add dword [ebp - 0x810], eax
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x83c], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x824]
jbe 0x100372b4
mov edx, dword [ebp - 0x83c]
add edx, dword [ebp - 0x7fc]
mov dword [ebp - 0x83c], edx
cmp dword [edx + 0x10], 0
je 0x10036712
cmp dword [esi + 0x48], 0
je 0x10036712
lea eax, [ebp - 0x820]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x84c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003664c
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 - 0x848], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x1003667c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x83c]
mov byte [ebp - 4], 0x10
push dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.100040e0
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 - 0x81c]
mov edx, dword [ebp - 0x800]
add edx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x820]
add eax, dword [ebp - 0x808]
add ecx, edx
mov dword [ebp - 0x800], edx
push ecx
push eax
mov eax, dword [ebp - 0x80c]
push edx
push dword [ebp - 0x808]
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x81c]
add dword [ebp - 0x800], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x83c], eax
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x81c]
imul eax, dword [esi + 0x48]
add dword [ebp - 0x810], eax
jmp 0x10036745
mov eax, dword [ebp - 0x820]
mov edx, dword [ebp - 0x808]
add eax, edx
mov ecx, dword [ebp - 0x800]
push ecx
push eax
mov eax, dword [ebp - 0x80c]
push ecx
push edx
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x83c], eax
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x80c]
mov edi, dword [eax]
mov ecx, dword [edx - 0x644]
mov eax, ecx
sub eax, dword [ebp - 0x804]
cmp dword [ebp - 0x824], edi
mov dword [ebp - 0x870], edi
mov edi, ecx
cmove edi, eax
mov dword [ebp - 0x834], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x834], edi
mov edi, dword [ebp - 0x830]
mov dword [ebp - 0x84c], ecx
mov eax, dword [eax + 0x114]
mov dword [ebp - 0x85c], eax
test eax, eax
jle 0x100368e3
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x854], eax
add eax, ecx
mov dword [ebp - 0x848], ecx
mov ecx, dword [ebp - 0x824]
cmp dword [ebp - 0x834], eax
jle 0x100368e3
mov eax, dword [edx + 0x644]
sub eax, dword [esi + 8]
add eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x85c]
jle 0x100368e3
mov eax, dword [edx + 0x634]
mov edx, dword [ebp - 0x838]
cmp edx, eax
cmovle edx, eax
xor eax, eax
cmp ecx, dword [ebp - 0x870]
mov ecx, dword [ebp - 0x83c]
cmove eax, dword [ebp - 0x804]
add eax, dword [ebp - 0x854]
add eax, dword [ebp - 0x848]
mov edi, eax
mov dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x830]
sub edi, dword [ebp - 0x84c]
push edi
mov dword [ebp - 0x85c], edx
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
push dword [ebp - 0x818]
mov dword [ebp - 0x83c], eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x80c]
push edi
mov edi, dword [ebp - 0x83c]
add eax, 0x638
push edi
push eax
mov dword [ebp - 0x834], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x808]
mov eax, dword [edx + 0x644]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x830]
mov esi, dword [ebp - 0x838]
mov dword [ebp + eax*4 - 0x4c0], ecx
add ecx, edi
mov edi, dword [ebp - 0x830]
mov eax, dword [ebp - 0x810]
inc edi
add dword [ebp - 0x800], eax
cmp dword [ebp - 0x85c], esi
mov dword [ebp - 0x808], ecx
cmovg esi, dword [ebp - 0x85c]
mov dword [ebp - 0x838], esi
mov esi, dword [ebp - 0x844]
mov dword [ebp - 0x830], edi
jmp 0x10036910
mov ecx, dword [ebp - 0x800]
mov eax, ecx
cmp dword [ebp - 0x838], ecx
mov ecx, dword [ebp - 0x808]
cmovg eax, dword [ebp - 0x838]
mov dword [ebp - 0x838], eax
lea eax, [edx + 0x638]
mov dword [ebp - 0x834], 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 - 0x840]
sub edx, dword [eax]
mov eax, dword [ebp - 0x80c]
cmp ecx, edx
cmovg edx, ecx
mov ecx, dword [ebp - 0x834]
mov eax, dword [eax + 0x640]
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 - 0x824]
mov dword [ebp + edx*4 - 0x1a0], edi
cmp ecx, 8
jb 0x100369b5
mov edx, dword [ebp - 0x7f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100369a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100372af
push ecx
push edx
call fcn.1004d1ad
mov edx, dword [ebp - 0x824]
add esp, 8
add dword [ebp - 0x7fc], 0x24
inc edx
add dword [ebp - 0x80c], 0x10
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x824], edx
cmp edx, eax
jge 0x100369dc
mov ecx, dword [ebp - 0x800]
jmp 0x10036370
xor ecx, ecx
mov dword [ebp - 0x80c], ecx
test eax, eax
jle 0x10036bad
lea edi, [esi + 0xd30]
cmp ecx, 0x64
jge 0x10036ba7
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0x644]
mov ecx, edx
sub ecx, dword [ebp - 0x804]
mov esi, dword [ebp - 0x80c]
cmp esi, dword [eax]
mov eax, esi
push dword [edi + 0x644]
cmove edx, ecx
mov eax, dword [ebp + eax*4 - 0x1a0]
mov dword [ebp - 0x7fc], 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 - 0x810], ecx
mov dword [ebp - 0x824], ecx
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x100]
cmp edx, 1
jne 0x10036acb
mov ecx, dword [ebp - 0x7fc]
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 - 0x7fc]
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 - 0x7fc]
sar eax, 1
mov dword [ebp - 0x810], 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 0x10036b1a
test edx, edx
jne 0x10036ad7
cmp byte [eax + 0x104], cl
jne 0x10036ae4
cmp edx, 2
jne 0x10036b20
cmp byte [eax + 0x104], cl
jne 0x10036b20
mov eax, dword [ebp - 0x7fc]
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 - 0x810], eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, edx
mov dword [ebp - 0x824], eax
push 0
push ecx
lea eax, [edi - 0x648]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x810]
lea eax, [edi - 8]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x824]
lea eax, [edi + 0x638]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x80c]
dec eax
cmp ecx, eax
jge 0x10036b77
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x10036b79
cmp ecx, eax
jne 0x10036b94
mov edx, dword [ebp - 0x838]
mov eax, edx
cmp dword [ebp - 0x82c], edx
cmovg eax, dword [ebp - 0x82c]
mov dword [edi - 0xc7c], eax
inc ecx
add edi, 0x10
mov dword [ebp - 0x80c], ecx
cmp ecx, dword [esi + 0x34]
jl 0x100369f2
mov edi, dword [ebp - 0x830]
mov eax, dword [ebp - 0x838]
cmp dword [ebp - 0x82c], eax
cmovg eax, dword [ebp - 0x82c]
mov ecx, eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x82c], 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 - 0x808], eax
jmp 0x10036c0f
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x808]
sub ecx, dword [eax + 0x124]
sub ecx, dword [esi + 4]
mov dword [ebp - 0x808], 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 0x10036e85
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x10036c63
cmp dword [ecx + 0x10], 0
je 0x10036c63
mov eax, dword [esi + 0x78]
jmp 0x10036c8e
cmp dword [ecx + 0x34], 0
je 0x10036c71
mov eax, dword [esi + 0x88]
jmp 0x10036c8e
cmp dword [esi + 0x34], 0
je 0x10036c88
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
jmp 0x10036c9f
mov eax, dword [ebp - 0x818]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
test edx, edx
je 0x10036e85
xor ecx, ecx
test edi, edi
js 0x10036d5d
nop dword [eax]
xor eax, eax
test edx, edx
jle 0x10036ccd
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x10036cc6
inc eax
cmp eax, edx
jl 0x10036cb6
jmp 0x10036ccd
mov dword [ebp + ecx*4 - 0x650], eax
inc ecx
cmp ecx, edi
jle 0x10036cb0
mov eax, edi
mov dword [ebp - 0x844], edi
nop word [eax + eax]
lea ecx, [eax*4]
lea edx, [ebp - 0x650]
mov dword [ebp - 0x818], ecx
add edx, ecx
cmp eax, edi
mov eax, dword [edx]
jne 0x10036d0c
mov ecx, dword [ebp - 0x804]
add eax, eax
sub ecx, dword [esi + eax*8 + 0xa8]
jmp 0x10036d29
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 - 0x818]
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 - 0x844]
sub eax, 1
mov dword [ebp - 0x844], eax
jns 0x10036ce0
xor ecx, ecx
mov dword [ebp - 0x844], ecx
cmp dword [esi + 0x34], ecx
jle 0x10036e13
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 - 0x818], edx
cmp ecx, dword [ebp + eax - 0x650]
je 0x10036db8
push 0
push dword [edx]
lea eax, [edi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x818]
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 - 0x844]
add edi, 0x10
inc ecx
mov dword [ebp - 0x804], edi
mov dword [ebp - 0x844], ecx
cmp ecx, dword [esi + 0x34]
jl 0x10036d80
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 0x10036e5f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10036e5f
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 0x10036e85
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 [esi + 0x38]
mov edi, dword [esi + 0x3c]
add edx, dword [ebp - 0x808]
add edi, dword [ebp - 0x82c]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x804], edx
mov dword [ebp - 0x834], edi
je 0x10036ed7
cmp dword [esi + 0x34], 0
jne 0x10036ed7
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 - 0x834], edi
lea eax, [ebp - 0x834]
mov ecx, esi
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10032220
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x804]
add edx, dword [ebp - 0x834]
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 - 0x825], 0
je 0x10037007
cmp dword [esi + 0x34], 0
je 0x10037007
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10037007
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 - 0x814]
mov ecx, dword [ebp - 0x864]
add edi, dword [esi + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x814], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x814]
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0x860]
add eax, edi
mov dword [ebp - 0x814], 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 - 0x814]
mov ecx, dword [eax + 0x12c]
add ecx, dword [esi + 0x1be0]
mov eax, dword [ebp - 0x868]
add eax, ecx
push eax
mov eax, dword [ebp - 0x86c]
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 0x10037007
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.10031da0
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x34]
cmp byte [eax + 0x104], dl
je 0x10037145
test ecx, ecx
jle 0x1003722e
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 0x10037136
mov edi, dword [ebp + edx*4 - 0x1a0]
mov ecx, dword [ebp - 0x830]
cmp edi, ecx
jne 0x1003709b
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], 0
mov eax, edx
lea eax, [eax + eax*4]
test edi, edi
jne 0x100370b2
lea edi, [esi + eax]
mov word [edi + 0x19d8], 0
jmp 0x100370b5
lea edi, [eax + esi]
test edx, edx
jne 0x100370d0
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19d8], al
test ecx, ecx
jne 0x100370d0
mov byte [esi + 0x19da], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100370ef
mov byte [edi + 0x19db], 1
test ecx, ecx
jne 0x100370ef
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 0x10037118
test ecx, ecx
jle 0x10037118
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x10037118
mov byte [edi + 0x19da], 1
test eax, eax
jne 0x10037136
test ecx, ecx
jle 0x10037136
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037136
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19d9], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037060
jmp 0x1003722e
test ecx, ecx
jle 0x1003722e
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 0x10037224
mov edi, dword [ebp + edx*4 - 0x1a0]
test edi, edi
jne 0x10037183
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], di
mov ecx, dword [ebp - 0x830]
mov eax, edx
lea eax, [eax + eax*4]
cmp edi, ecx
jne 0x100371a0
lea edi, [esi + eax]
mov word [edi + 0x19d8], 0
jmp 0x100371a3
lea edi, [eax + esi]
test edx, edx
jne 0x100371be
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19da], al
test ecx, ecx
jne 0x100371be
mov byte [esi + 0x19d8], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100371dd
mov byte [edi + 0x19d9], 1
test ecx, ecx
jne 0x100371dd
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 0x10037206
test ecx, ecx
jle 0x10037206
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x10037206
mov byte [edi + 0x19d8], 1
test eax, eax
jne 0x10037224
test ecx, ecx
jle 0x10037224
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037224
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19db], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037150
mov eax, dword [esi + 0x18]
lea edi, [esi + 0x19c8]
mov eax, dword [eax + 0x118]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
sub eax, dword [esi + 4]
sub ecx, dword [esi + 8]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x18]
test byte [eax + 0x118], 1
jne 0x1003726a
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10037292
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10037292
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10037292
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.10005b80
int3