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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1009c040]
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 - 4], 0
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x50], 0
test dword [edi + 0x19c], 0xff000000
mov eax, dword [edi + 0x12c]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x2c], eax
je 0x10032cee
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
sub esp, 8
mov dword [ebp - 0x74], 0
cmp dword [edi + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x38], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x10032c4e
test eax, eax
je 0x10032bfa
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 - 0x34], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032c21
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 0x1008ca28
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003620
jmp 0x10032c9a
test eax, eax
je 0x10032c56
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 - 0x34], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032c7d
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x18]
push dword [eax + 0xf4]
add eax, 0xe4
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov edi, dword [esi + 0x18]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
cmp dword [edi + 0xf4], 0
jne 0x10032cd2
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0xc], ecx
cmp dword [edi + 0xf4], 0
je 0x10032cd8
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x10032cee
mov edx, ecx
mov dword [ebp - 0x7c], edx
jmp 0x10032cf5
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
sub esp, 8
mov dword [ebp - 0x80], 0
mov ecx, esp
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x38], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032d41
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 - 0x34], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10032d68
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 7
lea eax, [esi + 0x1bf4]
push dword [esi + 0x1c04]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
lea eax, [ebp - 0x8c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x38], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032db5
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 - 0x34], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10032ddc
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 9
lea eax, [esi + 0x1c0c]
push dword [esi + 0x1c1c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
test dword [eax + 0x1a0], 0xff000000
je 0x10032e4e
test dword [eax + 0x1a4], 0xff000000
je 0x10032e4e
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x88]
mov byte [ebp - 0x4a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x84]
cmp dword [ebp - 0x80], edi
mov dword [ebp - 0x58], eax
cmovg edi, dword [ebp - 0x80]
jmp 0x10032e5b
mov byte [ebp - 0x4a], 0
xor edi, edi
mov dword [ebp - 0x58], 0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10032f86
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10032f86
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032ea4
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 0x10032ec4
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.10031af0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [ebp - 0x44], ecx
cmovg edi, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edi
cmp dword [0x100a16b4], edi
jl 0x10032f0d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10032f0d
mov eax, dword [0x100a16b4]
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x10032f0f
xor ecx, ecx
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
add edi, ecx
add edi, dword [ebp - 0x2c]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x38]
add ecx, dword [ebp - 0x44]
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 - 0x30]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x34]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, dword [ebp - 0x58]
cmovns edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x50], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10032f76
add edi, dword [0x100a16b4]
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 0x10033076
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032fb0
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 0x10032fd0
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.10031af0
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edi
cmp dword [0x100a16b4], edi
jl 0x10033016
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov edi, dword [ebp - 0x40]
test al, al
je 0x10033016
mov eax, dword [0x100a16b4]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
jmp 0x10033018
xor eax, eax
mov ecx, dword [esi + 0x38]
add edi, eax
add edi, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x44]
mov edx, dword [esi + 0x38]
push edi
mov dword [ebp - 0x30], eax
lea edi, [esi + 0x88]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
push ecx
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x30]
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 - 0x40]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
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 - 0x6c], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], edx
test ecx, ecx
jle 0x100335c8
xor eax, eax
lea edi, [esi + 0xd28]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x48], edi
cmp eax, 0xe10
jge 0x100335c5
test edx, edx
jle 0x100330c1
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0x128]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x38]
add ecx, 0xcc
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
cmp dword [ecx + 0x14], 7
jbe 0x100330db
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 - 0x44]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x38], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003310f
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 - 0x34], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10033136
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x40]
add edi, 0xfffff9c0
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x5c]
push ecx
add eax, edx
push eax
push dword [ebp - 0x2c]
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 [ebp - 0x44]
xor edx, edx
add eax, dword [ebp - 0x70]
imul eax, dword [esi + 0x40]
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x40]
add edi, eax
test ecx, ecx
mov dword [ebp - 0x5c], edi
cmovs ecx, edx
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x34], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x54]
jbe 0x10033903
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x44]
add edx, dword [ebp - 0x34]
push eax
sub esp, 8
mov dword [ebp - 0x34], edx
mov ecx, esp
mov dword [ebp - 0x60], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033201
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 - 0x74], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x1003322b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 0xe
push dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
add ecx, edx
push ecx
add eax, edi
push eax
push edx
push edi
mov edi, dword [ebp - 0x48]
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 - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [esi + 0x18]
add dword [ebp - 0x5c], eax
cmp dword [ebp - 0x3c], ecx
cmovg ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x38]
add ecx, eax
mov eax, dword [esi + 0x30]
cmp dword [ebp - 0x30], ecx
cmovg ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax]
jne 0x100333f3
test dword [edx + 0x198], 0xff000000
jne 0x10033403
mov byte [ebp - 0x49], 0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x38], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x54]
jbe 0x10033903
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x64]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x34], eax
lea edx, [eax + 0x10]
je 0x1003340c
cmp dword [esi + 0x48], 0
je 0x1003340c
cmp byte [ebp - 0x49], 0
je 0x1003340c
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x6c], ecx
mov eax, ecx
mov dword [ebp - 0x5c], ecx
cmovg eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x44]
push eax
sub esp, 8
mov dword [ebp - 0x3c], 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 0x10033355
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x3c], eax
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 - 0x38], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x1003337f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x10
push dword [edx]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x34]
call fcn.10004140
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 - 0x40]
mov edx, dword [ebp - 0x2c]
add ecx, edx
imul eax, dword [ebp - 0x44]
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 - 0x44]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x48]
add dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x60], eax
cmovg eax, dword [ebp - 0x60]
cmp dword [ebp - 0x68], ecx
mov edx, eax
mov dword [ebp - 0x60], edx
cmovg ecx, dword [ebp - 0x68]
mov dword [ebp - 0x68], ecx
jmp 0x1003340f
test dword [edx + 0x168], 0xff000000
je 0x100332bb
mov byte [ebp - 0x49], 1
jmp 0x100332bf
mov edx, dword [ebp - 0x60]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10033461
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 - 0x60]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x644]
sub eax, dword [edi + 0x64c]
add eax, dword [ebp - 0x60]
cdq
sub eax, edx
sar eax, 1
jmp 0x1003348c
test eax, eax
jne 0x1003348f
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 - 0x48], eax
add ecx, edx
mov eax, dword [edi + 0x644]
sub eax, dword [edi + 0x64c]
add eax, edx
mov dword [ebp - 0x3c], eax
push ecx
push 0
lea eax, [edi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x48]
push 0
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x3c]
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 - 0x3c], ecx
mov dword [ebp - 0x48], edx
test eax, eax
jle 0x100334fb
mov eax, dword [edi - 0x63c]
cmp eax, ecx
cmovge eax, ecx
mov ecx, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [edi - 0x634]
cmp eax, edx
jle 0x100334f8
mov dword [ebp - 0x48], eax
jmp 0x100334fb
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [edi + 0x64c]
mov eax, ecx
sub eax, dword [edi + 0x644]
test eax, eax
jle 0x1003352b
mov eax, dword [edi + 0x644]
cmp dword [ebp - 0x38], eax
cmovl eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x48], ecx
jg 0x1003352b
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 4]
push dword [ebp - 0x48]
sub edx, eax
add eax, dword [esi + 4]
add edx, dword [ebp - 0x50]
push edx
push dword [ebp - 0x3c]
push eax
lea eax, [edi - 0xc80]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x50], eax
cmovg eax, dword [ebp - 0x50]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp ecx, 7
jbe 0x100335a4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003359a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100338fe
push ecx
push edx
call fcn.1004dff6
add esp, 8
mov edx, dword [ebp - 0x54]
add edi, 0x10
mov eax, dword [ebp - 0x64]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x24
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x48], edi
cmp edx, ecx
jl 0x100330a3
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x68]
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 - 0x64], edi
mov dword [ebp - 0x70], edx
test ecx, ecx
jle 0x100336cf
lea eax, [esi + 0x6ec]
mov dword [ebp - 0x30], eax
nop dword [eax]
cmp edx, 0x64
jge 0x100336ca
mov edi, dword [eax + 0x640]
lea ecx, [eax + 0xc7c]
mov eax, dword [eax + 0x648]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x38]
add eax, dword [ebp - 0x6c]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
sub eax, edx
test eax, eax
jle 0x1003365a
mov eax, dword [ecx + 8]
cmp edx, edi
cmovge edx, edi
mov edi, edx
mov edx, dword [ecx + 0x648]
mov dword [ebp - 0x54], edx
cmp eax, edx
jle 0x1003365d
mov edx, eax
mov dword [ebp - 0x54], edx
jmp 0x1003365d
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx + 0xc88]
sub eax, dword [ecx + 0xc80]
mov dword [ebp - 0x34], edi
test eax, eax
jle 0x10033689
mov eax, dword [ecx + 0xc80]
mov edi, eax
cmp dword [ebp - 0x34], eax
mov eax, dword [ecx + 0xc88]
cmovl edi, dword [ebp - 0x34]
cmp edx, eax
jle 0x1003368c
mov eax, dword [ebp - 0x54]
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 - 0x30]
add eax, 0xfffff9bc
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x30]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x10
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x30], eax
cmp edx, ecx
jl 0x10033600
mov edi, dword [ebp - 0x50]
test ecx, ecx
mov edx, dword [ebp - 0x2c]
jne 0x100336dd
mov eax, dword [esi + 0x18]
sub edx, dword [eax + 0x124]
mov eax, dword [esi + 0x1c]
add edx, dword [esi + 0x3c]
mov dword [ebp - 0x68], edx
cmp dword [eax + 0x10], 0
je 0x1003370f
test ecx, ecx
je 0x1003370f
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 - 0x64], edi
cmovle edx, eax
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10032820
xor edi, edi
cmp dword [esi + 0x34], edi
jle 0x10033754
lea edx, [esi + 0xb0]
nop dword [eax + eax]
cmp edi, 0x64
jge 0x10033754
mov eax, dword [esi + 0x38]
mov ecx, dword [edx - 8]
add eax, eax
sub ecx, eax
mov eax, dword [edx]
add ecx, dword [ebp - 0x64]
cmp eax, ecx
cmovle eax, ecx
inc edi
mov dword [edx], eax
add edx, 0x10
cmp edi, dword [esi + 0x34]
jl 0x10033730
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
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 - 0x4a], 0
movups xmm0, xmmword [esi + eax*8 + 0xa8]
movups xmmword [esi + 0x98], xmm0
je 0x10033859
cmp dword [esi + 0x34], 0
je 0x10033859
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10033859
mov edi, dword [edi + 0x130]
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 4]
sub edi, dword [ebp - 0x58]
mov eax, dword [esi + 0x84]
add edi, edx
add eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x80]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x58], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x58]
sar eax, 1
sub edx, eax
mov dword [ebp - 0x58], edx
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x84]
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 - 0x58]
mov ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x88]
add ecx, dword [esi + 0x1bdc]
add eax, edx
push eax
mov eax, dword [ebp - 0x8c]
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 0x10033859
mov eax, dword [0x100a16b4]
push 0
neg eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a16b4]
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
mov edi, dword [sym.imp.USER32.dll_InflateRect]
call edi
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10032390
mov eax, dword [esi + 8]
neg eax
push eax
mov eax, dword [esi + 4]
neg eax
push eax
lea eax, [esi + 0x19c8]
push eax
call edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100338e1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100338e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100338e1
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.1004dfe8
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005dd2f
call fcn.10005a20
int3