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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d5f3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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 - 0x8c], esi
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 - 0x6c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x2c], eax
je 0x10032674
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push eax
sub esp, 8
mov dword [ebp - 0x70], 0
cmp dword [edi + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x30], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x100325d4
test eax, eax
je 0x10032580
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 - 0x60], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100325a7
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 0x1008ba48
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003660
jmp 0x10032620
test eax, eax
je 0x100325dc
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 - 0x60], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032603
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 - 0x74]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
cmp dword [edi + 0xf4], 0
jne 0x10032658
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0xc], ecx
cmp dword [edi + 0xf4], 0
je 0x1003265e
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x10032674
mov edx, ecx
mov dword [ebp - 0x78], edx
jmp 0x1003267b
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
sub esp, 8
mov dword [ebp - 0x7c], 0
mov ecx, esp
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x30], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100326c1
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 - 0x60], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100326e8
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 - 0x88]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x30], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032735
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 - 0x60], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x1003275c
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 0x100327cb
test dword [eax + 0x1a4], 0xff000000
je 0x100327cb
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x84]
mov byte [ebp - 0x46], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], edi
mov dword [ebp - 0x60], eax
cmovg edi, dword [ebp - 0x7c]
jmp 0x100327d8
mov byte [ebp - 0x46], 0
xor edi, edi
mov dword [ebp - 0x60], 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 0x10032903
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10032903
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032821
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 0x10032841
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x74]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031470
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 - 0x38], edi
cmp dword [0x100a0654], edi
jl 0x1003288a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003288a
mov eax, dword [0x100a0654]
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x1003288c
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 - 0x34], ecx
mov ecx, dword [esi + 0x38]
add ecx, dword [ebp - 0x44]
add eax, dword [ebp - 0x34]
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 - 0x34]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x38]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
lea eax, [eax + ecx*2]
mov ecx, esi
add eax, dword [ebp - 0x60]
cmovns edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x50], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100328f3
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 0x100329f3
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003292d
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 0x1003294d
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 - 0x74]
push eax
call fcn.10031470
mov edi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edi
cmp dword [0x100a0654], edi
jl 0x10032993
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov edi, dword [ebp - 0x40]
test al, al
je 0x10032993
mov eax, dword [0x100a0654]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
jmp 0x10032995
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 - 0x34], eax
lea edi, [esi + 0x88]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
push ecx
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x34]
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 - 0x68], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x58], edx
test ecx, ecx
jle 0x10032f42
xor eax, eax
lea edi, [esi + 0xd28]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], edi
cmp eax, 0xe10
jge 0x10032f3f
test edx, edx
jle 0x10032a3e
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 - 0x78]
mov dword [ebp - 0x4c], eax
cmp dword [ecx + 0x14], 8
jb 0x10032a58
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 - 0x30], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032a8c
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 - 0x3c], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10032ab3
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]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
push ecx
add eax, edx
push eax
push dword [ebp - 0x2c]
lea eax, [edi - 0x640]
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp - 0x8c]
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 - 0x44]
xor edx, edx
add eax, dword [ebp - 0x6c]
imul eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0x40]
add dword [ebp - 0x4c], eax
test ecx, ecx
cmovs ecx, edx
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x54], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x3c], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x58]
jbe 0x10033272
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x44]
add edx, dword [ebp - 0x3c]
push eax
sub esp, 8
mov dword [ebp - 0x3c], edx
mov ecx, esp
mov dword [ebp - 0x90], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032b88
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 - 0x70], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10032bb2
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
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 - 0x2c]
add ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
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 [esi + 0x44]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [esi + 0x18]
add dword [ebp - 0x4c], eax
cmp dword [ebp - 0x54], ecx
cmovg ecx, dword [ebp - 0x54]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x30]
add ecx, eax
mov eax, dword [esi + 0x30]
cmp dword [ebp - 0x34], ecx
cmovg ecx, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jne 0x10032d6d
test dword [edx + 0x198], 0xff000000
jne 0x10032d7d
mov byte [ebp - 0x45], 0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x30], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x58]
jbe 0x10033272
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
cmp dword [edx + 0x10], 0
je 0x10032d86
cmp dword [esi + 0x48], 0
je 0x10032d86
cmp byte [ebp - 0x45], 0
je 0x10032d86
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 - 0x44]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x70], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10032ccd
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 - 0x90], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10032cfa
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x10
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 + 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 - 0x5c]
add dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x54], eax
cmovg eax, dword [ebp - 0x54]
cmp dword [ebp - 0x38], ecx
mov edx, eax
mov dword [ebp - 0x54], edx
cmovg ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], ecx
jmp 0x10032d89
test dword [edx + 0x168], 0xff000000
je 0x10032c42
mov byte [ebp - 0x45], 1
jmp 0x10032c46
mov edx, dword [ebp - 0x54]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10032ddb
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 - 0x54]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0x644]
sub eax, dword [edi + 0x64c]
add eax, dword [ebp - 0x54]
cdq
sub eax, edx
sar eax, 1
jmp 0x10032e06
test eax, eax
jne 0x10032e09
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 - 0x5c], 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 - 0x5c]
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 - 0x5c], edx
test eax, eax
jle 0x10032e75
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 0x10032e72
mov dword [ebp - 0x5c], eax
jmp 0x10032e75
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [edi + 0x64c]
mov eax, ecx
sub eax, dword [edi + 0x644]
test eax, eax
jle 0x10032ea5
mov eax, dword [edi + 0x644]
cmp dword [ebp - 0x30], eax
cmovl eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x5c], ecx
jg 0x10032ea5
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 4]
push dword [ebp - 0x5c]
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 - 0x4c]
cmp dword [ebp - 0x50], eax
cmovg eax, dword [ebp - 0x50]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jb 0x10032f1e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10032f14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003326d
push ecx
push edx
call fcn.1004d1ad
add esp, 8
mov edx, dword [ebp - 0x58]
add edi, 0x10
mov eax, dword [ebp - 0x64]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x24
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], edi
cmp edx, ecx
jl 0x10032a20
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x38]
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 - 0x38], edx
test ecx, ecx
jle 0x10033046
lea eax, [esi + 0x6ec]
mov dword [ebp - 0x34], eax
cmp edx, 0x64
jge 0x10033041
mov edi, dword [eax + 0x640]
lea ecx, [eax + 0xc7c]
mov eax, dword [eax + 0x648]
mov dword [ebp - 0x58], 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 - 0x34]
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
sub eax, edx
test eax, eax
jle 0x10032fd1
mov eax, dword [ecx + 8]
cmp edx, edi
cmovge edx, edi
mov edi, edx
mov edx, dword [ecx + 0x648]
mov dword [ebp - 0x58], edx
cmp eax, edx
jle 0x10032fd4
mov edx, eax
mov dword [ebp - 0x58], edx
jmp 0x10032fd4
mov edx, dword [ebp - 0x58]
mov eax, dword [ecx + 0xc88]
sub eax, dword [ecx + 0xc80]
mov dword [ebp - 0x6c], edi
test eax, eax
jle 0x10033000
mov eax, dword [ecx + 0xc80]
mov edi, eax
cmp dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0xc88]
cmovl edi, dword [ebp - 0x6c]
cmp edx, eax
jle 0x10033003
mov eax, dword [ebp - 0x58]
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 - 0x34]
add eax, 0xfffff9bc
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x10
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
cmp edx, ecx
jl 0x10032f77
mov edi, dword [ebp - 0x50]
test ecx, ecx
mov edx, dword [ebp - 0x2c]
jne 0x10033054
mov eax, dword [esi + 0x18]
sub edx, dword [eax + 0x124]
mov eax, dword [esi + 0x1c]
add edx, dword [esi + 0x3c]
mov dword [ebp - 0x38], edx
cmp dword [eax + 0x10], 0
je 0x10033086
test ecx, ecx
je 0x10033086
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 - 0x38], edx
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100321a0
xor edi, edi
cmp dword [esi + 0x34], edi
jle 0x100330c6
lea edx, [esi + 0xb0]
cmp edi, 0x64
jge 0x100330c6
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 0x100330a2
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x38]
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 - 0x46], 0
movups xmm0, xmmword [esi + eax*8 + 0xa8]
movups xmmword [esi + 0x98], xmm0
je 0x100331c8
cmp dword [esi + 0x34], 0
je 0x100331c8
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x100331c8
mov edi, dword [edi + 0x130]
sub edi, dword [esi + 4]
sub edi, dword [ebp - 0x60]
sub edi, dword [esi + 0x38]
mov eax, dword [esi + 0x84]
add edi, edx
add eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x7c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x60], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x60]
sar eax, 1
sub edx, eax
mov dword [ebp - 0x60], edx
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x80]
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 - 0x60]
add ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x84]
add eax, edx
push eax
mov eax, dword [ebp - 0x88]
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 0x100331c8
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
mov edi, dword [sym.imp.USER32.dll_InflateRect]
call edi
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10031d20
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 0x10033250
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10033250
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10033250
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.10005be0
int3