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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d6da
mov eax, dword fs:[0]
push eax
sub esp, 0x528
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 - 0x534], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
mov edi, dword [esi + 0x3c]
add edi, dword [esi + 8]
mov dword [ebp - 0x51c], eax
mov dword [ebp - 0x4e4], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x4f0], edi
test dword [eax + 0x19c], 0xff000000
je 0x1003346c
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
cmp dword [eax + 0xf4], 0
lea eax, [ebp - 0x4f8]
push eax
jne 0x1003339f
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033348
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 - 0x514], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10033372
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 0x10033409
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100333c2
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 - 0x514], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100333ec
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 - 0x4f4]
mov ecx, dword [ebp - 0x4f8]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0xc], ecx
cmp dword [eax + 0xf4], 0
jne 0x1003344a
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 0x10033453
add ecx, dword [eax + 0x12c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], ecx
test dword [eax + 0x19c], 0xff000000
je 0x1003346c
mov edx, ecx
mov dword [ebp - 0x520], edx
jmp 0x10033476
mov dword [ebp - 0x520], 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 - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100334c8
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 - 0x514], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100334f2
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 - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033542
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 - 0x514], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x1003356c
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 0x100335f0
test dword [eax + 0x1a4], 0xff000000
je 0x100335f0
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 - 0x50c], eax
cmovg ecx, dword [ebp - 0x524]
mov dword [ebp - 0x4e0], ecx
jmp 0x1003360b
mov byte [ebp - 0x502], 0
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x4e0], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10033760
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10033760
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033646
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 0x10033666
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x518]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031470
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x500], ecx
mov ecx, dword [ebp - 0x4e0]
cmp eax, ecx
mov dword [ebp - 0x4fc], eax
cmovg ecx, eax
mov dword [ebp - 0x4e0], ecx
cmp dword [0x100a0658], ecx
jl 0x100336c5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100336c5
mov eax, dword [0x100a0658]
sub eax, dword [ebp - 0x4e0]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x100336c7
xor ecx, ecx
mov edx, dword [ebp - 0x4fc]
add edx, ecx
mov dword [ebp - 0x4dc], ecx
mov ecx, dword [ebp - 0x4e4]
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 - 0x4e4]
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 - 0x4e0]
add edi, eax
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x4f0], edi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x51c]
add eax, dword [ebp - 0x50c]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x51c], ecx
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10033760
mov eax, dword [ebp - 0x51c]
add eax, dword [0x100a0658]
mov dword [ebp - 0x51c], eax
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x10033872
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003378a
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 0x100337aa
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 - 0x518]
push eax
call fcn.10031470
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x500], ecx
mov ecx, eax
mov dword [ebp - 0x514], eax
mov dword [ebp - 0x4fc], ecx
cmp dword [0x100a0658], ecx
jl 0x10033804
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x4fc]
test al, al
je 0x10033804
mov eax, dword [0x100a0658]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x10033806
xor eax, eax
lea edx, [eax + ecx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4e4]
add edx, edi
add ecx, dword [ebp - 0x500]
add eax, edi
push edx
push ecx
push eax
push dword [ebp - 0x4e4]
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 - 0x4f0], edi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x51c]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x51c], ecx
push 0x190
lea eax, [ebp - 0x330]
mov dword [ebp - 0x4e0], 0
push 0
push eax
mov dword [ebp - 0x4e4], 0
call fcn.100535b0
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.100535b0
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.100535b0
mov edx, dword [esi + 0x34]
add esp, 0x24
test edx, edx
je 0x100340cc
mov edi, dword [esi + 0x38]
xor ecx, ecx
add edi, dword [esi + 4]
mov dword [ebp - 0x510], ecx
test edx, edx
jle 0x10033f41
lea eax, [esi + 0xd28]
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4ec], eax
xor eax, eax
nop word [eax + eax]
cmp eax, 0xe10
jge 0x10033f41
test ecx, ecx
jle 0x10033918
mov eax, dword [esi + 0x18]
add edi, dword [eax + 0x128]
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x520]
add edx, edi
cmp dword [eax], ecx
mov ecx, dword [esi + 0x18]
cmovne edx, edi
add ecx, 0xcc
mov dword [ebp - 0x4f4], edx
cmp dword [ecx + 0x14], 8
jb 0x1003393f
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push dword [ebp - 0x510]
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 - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033981
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 - 0x514], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x100339ab
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 edi, dword [ebp - 0x4f0]
add ecx, edi
mov edx, dword [ebp - 0x4ec]
push ecx
add eax, dword [ebp - 0x4f4]
add edx, 0xfffff9c0
push eax
push edi
push dword [ebp - 0x4f4]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x40]
imul ecx, dword [ebp - 0x500]
mov edi, dword [eax + 0x12c]
mov eax, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x508], ecx
add edi, dword [ebp - 0x4f4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x514], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x510]
jbe 0x100343da
mov edx, dword [ebp - 0x514]
lea eax, [ebp - 0x500]
add edx, dword [ebp - 0x4dc]
push eax
sub esp, 8
mov dword [ebp - 0x514], edx
mov ecx, esp
mov dword [ebp - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033a95
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10033ac5
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x514]
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 - 0x4f0]
add ecx, edx
push ecx
add eax, edi
push eax
push edx
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x510]
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 - 0x508], eax
mov eax, dword [esi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [esi + 0x18]
jne 0x10033c93
test dword [eax + 0x198], 0xff000000
jne 0x10033ca3
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 - 0x514], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x510]
jbe 0x100343da
mov edx, dword [ebp - 0x514]
add edx, dword [ebp - 0x4dc]
mov dword [ebp - 0x514], edx
cmp dword [edx + 0x10], 0
je 0x10033caf
cmp dword [esi + 0x48], 0
je 0x10033caf
cmp byte [ebp - 0x501], 0
je 0x10033caf
lea eax, [ebp - 0x500]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4e8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10033be6
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 - 0x4f4], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10033c16
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x514]
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 + 0x18]
mov ecx, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x4f0]
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 - 0x4ec]
push edx
push edi
add eax, 0x640
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 - 0x508], eax
jmp 0x10033cd3
test dword [eax + 0x168], 0xff000000
je 0x10033b55
mov byte [ebp - 0x501], 1
jmp 0x10033b5c
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0x4f0]
add eax, ecx
push eax
mov eax, dword [ebp - 0x4ec]
push edi
push ecx
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x4ec]
mov eax, dword [eax]
mov ecx, dword [edx - 0x640]
mov dword [ebp - 0x514], eax
mov eax, ecx
sub eax, dword [ebp - 0x520]
mov dword [ebp - 0x4f4], ecx
mov ecx, dword [ebp - 0x510]
cmp ecx, dword [ebp - 0x514]
mov edx, dword [ebp - 0x4f4]
cmove edx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x4f4], edx
mov edx, dword [ebp - 0x4ec]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x4e8], eax
test eax, eax
jle 0x10033e3d
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
cmp dword [ebp - 0x4f4], eax
jle 0x10033e3d
mov eax, dword [edx + 0x648]
sub eax, dword [esi + 4]
add eax, dword [esi + 0x38]
cmp eax, dword [ebp - 0x4e8]
jle 0x10033e3d
mov eax, dword [edx + 0x638]
cmp dword [ebp - 0x4e4], eax
cmovg eax, dword [ebp - 0x4e4]
xor edi, edi
cmp ecx, dword [ebp - 0x514]
mov ecx, dword [esi + 0x18]
cmove edi, dword [ebp - 0x520]
add edi, dword [esi + 4]
add edi, dword [esi + 0x38]
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x4e8], edi
sub edi, dword [edx - 0x640]
mov eax, dword [ebp + eax*4 - 0x330]
add eax, dword [ecx + 0x128]
push eax
mov dword [ebp - 0x4f4], eax
lea eax, [edx - 0x640]
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4f4]
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4f4]
mov eax, dword [ebp - 0x4ec]
push edi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4f0]
mov edx, dword [ebp - 0x4ec]
inc dword [ebp - 0x4e0]
mov dword [ebp + edi*4 - 0x4c0], eax
mov edi, dword [ebp - 0x4e8]
mov ecx, dword [edx + 0x648]
add eax, dword [ebp - 0x4f4]
add edi, dword [ebp - 0x508]
cmp dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4f0], eax
cmovg ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e4], ecx
jmp 0x10033e52
cmp dword [ebp - 0x4e4], edi
mov eax, edi
cmovg eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4f0]
mov dword [ebp + ecx*4 - 0x4c0], eax
mov eax, dword [edx - 0x634]
sub eax, dword [edx - 0x63c]
mov ecx, dword [ebp + ecx*4 - 0x330]
cmp ecx, eax
mov edx, dword [edx + 0xc]
cmovle ecx, eax
mov eax, dword [ebp - 0x4ec]
sub edx, dword [eax + 4]
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
mov eax, dword [ecx + 0x64c]
sub eax, dword [ecx + 0x644]
cmp edx, eax
mov byte [ebp - 4], 1
cmovle edx, eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp + eax*4 - 0x330], edx
mov eax, dword [ebp - 0x510]
mov edx, dword [ebp - 0x4e0]
mov dword [ebp + eax*4 - 0x1a0], edx
mov edx, dword [ebp - 0x4c4]
cmp edx, 8
jb 0x10033f11
lea ecx, [edx*2 + 2]
mov edx, dword [ebp - 0x4d8]
mov eax, edx
cmp ecx, 0x1000
jb 0x10033efb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100343d5
push ecx
push edx
call fcn.1004d1ad
mov ecx, dword [ebp - 0x4ec]
add esp, 8
mov eax, dword [ebp - 0x510]
mov edx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x510], eax
add ecx, 0x10
mov eax, dword [ebp - 0x4dc]
add eax, 0x24
mov dword [ebp - 0x4ec], ecx
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x4dc], eax
cmp ecx, edx
jl 0x10033900
xor eax, eax
mov dword [ebp - 0x508], eax
test edx, edx
jle 0x100340a3
lea edi, [esi + 0x6f4]
cmp eax, 0x64
jge 0x100340a3
mov eax, dword [esi + 0x30]
mov edx, dword [edi - 0xc]
mov ecx, edx
sub ecx, dword [ebp - 0x520]
mov esi, dword [ebp - 0x508]
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 - 0x4f4], ecx
mov dword [ebp - 0x4f0], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x10034018
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 - 0x4f4], eax
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
sar eax, 1
jmp 0x1003404b
test eax, eax
jne 0x10034051
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 - 0x4f4], eax
add ecx, edx
mov eax, dword [edi + 0xc78]
sub eax, dword [edi + 0xc80]
add eax, edx
mov dword [ebp - 0x4f0], eax
push ecx
push 0
lea eax, [edi - 0xc]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4f4]
lea eax, [edi + 0x634]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4f0]
lea eax, [edi + 0xc74]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x508]
add edi, 0x10
mov edx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x508], eax
cmp eax, edx
jl 0x10033f57
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [ebp - 0x4e4]
cmp dword [ebp - 0x51c], ecx
mov edi, dword [ebp + eax*4 - 0x4c0]
cmovg ecx, dword [ebp - 0x51c]
add edi, dword [ebp + eax*4 - 0x330]
jmp 0x100340e7
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x12c]
add ecx, dword [eax + 0x118]
add ecx, dword [ebp - 0x51c]
sub edi, dword [eax + 0x124]
mov eax, dword [esi + 0x38]
sub edi, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4e4], eax
mov eax, dword [esi + 0x3c]
add eax, edi
mov dword [ebp - 0x4dc], eax
mov eax, dword [esi + 0x1c]
test edx, edx
je 0x1003418a
cmp dword [eax + 0x10], 0
je 0x1003414a
mov ecx, dword [esi + 0x18]
mov edi, dword [ebp - 0x4f4]
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 - 0x4f4], edi
cmovle ecx, eax
mov dword [ebp - 0x4e4], edi
mov dword [ebp - 0x4dc], ecx
xor ecx, ecx
test edx, edx
jle 0x1003418a
lea edi, [esi + 0xb0]
cmp ecx, 0x64
jge 0x1003418a
dec edx
cmp ecx, edx
jge 0x10034172
mov eax, dword [ebp + ecx*4 - 0x1a0]
cmp eax, dword [ebp + ecx*4 - 0x19c]
jl 0x10034174
cmp ecx, edx
jne 0x1003417f
mov eax, dword [ebp - 0x4f4]
sub eax, dword [esi + 0x38]
mov dword [edi], eax
mov edx, dword [esi + 0x34]
inc ecx
add edi, 0x10
cmp ecx, edx
jl 0x10034156
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 - 0x4e4]
push eax
movups xmmword [esi + 0x98], xmm0
call fcn.100321a0
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x4dc]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x4e4]
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 0x100342d0
cmp dword [esi + 0x34], 0
je 0x100342d0
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x100342d0
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 - 0x50c]
mov ecx, dword [ebp - 0x524]
add edi, dword [esi + 0x70]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x50c], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x50c]
sar eax, 1
sub edx, eax
mov dword [ebp - 0x50c], 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 ecx, dword [esi + 0x1bdc]
mov edx, dword [ebp - 0x50c]
add ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x52c]
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 0x100342d0
mov eax, dword [0x100a0658]
push 0
neg eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a0658]
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.10031d20
cmp dword [ebp - 0x4e0], 0
je 0x10034377
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 0x10034377
lea ecx, [esi + 0x19de]
mov al, byte [esi + 0x19dc]
mov edi, dword [ebp + edx*4 - 0x1a0]
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x4e0]
cmp edi, eax
jne 0x10034357
dec eax
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x10034357
mov byte [ecx], 1
test edi, edi
jne 0x1003436e
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x1003436e
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 0x10034330
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 dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100343b8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100343b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100343b8
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