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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e6ea
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 0x10033afc
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x51c], 0
cmp dword [eax + 0xf4], 0
lea eax, [ebp - 0x520]
push eax
jne 0x10033a2f
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 0x100339d8
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 0x10033a02
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 0x10033a99
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 0x10033a52
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 0x10033a7c
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 0x10033ada
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 0x10033ae3
add ecx, dword [eax + 0x12c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
test dword [eax + 0x19c], 0xff000000
je 0x10033afc
mov edx, ecx
mov dword [ebp - 0x518], edx
jmp 0x10033b06
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 0x10033b58
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 0x10033b82
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 0x10033bd2
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 0x10033bfc
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 0x10033c80
test dword [eax + 0x1a4], 0xff000000
je 0x10033c80
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 0x10033c9b
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 0x10033df0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10033df0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033cd6
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 0x10033cf6
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.10031af0
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 0x10033d55
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10033d55
mov eax, dword [0x100a16b8]
sub eax, dword [ebp - 0x4e8]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x10033d57
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 0x10033df0
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 0x10033f02
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033e1a
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 0x10033e3a
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.10031af0
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 0x10033e94
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x4fc]
test al, al
je 0x10033e94
mov eax, dword [0x100a16b8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x10033e96
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.100543c0
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.100543c0
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.100543c0
mov edx, dword [esi + 0x34]
add esp, 0x24
test edx, edx
je 0x1003475a
mov edi, dword [esi + 0x38]
xor ecx, ecx
add edi, dword [esi + 4]
mov dword [ebp - 0x50c], ecx
test edx, edx
jle 0x100345cc
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 0x100345cc
test ecx, ecx
jle 0x10033fa8
mov eax, dword [esi + 0x18]
add edi, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
cmp dword [eax], ecx
jne 0x10033fb5
add edi, dword [ebp - 0x518]
mov ecx, dword [esi + 0x18]
add ecx, 0xcc
cmp dword [ecx + 0x14], 7
jbe 0x10033fc6
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 0x10034008
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 0x10034032
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 0x10034a6a
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 0x10034108
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 0x10034138
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 0x10034328
test dword [eax + 0x198], 0xff000000
jne 0x10034338
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 0x10034a6a
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 0x10034344
cmp dword [esi + 0x48], 0
je 0x10034344
cmp byte [ebp - 0x501], 0
je 0x10034344
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 0x10034277
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 0x100342a7
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 0x10034368
test dword [eax + 0x168], 0xff000000
je 0x100341ce
mov byte [ebp - 0x501], 1
jmp 0x100341d5
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 0x100344c8
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
cmp dword [ebp - 0x4e0], eax
jle 0x100344c8
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 4]
add eax, dword [edx + 0xc88]
cmp eax, dword [ebp - 0x4f0]
jle 0x100344c8
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 0x100344dd
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 0x1003459c
lea ecx, [edx*2 + 2]
mov edx, dword [ebp - 0x4d8]
mov eax, edx
cmp ecx, 0x1000
jb 0x10034586
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034a65
push ecx
push edx
call fcn.1004dff6
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 0x10033f90
xor eax, eax
mov dword [ebp - 0x510], eax
test edx, edx
jle 0x1003472e
lea edi, [esi + 0x6f4]
cmp eax, 0x64
jge 0x1003472e
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 0x100346a3
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 0x100346d6
test eax, eax
jne 0x100346dc
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 0x100345e2
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 0x10034778
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 0x10034818
cmp dword [eax + 0x10], 0
je 0x100347d8
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 0x10034818
lea edi, [esi + 0xb0]
cmp ecx, 0x64
jge 0x10034818
dec edx
cmp ecx, edx
jge 0x10034800
mov eax, dword [ebp + ecx*4 - 0x1a0]
cmp eax, dword [ebp + ecx*4 - 0x19c]
jl 0x10034802
cmp ecx, edx
jne 0x1003480d
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 0x100347e4
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.10032820
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 0x1003495e
cmp dword [esi + 0x34], 0
je 0x1003495e
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x1003495e
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 0x1003495e
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.10032390
cmp dword [ebp - 0x4e8], 0
je 0x10034a07
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 0x10034a07
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 0x100349e7
dec eax
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x100349e7
mov byte [ecx], 1
test edi, edi
jne 0x100349fe
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x100349fe
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 0x100349c0
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 0x10034a48
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10034a48
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10034a48
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