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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e6aa
mov eax, dword fs:[0]
push eax
sub esp, 0x528
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 - 0x534], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
add eax, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
add edi, dword [esi + 8]
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x4ec], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x4f8], edi
test dword [eax + 0x19c], 0xff000000
je 0x10033aac
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x51c], 0
cmp dword [eax + 0xf4], 0
lea eax, [ebp - 0x520]
push eax
jne 0x100339df
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033988
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 - 0x4e4], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100339b2
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 0x10033a49
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033a02
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 - 0x4e4], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10033a2c
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 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 0x10033a8a
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 0x10033a93
add ecx, dword [eax + 0x12c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
test dword [eax + 0x19c], 0xff000000
je 0x10033aac
mov edx, ecx
mov dword [ebp - 0x518], edx
jmp 0x10033ab6
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 - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033b08
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 - 0x4e4], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10033b32
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 - 0x530]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033b82
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 - 0x4e4], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10033bac
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 0x10033c30
test dword [eax + 0x1a4], 0xff000000
je 0x10033c30
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov byte [ebp - 0x502], 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 0x10033c4b
mov byte [ebp - 0x502], 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 0x10033da0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10033da0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033c86
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 0x10033ca6
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.10031ab0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x500], ecx
mov ecx, dword [ebp - 0x4e8]
cmp eax, ecx
mov dword [ebp - 0x4fc], eax
cmovg ecx, eax
mov dword [ebp - 0x4e8], ecx
cmp dword [0x100a16b8], ecx
jl 0x10033d05
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10033d05
mov eax, dword [0x100a16b8]
sub eax, dword [ebp - 0x4e8]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x10033d07
xor ecx, ecx
mov edx, dword [ebp - 0x4fc]
add edx, ecx
mov dword [ebp - 0x4dc], ecx
mov ecx, dword [ebp - 0x4ec]
add edx, edi
add ecx, dword [ebp - 0x500]
mov eax, dword [ebp - 0x4dc]
push edx
push ecx
add eax, edi
push eax
push dword [ebp - 0x4ec]
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x4dc]
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 - 0x500]
mov dword [ebp - 0x4f8], 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 0x10033da0
mov eax, dword [ebp - 0x514]
add eax, dword [0x100a16b8]
mov dword [ebp - 0x514], eax
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x10033eb2
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033dca
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 0x10033dea
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.10031ab0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x500], ecx
mov ecx, eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4fc], ecx
cmp dword [0x100a16b8], ecx
jl 0x10033e44
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x4fc]
test al, al
je 0x10033e44
mov eax, dword [0x100a16b8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x10033e46
xor eax, eax
lea edx, [eax + ecx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4ec]
add edx, edi
add ecx, dword [ebp - 0x500]
add eax, edi
push edx
push ecx
push eax
push dword [ebp - 0x4ec]
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x4dc]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 0x38]
add eax, dword [ebp - 0x4fc]
add edi, eax
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x4f8], 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 - 0x4e8], 0
push 0
push eax
mov dword [ebp - 0x4ec], 0
call fcn.10054380
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.10054380
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.10054380
mov edx, dword [esi + 0x34]
add esp, 0x24
test edx, edx
je 0x1003470a
mov edi, dword [esi + 0x38]
xor ecx, ecx
add edi, dword [esi + 4]
mov dword [ebp - 0x50c], ecx
test edx, edx
jle 0x1003457c
lea eax, [esi + 0x6e8]
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4f4], eax
xor eax, eax
nop word [eax + eax]
cmp eax, 0xe10
jge 0x1003457c
test ecx, ecx
jle 0x10033f58
mov eax, dword [esi + 0x18]
add edi, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
cmp dword [eax], ecx
jne 0x10033f65
add edi, dword [ebp - 0x518]
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
cmp dword [ecx + 0x14], 7
jbe 0x10033f76
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push dword [ebp - 0x50c]
lea ecx, [ebp - 0x4d8]
push dword [esi + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea eax, [ebp - 0x500]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033fb8
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 - 0x4e4], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10033fe2
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x4d8]
push dword [ebp - 0x4c8]
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 - 0x500]
mov ecx, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x4f8]
add ecx, edx
push ecx
add eax, edi
push eax
push edx
push edi
push dword [ebp - 0x4f4]
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x500]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, ecx
mov dword [ebp - 0x510], ecx
add edi, eax
mov eax, dword [esi + 0x24]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x4e4], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x50c]
jbe 0x10034a1a
mov edx, dword [ebp - 0x4e4]
lea eax, [ebp - 0x500]
add edx, dword [ebp - 0x4dc]
push eax
sub esp, 8
mov dword [ebp - 0x4e4], edx
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100340b8
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 - 0x4e0], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100340e8
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x4e4]
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 - 0x500]
mov ecx, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x4f8]
add ecx, edx
push ecx
add eax, edi
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x50c]
add edi, eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x500]
imul eax, dword [esi + 0x44]
add dword [ebp - 0x510], eax
mov eax, dword [esi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [esi + 0x18]
jne 0x100342d8
test dword [eax + 0x198], 0xff000000
jne 0x100342e8
mov byte [ebp - 0x501], 0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x4e4], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x50c]
jbe 0x10034a1a
mov eax, dword [ebp - 0x4e4]
add eax, dword [ebp - 0x4dc]
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x4e4], eax
lea edx, [eax + 0x10]
je 0x100342f4
cmp dword [esi + 0x48], 0
je 0x100342f4
cmp byte [ebp - 0x501], 0
je 0x100342f4
lea eax, [ebp - 0x500]
mov dword [ebp - 0x4e0], edx
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4f0], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10034227
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x4e4]
add eax, 0x10
mov dword [ebp - 0x4e0], 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 - 0x51c], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10034257
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x4e0]
mov byte [ebp - 4], 0x10
push dword [edx]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x4e4]
call fcn.10004140
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 - 0x4fc]
mov edx, dword [ebp - 0x4f8]
add ecx, edx
push ecx
add edi, dword [eax + 0x12c]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x500]
add eax, edi
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push edi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x48]
imul eax, dword [ebp - 0x500]
add edi, eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x500]
imul eax, dword [esi + 0x48]
add dword [ebp - 0x510], eax
jmp 0x10034318
test dword [eax + 0x168], 0xff000000
je 0x1003417e
mov byte [ebp - 0x501], 1
jmp 0x10034185
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0x4f8]
add eax, ecx
push eax
mov eax, dword [ebp - 0x4f4]
push edi
push ecx
push edi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x4f4]
mov eax, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x4e4], eax
mov eax, ecx
sub eax, dword [ebp - 0x518]
mov dword [ebp - 0x4e0], ecx
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0x4e4]
mov edx, dword [ebp - 0x4e0]
cmove edx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4e0], edx
mov edx, dword [ebp - 0x4f4]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x4f0], eax
test eax, eax
jle 0x10034478
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
cmp dword [ebp - 0x4e0], eax
jle 0x10034478
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 4]
add eax, dword [edx + 0xc88]
cmp eax, dword [ebp - 0x4f0]
jle 0x10034478
mov eax, dword [edx + 0xc78]
mov edi, dword [ebp - 0x4ec]
cmp edi, eax
cmovle edi, eax
mov eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x4ec], edi
xor edi, edi
cmp ecx, dword [ebp - 0x4e4]
mov ecx, dword [esi + 0x18]
cmove edi, dword [ebp - 0x518]
add edi, dword [esi + 4]
add edi, dword [esi + 0x38]
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
mov dword [ebp - 0x4f0], edi
sub edi, dword [edx]
push edi
push edx
mov dword [ebp - 0x4e0], eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4f4]
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4f4]
push edi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 0x4e8]
mov eax, dword [ebp - 0x4f8]
mov edx, dword [ebp - 0x4f4]
inc dword [ebp - 0x4e8]
mov dword [ebp + edi*4 - 0x4c0], eax
mov edi, dword [ebp - 0x4f0]
mov ecx, dword [edx + 0xc88]
add eax, dword [ebp - 0x4e0]
add edi, dword [ebp - 0x510]
cmp dword [ebp - 0x4ec], ecx
mov dword [ebp - 0x4f8], eax
cmovg ecx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4ec], ecx
jmp 0x1003448d
cmp dword [ebp - 0x4ec], edi
mov eax, edi
cmovg eax, dword [ebp - 0x4ec]
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4e8]
mov eax, dword [ebp - 0x4f8]
mov dword [ebp + ecx*4 - 0x4c0], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov ecx, dword [ebp + ecx*4 - 0x330]
cmp ecx, eax
mov edx, dword [edx + 0x64c]
cmovle ecx, eax
mov eax, dword [ebp - 0x4f4]
sub edx, dword [eax + 0x644]
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
mov eax, dword [ecx + 0xc8c]
sub eax, dword [ecx + 0xc84]
cmp edx, eax
mov byte [ebp - 4], 1
cmovle edx, eax
mov eax, dword [ebp - 0x4e8]
mov dword [ebp + eax*4 - 0x330], edx
mov eax, dword [ebp - 0x50c]
mov edx, dword [ebp - 0x4e8]
mov dword [ebp + eax*4 - 0x1a0], edx
mov edx, dword [ebp - 0x4c4]
cmp edx, 7
jbe 0x1003454c
lea ecx, [edx*2 + 2]
mov edx, dword [ebp - 0x4d8]
mov eax, edx
cmp ecx, 0x1000
jb 0x10034536
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034a15
push ecx
push edx
call fcn.1004dfa8
mov ecx, dword [ebp - 0x4f4]
add esp, 8
mov eax, dword [ebp - 0x50c]
mov edx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x50c], eax
add ecx, 0x10
mov eax, dword [ebp - 0x4dc]
add eax, 0x24
mov dword [ebp - 0x4f4], ecx
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x4dc], eax
cmp ecx, edx
jl 0x10033f40
xor eax, eax
mov dword [ebp - 0x510], eax
test edx, edx
jle 0x100346de
lea edi, [esi + 0x6f4]
cmp eax, 0x64
jge 0x100346de
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0xc]
mov ecx, edx
sub ecx, dword [ebp - 0x518]
mov esi, dword [ebp - 0x510]
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 - 0x4dc], 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 - 0x534]
xor ecx, ecx
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4f8], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10034653
mov eax, dword [edi - 8]
sub eax, dword [edi]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x4e0], eax
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
sar eax, 1
jmp 0x10034686
test eax, eax
jne 0x1003468c
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
mov edx, dword [ebp - 0x4dc]
add eax, edx
mov ecx, dword [edi - 8]
sub ecx, dword [edi]
mov dword [ebp - 0x4e0], eax
add ecx, edx
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, edx
mov dword [ebp - 0x4f8], eax
push ecx
push 0
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4e0]
lea eax, [edi + 0x634]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4f8]
lea eax, [edi + 0xc74]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x510]
add edi, 0x10
mov edx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x510], eax
cmp eax, edx
jl 0x10034592
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [ebp - 0x4ec]
cmp dword [ebp - 0x514], ecx
cmovg ecx, dword [ebp - 0x514]
mov edi, dword [ebp + eax*4 - 0x4c0]
sub edi, dword [esi + 8]
add edi, dword [ebp + eax*4 - 0x330]
jmp 0x10034728
mov eax, dword [esi + 0x18]
sub edi, dword [esi + 8]
mov ecx, dword [eax + 0x12c]
add ecx, dword [eax + 0x118]
add ecx, dword [ebp - 0x514]
sub edi, dword [eax + 0x124]
mov eax, dword [esi + 0x38]
add eax, ecx
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4ec], eax
mov eax, dword [esi + 0x3c]
add eax, edi
mov dword [ebp - 0x4dc], eax
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x100347c8
cmp dword [eax + 0x10], 0
je 0x10034788
mov ecx, dword [esi + 0x18]
mov edi, dword [ebp - 0x4e0]
mov eax, dword [ecx + 0x108]
cmp edi, eax
cmovle edi, eax
mov eax, dword [ecx + 0x110]
mov ecx, dword [ebp - 0x4dc]
cmp ecx, eax
mov dword [ebp - 0x4e0], edi
cmovle ecx, eax
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4dc], ecx
xor ecx, ecx
test edx, edx
jle 0x100347c8
lea edi, [esi + 0xb0]
cmp ecx, 0x64
jge 0x100347c8
dec edx
cmp ecx, edx
jge 0x100347b0
mov eax, dword [ebp + ecx*4 - 0x1a0]
cmp eax, dword [ebp + ecx*4 - 0x19c]
jl 0x100347b2
cmp ecx, edx
jne 0x100347bd
mov eax, dword [ebp - 0x4e0]
sub eax, dword [esi + 0x38]
mov dword [edi], eax
mov edx, dword [esi + 0x34]
inc ecx
add edi, 0x10
cmp ecx, edx
jl 0x10034794
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 - 0x4dc]
push eax
lea eax, [ebp - 0x4ec]
push eax
movups xmmword [esi + 0x98], xmm0
call fcn.100327d0
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x4dc]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x4ec]
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 - 0x502], 0
je 0x1003490e
cmp dword [esi + 0x34], 0
je 0x1003490e
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x1003490e
mov edi, dword [edi + 0x130]
mov eax, dword [esi + 0x84]
add eax, dword [esi + 0x7c]
sub edi, dword [esi + 0x38]
sub edi, dword [esi + 4]
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 edx, dword [ebp - 0x508]
mov ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x52c]
add ecx, dword [esi + 0x1bdc]
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 0x1003490e
mov eax, dword [0x100a16b8]
push 0
neg eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a16b8]
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
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10032350
cmp dword [ebp - 0x4e8], 0
je 0x100349b7
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 0x100349b7
lea ecx, [esi + 0x19de]
nop
mov al, byte [esi + 0x19dc]
mov edi, dword [ebp + edx*4 - 0x1a0]
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x4e8]
cmp edi, eax
jne 0x10034997
dec eax
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x10034997
mov byte [ecx], 1
test edi, edi
jne 0x100349ae
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100349ae
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 0x10034970
mov eax, dword [esi + 8]
neg eax
push eax
mov eax, dword [esi + 4]
add esi, 0x19c8
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100349f8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100349f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100349f8
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.1004df9a
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005dcef
call fcn.10005a20
int3