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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d69a
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
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 - 0x538], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
mov edi, dword [esi + 0x3c]
add edi, dword [esi + 8]
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x500], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x50c], edi
test dword [eax + 0x19c], 0xff000000
je 0x1003345c
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x51c], 0
cmp dword [eax + 0xf4], 0
lea eax, [ebp - 0x520]
push eax
jne 0x1003338f
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4dc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033338
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10033362
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 0x100333f9
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4dc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100333b2
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100333dc
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 - 0x51c]
mov ecx, dword [ebp - 0x520]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0xc], ecx
cmp dword [eax + 0xf4], 0
jne 0x1003343a
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x18]
sar ecx, 1
mov dword [esi + 0xc], ecx
cmp dword [eax + 0xf4], 0
je 0x10033443
add ecx, dword [eax + 0x12c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
test dword [eax + 0x19c], 0xff000000
je 0x1003345c
mov edx, ecx
mov dword [ebp - 0x518], edx
jmp 0x10033466
mov dword [ebp - 0x518], 0
lea eax, [ebp - 0x528]
mov dword [ebp - 0x528], 0
push eax
sub esp, 8
mov dword [ebp - 0x524], 0
mov ecx, esp
mov dword [ebp - 0x530], 0
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x4dc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100334b8
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100334e2
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 - 0x530]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4dc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033532
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x1003355c
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 0x100335e0
test dword [eax + 0x1a4], 0xff000000
je 0x100335e0
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov byte [ebp - 0x501], 1
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x52c]
add eax, dword [ebp - 0x530]
add eax, dword [ebp - 0x528]
cmp dword [ebp - 0x524], ecx
mov dword [ebp - 0x508], eax
cmovg ecx, dword [ebp - 0x524]
mov dword [ebp - 0x4e8], ecx
jmp 0x100335fb
mov byte [ebp - 0x501], 0
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x4e8], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10033750
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10033750
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033636
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 0x10033656
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x520]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031480
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4fc], ecx
mov ecx, dword [ebp - 0x4e8]
cmp eax, ecx
mov dword [ebp - 0x4f8], eax
cmovg ecx, eax
mov dword [ebp - 0x4e8], ecx
cmp dword [0x100a0658], ecx
jl 0x100336b5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100336b5
mov eax, dword [0x100a0658]
sub eax, dword [ebp - 0x4e8]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x100336b7
xor ecx, ecx
mov edx, dword [ebp - 0x4f8]
add edx, ecx
mov dword [ebp - 0x4e0], ecx
mov ecx, dword [ebp - 0x500]
add edx, edi
add ecx, dword [ebp - 0x4fc]
mov eax, dword [ebp - 0x4e0]
push edx
push ecx
add eax, edi
push eax
push dword [ebp - 0x500]
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x4e8]
add edi, eax
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x50c], edi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x514]
add eax, dword [ebp - 0x508]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x514], ecx
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10033750
mov eax, dword [ebp - 0x514]
add eax, dword [0x100a0658]
mov dword [ebp - 0x514], eax
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x10033862
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003377a
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 0x1003379a
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 - 0x520]
push eax
call fcn.10031480
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4fc], ecx
mov ecx, eax
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f8], ecx
cmp dword [0x100a0658], ecx
jl 0x100337f4
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x4f8]
test al, al
je 0x100337f4
mov eax, dword [0x100a0658]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x100337f6
xor eax, eax
lea edx, [eax + ecx]
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x500]
add edx, edi
add ecx, dword [ebp - 0x4fc]
add eax, edi
push edx
push ecx
push eax
push dword [ebp - 0x500]
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x4f8]
add edi, eax
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x50c], edi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x514]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x514], ecx
push 0x190
lea eax, [ebp - 0x330]
mov dword [ebp - 0x510], 0
push 0
push eax
mov dword [ebp - 0x500], 0
call fcn.10053570
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.10053570
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.10053570
mov ecx, dword [esi + 0x34]
add esp, 0x24
test ecx, ecx
je 0x10034105
mov edi, dword [esi + 4]
xor edx, edx
add edi, dword [esi + 0x38]
mov dword [ebp - 0x4e8], edx
test ecx, ecx
jle 0x10033f72
lea eax, [esi + 0xd28]
mov dword [ebp - 0x4e0], edx
mov dword [ebp - 0x4ec], eax
xor eax, eax
nop word [eax + eax]
cmp eax, 0xe10
jge 0x10033f72
test edx, edx
jle 0x10033908
mov eax, dword [esi + 0x18]
add edi, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x518]
add ecx, edi
cmp dword [eax], edx
cmovne ecx, edi
mov dword [ebp - 0x4e4], ecx
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
cmp dword [ecx + 0x14], 8
jb 0x1003392f
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push edx
push dword [esi + 0x2c]
lea ecx, [ebp - 0x4d8]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea eax, [ebp - 0x4fc]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x534], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003396c
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 - 0x51c], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10033996
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4d8]
push dword [ebp - 0x4c8]
xorps xmm0, xmm0
sub esp, 0x18
mov edi, esp
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp - 0x4c4], 8
mov eax, dword [ebp - 0x4c8]
cmovae ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4f4], eax
cmp eax, 0x7ffffffe
ja 0x10034446
mov dword [edi + 0x14], 7
cmp eax, 8
jae 0x10033a01
mov dword [edi + 0x10], eax
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
jmp 0x10033a57
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10033a12
mov eax, SysReAllocString
jmp 0x10033a1d
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x4f0], eax
mov ecx, edi
inc eax
push eax
call fcn.100035b0
mov edx, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4f0]
mov dword [edi + 0x14], ecx
mov dword [edi], eax
lea ecx, [edx*2 + 2]
mov dword [edi + 0x10], edx
push ecx
push dword [ebp - 0x4dc]
push eax
call fcn.10052fd0
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x40]
imul eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0x4f8]
mov edi, dword [ebp - 0x50c]
add ecx, edi
mov edx, dword [ebp - 0x4ec]
push ecx
add eax, dword [ebp - 0x4e4]
add edx, 0xfffff9c0
push eax
push edi
push dword [ebp - 0x4e4]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x4fc]
mov edi, dword [eax + 0x12c]
mov eax, dword [esi + 0x24]
add edi, dword [ebp - 0x4e4]
add edi, ecx
mov dword [ebp - 0x4f0], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x4dc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x4e8]
jbe 0x10034441
mov edx, dword [ebp - 0x4e0]
lea eax, [ebp - 0x4fc]
add edx, dword [ebp - 0x4dc]
push eax
sub esp, 8
mov dword [ebp - 0x4dc], edx
mov ecx, esp
mov dword [ebp - 0x51c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033b26
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 - 0x534], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10033b56
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x4dc]
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 eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0x4f8]
mov edx, dword [ebp - 0x50c]
add ecx, edx
push ecx
add eax, edi
push eax
push edx
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x4fc]
imul eax, dword [esi + 0x44]
add edi, eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x4fc]
imul eax, dword [esi + 0x44]
add dword [ebp - 0x4f0], eax
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x4dc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x4e8]
jbe 0x10034441
mov edx, dword [ebp - 0x4e0]
add edx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4dc], edx
cmp dword [edx + 0x10], 0
je 0x10033cec
cmp dword [esi + 0x48], 0
je 0x10033cec
lea eax, [ebp - 0x4fc]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x51c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033c3f
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 - 0x534], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10033c6f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x4dc]
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 [ebp - 0x4f8]
mov edx, dword [ebp - 0x50c]
add ecx, edx
push ecx
add edi, dword [eax + 0x12c]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x4fc]
add eax, edi
push eax
mov eax, dword [ebp - 0x4ec]
push edx
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x4fc]
imul eax, dword [esi + 0x48]
add edi, eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x4fc]
imul eax, dword [esi + 0x48]
add dword [ebp - 0x4f0], eax
jmp 0x10033d10
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [ebp - 0x50c]
add eax, ecx
push eax
mov eax, dword [ebp - 0x4ec]
push edi
push ecx
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x4ec]
mov eax, dword [eax]
mov ecx, dword [edx - 0x640]
mov dword [ebp - 0x4f4], eax
mov eax, ecx
sub eax, dword [ebp - 0x518]
mov dword [ebp - 0x4e4], ecx
mov ecx, dword [ebp - 0x4e8]
cmp ecx, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4e4]
cmove ecx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4e4], ecx
mov ecx, dword [ebp - 0x4e8]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x4dc], eax
test eax, eax
jle 0x10033e7a
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
cmp dword [ebp - 0x4e4], eax
jle 0x10033e7a
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 4]
add eax, dword [edx + 0x648]
cmp eax, dword [ebp - 0x4dc]
jle 0x10033e7a
mov eax, dword [edx + 0x638]
cmp dword [ebp - 0x500], eax
cmovg eax, dword [ebp - 0x500]
xor edi, edi
cmp ecx, dword [ebp - 0x4f4]
mov ecx, dword [esi + 0x18]
cmove edi, dword [ebp - 0x518]
add edi, dword [esi + 4]
add edi, dword [esi + 0x38]
mov dword [ebp - 0x500], eax
mov eax, dword [ebp - 0x510]
mov dword [ebp - 0x4dc], edi
sub edi, dword [edx - 0x640]
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
mov dword [ebp - 0x4e4], eax
lea eax, [edx - 0x640]
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e4]
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e4]
mov eax, dword [ebp - 0x4ec]
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 0x510]
mov eax, dword [ebp - 0x50c]
mov edx, dword [ebp - 0x4ec]
inc dword [ebp - 0x510]
mov dword [ebp + edi*4 - 0x4c0], eax
mov edi, dword [ebp - 0x4dc]
mov ecx, dword [edx + 0x648]
add eax, dword [ebp - 0x4e4]
add edi, dword [ebp - 0x4f0]
cmp dword [ebp - 0x500], ecx
mov dword [ebp - 0x50c], eax
cmovg ecx, dword [ebp - 0x500]
mov dword [ebp - 0x500], ecx
jmp 0x10033e8f
cmp dword [ebp - 0x500], edi
mov eax, edi
cmovg eax, dword [ebp - 0x500]
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x510]
mov eax, dword [ebp - 0x50c]
mov dword [ebp + ecx*4 - 0x4c0], eax
mov eax, dword [edx - 0x634]
sub eax, dword [edx - 0x63c]
mov ecx, dword [ebp + ecx*4 - 0x330]
cmp ecx, eax
mov edx, dword [edx + 0xc]
cmovle ecx, eax
mov eax, dword [ebp - 0x4ec]
sub edx, dword [eax + 4]
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
mov eax, dword [ecx + 0x64c]
sub eax, dword [ecx + 0x644]
cmp edx, eax
mov byte [ebp - 4], 1
cmovle edx, eax
mov eax, dword [ebp - 0x510]
mov dword [ebp + eax*4 - 0x330], edx
mov edx, dword [ebp - 0x4e8]
mov dword [ebp + edx*4 - 0x1a0], eax
mov eax, dword [ebp - 0x4c4]
cmp eax, 8
jb 0x10033f48
mov edx, dword [ebp - 0x4d8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033f32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003443c
push ecx
push edx
call fcn.1004d17b
mov ecx, dword [ebp - 0x4ec]
add esp, 8
mov edx, dword [ebp - 0x4e8]
mov eax, dword [ebp - 0x4e0]
add ecx, 0x10
inc edx
mov dword [ebp - 0x4ec], ecx
mov ecx, dword [esi + 0x34]
add eax, 0x24
mov dword [ebp - 0x4e8], edx
mov dword [ebp - 0x4e0], eax
cmp edx, ecx
jl 0x100338f0
xor eax, eax
mov dword [ebp - 0x4f0], eax
test ecx, ecx
jle 0x100340dc
lea edi, [esi + 0x6f4]
nop dword [eax + eax]
cmp eax, 0x64
jge 0x100340dc
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0xc]
mov ecx, edx
sub ecx, dword [ebp - 0x518]
mov esi, dword [ebp - 0x4f0]
cmp esi, dword [eax]
mov eax, esi
cmove edx, ecx
mov eax, dword [ebp + eax*4 - 0x1a0]
mov ecx, dword [ebp + eax*4 - 0x4c0]
mov eax, dword [ebp + eax*4 - 0x330]
mov dword [ebp - 0x4e0], eax
add eax, ecx
push eax
push dword [edi + 0xc7c]
lea eax, [edi - 0x64c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp - 0x538]
xor ecx, ecx
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4e8], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10034051
mov eax, dword [edi - 8]
sub eax, dword [edi]
add eax, dword [ebp - 0x4e0]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, dword [ebp - 0x4e0]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x4e4], eax
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, dword [ebp - 0x4e0]
cdq
sub eax, edx
sar eax, 1
jmp 0x10034084
test eax, eax
jne 0x1003408a
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
mov edx, dword [ebp - 0x4e0]
add eax, edx
mov ecx, dword [edi - 8]
sub ecx, dword [edi]
mov dword [ebp - 0x4e4], eax
add ecx, edx
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, edx
mov dword [ebp - 0x4e8], eax
push ecx
push 0
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e4]
lea eax, [edi + 0x634]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e8]
lea eax, [edi + 0xc74]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4f0]
add edi, 0x10
mov ecx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x4f0], eax
cmp eax, ecx
jl 0x10033f90
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x500]
cmp dword [ebp - 0x514], edx
mov edi, dword [ebp + eax*4 - 0x4c0]
cmovg edx, dword [ebp - 0x514]
add edi, dword [ebp + eax*4 - 0x330]
jmp 0x10034120
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x12c]
add edx, dword [eax + 0x118]
add edx, dword [ebp - 0x514]
sub edi, dword [eax + 0x124]
sub edi, dword [esi + 8]
mov eax, dword [esi + 0x3c]
add edx, dword [esi + 0x38]
add eax, edi
mov dword [ebp - 0x4e0], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x4f4], edx
mov dword [ebp - 0x4e4], edx
test ecx, ecx
je 0x100341bb
cmp dword [eax + 0x10], 0
je 0x1003417b
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0x108]
cmp edx, eax
cmovle edx, eax
mov eax, dword [edi + 0x110]
mov dword [ebp - 0x4f4], edx
mov dword [ebp - 0x4e4], edx
mov edx, dword [ebp - 0x4e0]
cmp edx, eax
cmovle edx, eax
mov dword [ebp - 0x4e0], edx
xor edx, edx
test ecx, ecx
jle 0x100341bb
lea edi, [esi + 0xb0]
cmp edx, 0x64
jge 0x100341bb
dec ecx
cmp edx, ecx
jge 0x100341a3
mov eax, dword [ebp + edx*4 - 0x1a0]
cmp eax, dword [ebp + edx*4 - 0x19c]
jl 0x100341a5
cmp edx, ecx
jne 0x100341b0
mov eax, dword [ebp - 0x4f4]
sub eax, dword [esi + 0x38]
mov dword [edi], eax
mov ecx, dword [esi + 0x34]
inc edx
add edi, 0x10
cmp edx, ecx
jl 0x10034187
mov eax, dword [esi + 0x30]
mov ecx, esi
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [esi + eax*8 + 0xa8]
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x4e4]
push eax
movups xmmword [esi + 0x98], xmm0
call fcn.100321b0
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x4e0]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x4e4]
add eax, dword [esi + 4]
lea ecx, [esi + 0x19c8]
push edx
push eax
push 0
push 0
push ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 0x501], 0
je 0x10034301
cmp dword [esi + 0x34], 0
je 0x10034301
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10034301
mov edi, dword [edi + 0x130]
mov eax, dword [esi + 0x84]
add eax, dword [esi + 0x7c]
sub edi, dword [esi + 4]
sub edi, dword [esi + 0x38]
sub edi, dword [ebp - 0x508]
mov ecx, dword [ebp - 0x524]
add edi, dword [esi + 0x70]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x508], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x508]
sar eax, 1
sub edx, eax
mov dword [ebp - 0x508], edx
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x528]
add eax, edi
push eax
push edx
push edi
lea edi, [esi + 0x1bd4]
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1bdc]
mov edx, dword [ebp - 0x508]
add ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x52c]
add eax, edx
push eax
mov eax, dword [ebp - 0x530]
add eax, ecx
push eax
push edx
push ecx
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 0x10034301
mov eax, dword [0x100a0658]
push 0
neg eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a0658]
push 0
neg eax
push eax
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
mov edi, dword [sym.imp.USER32.dll_InflateRect]
call edi
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10031d30
cmp dword [ebp - 0x510], 0
je 0x100343bd
mov byte [esi + 0x19d9], 0
mov edx, 1
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
mov byte [ecx + eax + 0x19d5], 0
cmp dword [esi + 0x34], edx
jle 0x100343bd
lea ecx, [esi + 0x19de]
nop dword [eax]
nop word [eax + eax]
mov al, byte [esi + 0x19dc]
mov edi, dword [ebp + edx*4 - 0x1a0]
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x510]
cmp edi, eax
jne 0x10034397
dec eax
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x10034397
mov byte [ecx], 1
test edi, edi
jne 0x100343ae
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100343ae
mov eax, dword [esi + 0x18]
mov al, byte [eax + 0x58]
mov byte [ecx + 1], al
inc edx
add ecx, 5
cmp edx, dword [esi + 0x34]
jl 0x10034370
mov edi, dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x18]
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
lea eax, [esi + 0x19c8]
push eax
call edi
mov eax, dword [esi + 0x18]
test byte [eax + 0x118], 1
jne 0x100343f7
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esi + 0x19c8]
push eax
call edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003441f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003441f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003441f
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
call fcn.100036a0
int3