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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 - 0x98], esi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x50], 0
test dword [ecx + 0x19c], 0xff000000
mov eax, dword [ecx + 0x12c]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
je 0x100326bd
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
mov dword [ebp - 0x74], 0
sub esp, 8
cmp dword [ecx + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x10032654
test eax, eax
je 0x10032600
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 - 0x70], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032627
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 0x100326a0
test eax, eax
je 0x1003265c
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 - 0x70], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032683
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 ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
lea eax, [ecx + 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test dword [eax + 0x19c], 0xff000000
je 0x100326d4
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x80], edx
jmp 0x100326db
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
sub esp, 8
mov dword [ebp - 0x84], 0
mov ecx, esp
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003272a
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 - 0x70], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10032751
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 - 0x90]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003279e
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 - 0x70], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100327c5
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 0x1003283d
test dword [eax + 0x1a4], 0xff000000
je 0x1003283d
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x8c]
mov byte [ebp - 0x45], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x88]
cmp dword [ebp - 0x84], edi
mov dword [ebp - 0x64], eax
cmovg edi, dword [ebp - 0x84]
jmp 0x1003284a
mov byte [ebp - 0x45], 0
xor edi, edi
mov dword [ebp - 0x64], 0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10032975
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10032975
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032893
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 0x100328b3
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x78]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.100314f0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [ebp - 0x40], ecx
cmovg edi, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x54], edi
cmp dword [0x100a0654], edi
jl 0x100328fc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100328fc
mov eax, dword [0x100a0654]
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x100328fe
xor ecx, ecx
mov edi, dword [ebp - 0x3c]
mov edx, dword [esi + 0x38]
add edi, ecx
add edi, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 0x38]
add ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x30]
push edi
push ecx
push eax
push edx
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
xor edi, edi
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x54]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, dword [ebp - 0x64]
cmovns edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x50], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10032965
add edi, dword [0x100a0654]
mov dword [ebp - 0x50], edi
push dword [esi + 8]
lea eax, [esi + 0x78]
push dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x10032a62
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003299f
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 0x100329bf
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 - 0x78]
push eax
call fcn.100314f0
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edi
cmp dword [0x100a0654], edi
jl 0x10032a05
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov edi, dword [ebp - 0x3c]
test al, al
je 0x10032a05
mov eax, dword [0x100a0654]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
jmp 0x10032a07
xor eax, eax
mov ecx, dword [esi + 0x38]
add edi, eax
add edi, dword [ebp - 0x30]
add ecx, dword [ebp - 0x40]
mov edx, dword [esi + 0x38]
push edi
push ecx
mov dword [ebp - 0x38], eax
lea edi, [esi + 0x88]
add eax, dword [ebp - 0x30]
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x38]
push dword [esi + 8]
mov eax, dword [eax + 0x124]
push dword [esi + 4]
push edi
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x3c]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x50]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x50], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x34]
xor edi, edi
xor edx, edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x7c], edx
test ecx, ecx
jle 0x1003300b
xor eax, eax
mov dword [ebp - 0x70], 0xa
lea edi, [esi + 0xd28]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
nop word [eax + eax]
cmp eax, 0xe10
jge 0x10033008
test edx, edx
jle 0x10032abe
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x128]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x38]
add ecx, 0xcc
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x4c], eax
cmp dword [ecx + 0x14], 8
jb 0x10032ad8
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push edx
push dword [esi + 0x2c]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea eax, [ebp - 0x40]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x94], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032b0f
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 - 0x74], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10032b36
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
xorps xmm0, xmm0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x58], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
cmp eax, 0x7ffffffe
ja 0x10033371
mov dword [ecx + 0x14], 7
cmp eax, 8
jae 0x10032b8f
mov dword [ecx + 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
jmp 0x10032bd9
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10032ba0
mov eax, SysReAllocString
jmp 0x10032ba7
cmp eax, 0xa
cmovb eax, dword [ebp - 0x70]
mov dword [ebp - 0x44], eax
inc eax
push eax
call fcn.100035b0
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ecx + 0x14], edx
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
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 eax, dword [esi + 0x40]
imul eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
push ecx
add eax, edx
push eax
push dword [ebp - 0x30]
lea eax, [edi - 0x640]
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp - 0x98]
lea eax, [edi - 0x640]
push dword [esi + 8]
push dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x40]
xor edx, edx
add eax, dword [ebp - 0x6c]
imul eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x4c], eax
test ecx, ecx
cmovs ecx, edx
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x2c], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x7c]
jbe 0x1003336c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
add edx, dword [ebp - 0x2c]
push eax
sub esp, 8
mov dword [ebp - 0x2c], edx
mov ecx, esp
mov dword [ebp - 0x74], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032c96
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 - 0x94], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032cc3
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
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 - 0x40]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
push ecx
add eax, edx
push eax
push dword [ebp - 0x30]
push edx
push edi
call dword [sym.imp.USER32.dll_SetRect]
push dword [esi + 8]
push dword [esi + 4]
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x4c], eax
cmp dword [ebp - 0x44], ecx
cmovg ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x34]
add ecx, eax
mov eax, dword [esi + 0x28]
cmp dword [ebp - 0x38], ecx
cmovg ecx, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x2c], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x7c]
jbe 0x1003336c
mov edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
cmp dword [edx + 0x10], 0
je 0x10032e4f
cmp dword [esi + 0x48], 0
je 0x10032e4f
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x68], ecx
mov eax, ecx
mov dword [ebp - 0x4c], ecx
cmovg eax, dword [ebp - 0x68]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x40]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x74], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032daf
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 - 0x94], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10032ddc
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
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 + 0x48]
add edi, 0x640
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
add ecx, edx
imul eax, dword [ebp - 0x40]
push ecx
push eax
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
push dword [esi + 8]
push dword [esi + 4]
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x48]
imul ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x54]
add dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x58], eax
cmovg eax, dword [ebp - 0x58]
cmp dword [ebp - 0x60], ecx
mov edx, eax
mov dword [ebp - 0x58], edx
cmovg ecx, dword [ebp - 0x60]
mov dword [ebp - 0x60], ecx
jmp 0x10032e52
mov edx, dword [ebp - 0x58]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10032ea4
mov eax, dword [edi - 0x63c]
sub eax, dword [edi - 0x634]
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 4]
sub eax, dword [edi + 0xc]
add eax, dword [ebp - 0x58]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x644]
sub eax, dword [edi + 0x64c]
add eax, dword [ebp - 0x58]
cdq
sub eax, edx
sar eax, 1
jmp 0x10032ecf
test eax, eax
jne 0x10032ed2
mov eax, dword [edi + 4]
sub eax, dword [edi + 0xc]
mov ecx, dword [edi - 0x63c]
add eax, edx
sub ecx, dword [edi - 0x634]
mov dword [ebp - 0x44], eax
add ecx, edx
mov eax, dword [edi + 0x644]
sub eax, dword [edi + 0x64c]
add eax, edx
mov dword [ebp - 0x34], eax
push ecx
push 0
lea eax, [edi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x44]
push 0
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x34]
lea eax, [edi + 0x640]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi - 0x634]
sub eax, dword [edi - 0x63c]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edx
test eax, eax
jle 0x10032f3e
mov eax, dword [edi - 0x63c]
cmp eax, ecx
cmovge eax, ecx
mov ecx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi - 0x634]
cmp eax, edx
jle 0x10032f3b
mov dword [ebp - 0x44], eax
jmp 0x10032f3e
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x64c]
mov eax, ecx
sub eax, dword [edi + 0x644]
test eax, eax
jle 0x10032f6e
mov eax, dword [edi + 0x644]
cmp dword [ebp - 0x2c], eax
cmovl eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x44], ecx
jg 0x10032f6e
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 4]
push dword [ebp - 0x44]
sub edx, eax
add eax, dword [esi + 4]
add edx, dword [ebp - 0x50]
push edx
push dword [ebp - 0x34]
push eax
lea eax, [edi - 0xc80]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], eax
cmovg eax, dword [ebp - 0x50]
mov ecx, eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 8
jb 0x10032fe7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10032fdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033367
push ecx
push edx
call fcn.1004d1ad
add esp, 8
mov edx, dword [ebp - 0x7c]
add edi, 0x10
mov eax, dword [ebp - 0x5c]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x24
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
cmp edx, ecx
jl 0x10032aa0
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x60]
cmp edi, eax
cmovle edi, eax
mov eax, dword [esi + 0x38]
lea eax, [edi + eax*2]
mov edi, dword [ebp - 0x50]
cmp edi, eax
cmovle edi, eax
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edx
test ecx, ecx
jle 0x1003310f
lea eax, [esi + 0x6ec]
mov dword [ebp - 0x38], eax
cmp edx, 0x64
jge 0x1003310a
mov edi, dword [eax + 0x640]
lea ecx, [eax + 0xc7c]
mov eax, dword [eax + 0x648]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x38]
add eax, dword [ebp - 0x68]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
sub eax, edx
test eax, eax
jle 0x1003309a
mov eax, dword [ecx + 8]
cmp edx, edi
cmovge edx, edi
mov edi, edx
mov edx, dword [ecx + 0x648]
mov dword [ebp - 0x34], edx
cmp eax, edx
jle 0x1003309d
mov edx, eax
mov dword [ebp - 0x34], edx
jmp 0x1003309d
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc88]
sub eax, dword [ecx + 0xc80]
mov dword [ebp - 0x54], edi
test eax, eax
jle 0x100330c9
mov eax, dword [ecx + 0xc80]
mov edi, eax
cmp dword [ebp - 0x54], eax
mov eax, dword [ecx + 0xc88]
cmovl edi, dword [ebp - 0x54]
cmp edx, eax
jle 0x100330cc
mov eax, dword [ebp - 0x34]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x38]
push eax
mov eax, edx
sub eax, ecx
add eax, dword [ebp - 0x50]
push eax
push edi
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffff9bc
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x38]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x10
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x38], eax
cmp edx, ecx
jl 0x10033040
mov edi, dword [ebp - 0x50]
test ecx, ecx
jne 0x10033120
mov edx, dword [esi + 0x18]
mov eax, dword [ebp - 0x30]
sub eax, dword [edx + 0x124]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x30]
add edx, dword [esi + 0x3c]
mov dword [ebp - 0x60], edx
cmp dword [eax + 0x10], 0
je 0x10033155
test ecx, ecx
je 0x10033155
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x108]
cmp edi, eax
cmovle edi, eax
mov eax, dword [ecx + 0x110]
cmp edx, eax
mov dword [ebp - 0x5c], edi
cmovle edx, eax
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10032220
xor edi, edi
cmp dword [esi + 0x34], edi
jle 0x10033195
lea edx, [esi + 0xb0]
cmp edi, 0x64
jge 0x10033195
mov eax, dword [esi + 0x38]
mov ecx, dword [edx - 8]
add eax, eax
sub ecx, eax
mov eax, dword [edx]
add ecx, dword [ebp - 0x5c]
cmp eax, ecx
cmovle eax, ecx
inc edi
mov dword [edx], eax
add edx, 0x10
cmp edi, dword [esi + 0x34]
jl 0x10033171
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
lea ecx, [eax + ecx*2]
mov eax, dword [esi + 4]
mov dword [esi + 0x74], ecx
lea edx, [edx + eax*2]
mov eax, dword [esi + 0x30]
mov dword [esi + 0x70], edx
mov eax, dword [eax]
add eax, eax
cmp byte [ebp - 0x45], 0
movups xmm0, xmmword [esi + eax*8 + 0xa8]
movups xmmword [esi + 0x98], xmm0
je 0x1003329d
cmp dword [esi + 0x34], 0
je 0x1003329d
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x1003329d
mov edi, dword [edi + 0x130]
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 4]
sub edi, dword [ebp - 0x64]
mov eax, dword [esi + 0x84]
add edi, edx
add eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x84]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x64]
sar eax, 1
sub edx, eax
mov dword [ebp - 0x64], edx
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x88]
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 edx, dword [ebp - 0x64]
mov ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x8c]
add ecx, dword [esi + 0x1bdc]
add eax, edx
push eax
mov eax, dword [ebp - 0x90]
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 0x1003329d
mov eax, dword [0x100a0654]
push 0
neg eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a0654]
push 0
neg eax
push eax
lea eax, [esi + 0x1be4]
push eax
call edi
push dword [esi + 0x74]
lea eax, [esi + 0x19c8]
push dword [esi + 0x70]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
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]
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 0x10033322
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003334a
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003334a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003334a
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
call fcn.100036a0
int3