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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d92a
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 0x10035df1
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 0x10035d9a
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 0x10035dc4
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 0x10035e5b
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 0x10035e14
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 0x10035e3e
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 ecx, dword [ebp - 0x854]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0xf4], 0
jne 0x10035e9c
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x18]
sar ecx, 1
mov dword [esi + 0x14], ecx
cmp dword [eax + 0xf4], 0
je 0x10035ea5
add ecx, dword [eax + 0x12c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
test dword [eax + 0x19c], 0xff000000
je 0x10035ebe
mov edx, ecx
mov dword [ebp - 0x804], edx
jmp 0x10035ec8
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 0x10035f1a
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 0x10035f44
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 0x10035f94
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 0x10035fbe
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 0x10036042
test dword [eax + 0x1a4], 0xff000000
je 0x10036042
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 0x1003605b
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 0x100361ac
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x100361ac
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10036096
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 0x100360b6
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.10031480
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 0x10036111
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10036111
mov ecx, dword [0x100a065c]
sub ecx, dword [ebp - 0x7fc]
shr ecx, 1
jmp 0x10036113
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 [esi + 0x3c]
add eax, dword [ebp - 0x820]
add ecx, dword [ebp - 0x81c]
add edi, eax
add ecx, dword [ebp - 0x814]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x808], edi
mov ecx, dword [ebp - 0x82c]
cmp ecx, eax
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 0x100361ac
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 0x100362c3
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100361d6
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 0x100361f6
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.10031480
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x81c], eax
cmp dword [0x100a065c], ecx
jl 0x1003624e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x820]
test al, al
je 0x1003624e
mov eax, dword [0x100a065c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7fc], eax
jmp 0x10036256
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 [ebp - 0x81c]
mov eax, dword [eax + 0x124]
lea eax, [eax + edx*2]
add eax, dword [ebp - 0x820]
add edi, eax
mov eax, dword [esi + 8]
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.10053570
push 0x190
lea eax, [ebp - 0x1a0]
push edi
push eax
call fcn.10053570
push 0x190
lea eax, [ebp - 0x4c0]
push edi
push eax
call fcn.10053570
mov eax, dword [esi + 0x34]
add esp, 0x24
test eax, eax
je 0x10036bd7
mov ecx, dword [esi + 0x3c]
xor edx, edx
add ecx, dword [esi + 8]
mov dword [ebp - 0x824], edx
test eax, eax
jle 0x100369bc
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]
cmp dword [ebp - 0x7fc], 0xe10
jge 0x100369bc
test edx, edx
jle 0x1003636d
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 0x1003639c
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 0x100363d9
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 0x10036403
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 0x1003728f
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 0x100364fc
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 0x1003652c
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 0x1003728f
mov edx, dword [ebp - 0x83c]
add edx, dword [ebp - 0x7fc]
mov dword [ebp - 0x83c], edx
cmp dword [edx + 0x10], 0
je 0x100366f2
cmp dword [esi + 0x48], 0
je 0x100366f2
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 0x1003662c
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 0x1003665c
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 0x10036725
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 0x100368c3
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 0x100368c3
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 8]
add eax, dword [edx + 0x644]
cmp eax, dword [ebp - 0x85c]
jle 0x100368c3
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 0x100368f0
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 0x10036995
mov edx, dword [ebp - 0x7f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10036985
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003728a
push ecx
push edx
call fcn.1004d17b
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 0x100369bc
mov ecx, dword [ebp - 0x800]
jmp 0x10036350
xor ecx, ecx
mov dword [ebp - 0x80c], ecx
test eax, eax
jle 0x10036b8d
lea edi, [esi + 0xd30]
cmp ecx, 0x64
jge 0x10036b87
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 0x10036aab
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 0x10036afa
test edx, edx
jne 0x10036ab7
cmp byte [eax + 0x104], cl
jne 0x10036ac4
cmp edx, 2
jne 0x10036b00
cmp byte [eax + 0x104], cl
jne 0x10036b00
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 0x10036b57
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x10036b59
cmp ecx, eax
jne 0x10036b74
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 0x100369d2
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 0x10036bef
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.10053570
push 0x190
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.10053570
mov eax, dword [esi + 0x18]
add esp, 0x18
cmp byte [eax + 0x104], 0
jne 0x10036e65
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x10036c43
cmp dword [ecx + 0x10], 0
je 0x10036c43
mov eax, dword [esi + 0x78]
jmp 0x10036c6e
cmp dword [ecx + 0x34], 0
je 0x10036c51
mov eax, dword [esi + 0x88]
jmp 0x10036c6e
cmp dword [esi + 0x34], 0
je 0x10036c68
mov eax, dword [esi + 0xa8]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
jmp 0x10036c7f
mov eax, dword [ebp - 0x818]
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x804], eax
test edx, edx
je 0x10036e65
xor ecx, ecx
test edi, edi
js 0x10036d3d
nop dword [eax]
xor eax, eax
test edx, edx
jle 0x10036cad
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x10036ca6
inc eax
cmp eax, edx
jl 0x10036c96
jmp 0x10036cad
mov dword [ebp + ecx*4 - 0x650], eax
inc ecx
cmp ecx, edi
jle 0x10036c90
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 0x10036cec
mov ecx, dword [ebp - 0x804]
add eax, eax
sub ecx, dword [esi + eax*8 + 0xa8]
jmp 0x10036d09
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 0x10036cc0
xor ecx, ecx
mov dword [ebp - 0x844], ecx
cmp dword [esi + 0x34], ecx
jle 0x10036df3
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 0x10036d98
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 0x10036d60
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 0x10036e3f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10036e3f
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 0x10036e65
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 - 0x808]
add edi, dword [ebp - 0x82c]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x804], edx
mov dword [ebp - 0x834], edi
je 0x10036eb7
cmp dword [esi + 0x34], 0
jne 0x10036eb7
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.100321b0
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 0x10036fe7
cmp dword [esi + 0x34], 0
je 0x10036fe7
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10036fe7
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
mov edi, dword [edi + 0x134]
sub edi, dword [esi + 0x3c]
sub edi, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x864]
sub edi, dword [esi + 8]
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 0x10036fe7
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.10031d30
mov eax, dword [esi + 0x18]
xor edx, edx
mov ecx, dword [esi + 0x34]
cmp byte [eax + 0x104], dl
je 0x10037120
test ecx, ecx
jle 0x10037209
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 0x10037111
mov edi, dword [ebp + edx*4 - 0x1a0]
mov ecx, dword [ebp - 0x830]
cmp edi, ecx
jne 0x1003707b
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], 0
mov eax, edx
test edi, edi
lea eax, [eax + eax*4]
lea edi, [esi + eax]
jne 0x10037090
mov word [edi + 0x19d8], 0
test edx, edx
jne 0x100370ab
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19d8], al
test ecx, ecx
jne 0x100370ab
mov byte [esi + 0x19da], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100370ca
mov byte [edi + 0x19db], 1
test ecx, ecx
jne 0x100370ca
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 0x100370f3
test ecx, ecx
jle 0x100370f3
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x100370f3
mov byte [edi + 0x19da], 1
test eax, eax
jne 0x10037111
test ecx, ecx
jle 0x10037111
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x10037111
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19d9], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037040
jmp 0x10037209
test ecx, ecx
jle 0x10037209
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 0x100371ff
mov edi, dword [ebp + edx*4 - 0x1a0]
test edi, edi
jne 0x10037163
lea eax, [esi + edx*4]
mov word [edx + eax + 0x19da], di
mov ecx, dword [ebp - 0x830]
mov eax, edx
cmp edi, ecx
lea eax, [eax + eax*4]
lea edi, [eax + esi]
jne 0x1003717e
mov word [edi + 0x19d8], 0
test edx, edx
jne 0x10037199
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + 0x19da], al
test ecx, ecx
jne 0x10037199
mov byte [esi + 0x19d8], 1
mov eax, dword [esi + 0x34]
dec eax
cmp edx, eax
jne 0x100371b8
mov byte [edi + 0x19d9], 1
test ecx, ecx
jne 0x100371b8
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 0x100371e1
test ecx, ecx
jle 0x100371e1
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
mov eax, dword [ebp + edx*4 - 0x1a0]
jne 0x100371e1
mov byte [edi + 0x19d8], 1
test eax, eax
jne 0x100371ff
test ecx, ecx
jle 0x100371ff
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100371ff
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19db], al
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10037130
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 0x10037245
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003726d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003726d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003726d
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.1004d16d
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005cdcf
call fcn.10005b80
int3