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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008867a
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x100a9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x520], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x38]
add ecx, dword [edi + 4]
mov eax, dword [edi + 0x3c]
add eax, dword [edi + 8]
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
test dword [esi + 0x19c], 0xff000000
mov dword [ebp - 0x51c], ecx
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4ec], ecx
je 0x1003b4ce
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x4e4], edx
cmp dword [edi + 0x34], ecx
je 0x1003b43a
mov eax, dword [edi]
mov esi, dword [esi + 0xf4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x4e8]
push eax
sub esp, 8
mov dword [ebp - 0x4f0], esp
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x10]
test esi, esi
jne 0x1003b3d8
test eax, eax
je 0x1003b381
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1003b3ab
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push 1
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
xorps xmm0, xmm0
push 1
movups xmmword [ecx], xmm0
push 0x10096f60
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003770
jmp 0x1003b422
test eax, eax
je 0x1003b3e0
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1003b40a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push esi
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x18]
mov ecx, esp
add eax, 0xe4
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call dword [ebp - 0x528]
mov edx, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x4e8]
mov esi, dword [edi + 0x18]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], edx
cmp dword [esi + 0xf4], 0
jne 0x1003b4af
mov eax, 0x92492493
imul edx
add edx, dword [ebp - 0x4e4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0xc], eax
mov edx, eax
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x1003b499
cmp dword [esi + 0x1ac], 0
je 0x1003b499
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
divss xmm0, dword [0x10096fa4]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm0
cvttss2si edx, xmm1
mov ecx, 6
cmp edx, ecx
cmovg ecx, edx
mov dword [edi + 0xc], ecx
cmp dword [esi + 0xf4], 0
je 0x1003b4b5
add ecx, dword [esi + 0x12c]
mov dword [edi + 0x10], ecx
test dword [esi + 0x19c], 0xff000000
je 0x1003b4ce
mov esi, ecx
mov dword [ebp - 0x514], esi
jmp 0x1003b4d8
mov dword [ebp - 0x514], 0
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x540], 0
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x53c], 0
call eax
test al, al
jne 0x1003b621
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c04]
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x538]
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 0x1003b54c
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 9
test ecx, ecx
je 0x1003b576
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xa
lea eax, [edi + 0x1bf4]
push dword [ebp - 0x4e4]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c1c]
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x540]
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 0x1003b5d4
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1003b5fe
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xd
lea eax, [edi + 0x1c0c]
push dword [ebp - 0x4e4]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call esi
mov eax, dword [edi + 0x18]
test dword [eax + 0x1a0], 0xff000000
je 0x1003b67f
test dword [eax + 0x1a4], 0xff000000
je 0x1003b67f
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov esi, dword [ebp - 0x53c]
mov byte [ebp - 0x50a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x540]
add eax, dword [ebp - 0x538]
cmp dword [ebp - 0x534], esi
mov dword [ebp - 0x528], eax
cmovg esi, dword [ebp - 0x534]
mov dword [ebp - 0x4dc], esi
jmp 0x1003b698
xor ecx, ecx
mov byte [ebp - 0x50a], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x4dc], ecx
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1003b811
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x4e4], eax
cmp dword [eax + 0x10], 0
je 0x1003b811
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003b6dc
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
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x1003b700
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x530]
push dword [ebp - 0x4e4]
mov ecx, edi
push esi
push eax
call fcn.10039540
mov esi, dword [ebp - 0x4dc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x504], ecx
cmovg esi, eax
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4dc], esi
cmp dword [0x100af25c], esi
jl 0x1003b760
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003b760
mov eax, dword [0x100af25c]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x1003b762
xor ecx, ecx
mov edx, dword [ebp - 0x500]
lea esi, [edi + 0x78]
mov eax, dword [ebp - 0x4e0]
add edx, ecx
add edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x510], ecx
mov ecx, dword [ebp - 0x4ec]
add ecx, dword [ebp - 0x504]
add eax, dword [ebp - 0x510]
push edx
push ecx
push eax
push dword [ebp - 0x4ec]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x520]
mov ecx, dword [ebp - 0x510]
mov esi, dword [ebp - 0x4e0]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [edi + 0x38]
add eax, dword [ebp - 0x4dc]
add esi, eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x4e0], esi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x51c]
add eax, dword [ebp - 0x528]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x51c], ecx
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003b817
mov eax, dword [ebp - 0x51c]
add eax, dword [0x100af25c]
mov dword [ebp - 0x51c], eax
jmp 0x1003b817
mov esi, dword [ebp - 0x4e0]
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003b954
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
add eax, 0x24
mov dword [ebp - 0x4e4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003b84d
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
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x1003b871
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x530]
push dword [ebp - 0x4e4]
mov ecx, edi
push esi
push eax
call fcn.10039540
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x504], ecx
mov ecx, eax
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x500], ecx
cmp dword [0x100af25c], ecx
jl 0x1003b8cc
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x500]
test al, al
je 0x1003b8cc
mov eax, dword [0x100af25c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x1003b8ce
xor eax, eax
lea edx, [eax + ecx]
mov dword [ebp - 0x4dc], eax
add edx, dword [ebp - 0x4e0]
lea esi, [edi + 0x88]
mov ecx, dword [ebp - 0x4ec]
add ecx, dword [ebp - 0x504]
mov eax, dword [ebp - 0x4e0]
add eax, dword [ebp - 0x4dc]
push edx
push ecx
push eax
push dword [ebp - 0x4ec]
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x520]
mov ecx, dword [ebp - 0x4dc]
mov esi, dword [ebp - 0x4e0]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [edi + 0x38]
add eax, dword [ebp - 0x500]
add esi, eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x4e0], esi
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 - 0x4f8], 0
push 0
push eax
mov dword [ebp - 0x510], 0
call fcn.1005d560
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.1005d560
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.1005d560
mov edx, dword [edi + 0x34]
add esp, 0x24
test edx, edx
je 0x1003c2b6
mov esi, dword [edi + 0x38]
xor ecx, ecx
add esi, dword [edi + 4]
mov dword [ebp - 0x4fc], ecx
test edx, edx
jle 0x1003c072
lea eax, [edi + 0x6e8]
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4f4], eax
xor eax, eax
nop dword [eax]
cmp eax, 0xe10
jge 0x1003c072
test ecx, ecx
jle 0x1003b9f8
mov eax, dword [edi + 0x18]
add esi, dword [eax + 0x128]
mov eax, dword [edi + 0x30]
cmp dword [eax], ecx
jne 0x1003ba05
add esi, dword [ebp - 0x514]
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov eax, dword [edi + 0x18]
add eax, 0xcc
cmp dword [eax + 0x14], 7
jbe 0x1003ba1a
mov eax, dword [eax]
push eax
push ecx
push dword [edi + 0x2c]
lea eax, [ebp - 0x4d8]
mov ecx, edi
push eax
call edx
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x504]
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 0x1003ba6b
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1003ba95
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x4d8]
push dword [ebp - 0x4e4]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x524]
mov eax, dword [edi + 0x40]
imul eax, dword [ebp - 0x504]
mov ecx, dword [ebp - 0x500]
mov edx, dword [ebp - 0x4e0]
add ecx, edx
push ecx
add eax, esi
push eax
push edx
push esi
push dword [ebp - 0x4f4]
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 0x40]
imul ecx, dword [ebp - 0x504]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, ecx
mov dword [ebp - 0x4ec], ecx
add esi, eax
mov eax, dword [edi + 0x24]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x508], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x4fc]
jbe 0x1003c53a
mov eax, dword [edi]
mov ecx, dword [ebp - 0x4dc]
add ecx, dword [ebp - 0x508]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x524], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x504]
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 0x1003bb7a
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1003bba4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x16
push dword [ebp - 0x4e4]
mov eax, dword [ebp - 0x4dc]
add eax, dword [ebp - 0x508]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov edi, dword [ebp - 0x520]
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x524]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x504]
mov ecx, dword [ebp - 0x500]
mov edx, dword [ebp - 0x4e0]
add ecx, edx
push ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push esi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0x4fc]
add esi, eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x44]
add dword [ebp - 0x4ec], eax
mov eax, dword [edi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [edi + 0x18]
jne 0x1003bda9
test dword [eax + 0x198], 0xff000000
jne 0x1003bdb9
mov byte [ebp - 0x509], 0
mov eax, dword [edi + 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 - 0x4fc]
jbe 0x1003c53a
mov eax, dword [ebp - 0x4e4]
add eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x524], eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4e4], eax
test eax, eax
je 0x1003bdc5
cmp dword [edi + 0x48], 0
je 0x1003bdc5
cmp byte [ebp - 0x509], 0
je 0x1003bdc5
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x508], eax
lea eax, [ebp - 0x504]
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 0x1003bcf3
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 dword [ebp - 0x52c], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x1003bd1d
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x19
push dword [ebp - 0x4e4]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x524]
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x508]
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x500]
mov edx, dword [ebp - 0x4e0]
add ecx, edx
push ecx
add esi, dword [eax + 0x12c]
mov eax, dword [edi + 0x48]
imul eax, dword [ebp - 0x504]
add eax, esi
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push esi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x48]
add esi, eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x4e4], eax
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x48]
add dword [ebp - 0x4ec], eax
jmp 0x1003bdf2
test dword [eax + 0x168], 0xff000000
je 0x1003bc50
mov byte [ebp - 0x509], 1
jmp 0x1003bc57
mov eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x4e0]
add eax, ecx
push eax
mov eax, dword [ebp - 0x4f4]
push esi
push ecx
push esi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x4e4], eax
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x4f4]
mov eax, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x524], eax
mov eax, ecx
sub eax, dword [ebp - 0x514]
mov dword [ebp - 0x508], ecx
mov ecx, dword [ebp - 0x4fc]
cmp ecx, dword [ebp - 0x524]
mov edx, dword [ebp - 0x508]
cmove edx, eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x508], edx
mov edx, dword [ebp - 0x4f4]
mov eax, dword [eax + 0x10c]
mov dword [ebp - 0x518], eax
test eax, eax
jle 0x1003bf6e
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x4f0], eax
add eax, ecx
mov dword [ebp - 0x52c], ecx
mov ecx, dword [ebp - 0x4fc]
cmp dword [ebp - 0x508], eax
jle 0x1003bf6e
mov eax, dword [edi + 0x38]
sub eax, dword [edi + 4]
add eax, dword [edx + 0xc88]
cmp eax, dword [ebp - 0x518]
jle 0x1003bf6e
mov eax, dword [edx + 0xc78]
mov esi, dword [ebp - 0x510]
cmp esi, eax
cmovle esi, eax
mov eax, dword [ebp - 0x4f8]
mov dword [ebp - 0x518], esi
xor esi, esi
cmp ecx, dword [ebp - 0x524]
cmove esi, dword [ebp - 0x514]
mov edi, dword [ebp + eax*4 - 0x330]
mov eax, dword [ebp - 0x4e4]
add esi, dword [ebp - 0x52c]
add esi, dword [ebp - 0x4f0]
mov dword [ebp - 0x4f0], esi
add edi, dword [eax + 0x128]
sub esi, dword [edx]
push edi
push esi
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4f4]
push edi
push esi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4f4]
push edi
push esi
add eax, 0xc80
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4f8]
mov esi, dword [ebp - 0x4f0]
add esi, dword [ebp - 0x4ec]
mov eax, dword [edx + 0xc88]
mov dword [ebp - 0x510], eax
mov eax, dword [ebp - 0x4e0]
mov dword [ebp + ecx*4 - 0x4c0], eax
add eax, edi
mov edi, dword [ebp - 0x510]
inc ecx
cmp dword [ebp - 0x518], edi
mov dword [ebp - 0x4e0], eax
cmovg edi, dword [ebp - 0x518]
mov dword [ebp - 0x510], edi
mov edi, dword [ebp - 0x520]
mov dword [ebp - 0x4f8], ecx
jmp 0x1003bf89
cmp dword [ebp - 0x510], esi
mov eax, esi
mov ecx, dword [ebp - 0x4f8]
cmovg eax, dword [ebp - 0x510]
mov dword [ebp - 0x510], eax
mov eax, dword [ebp - 0x4e0]
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 - 0x4f8]
mov dword [ebp + eax*4 - 0x330], edx
mov eax, dword [ebp - 0x4fc]
mov edx, dword [ebp - 0x4f8]
mov dword [ebp + eax*4 - 0x1a0], edx
mov edx, dword [ebp - 0x4c4]
cmp edx, 7
jbe 0x1003c042
lea ecx, [edx*2 + 2]
mov edx, dword [ebp - 0x4d8]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c02c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c535
push ecx
push edx
call fcn.1005736b
mov ecx, dword [ebp - 0x4f4]
add esp, 8
mov eax, dword [ebp - 0x4fc]
mov edx, dword [edi + 0x34]
inc eax
mov dword [ebp - 0x4fc], eax
add ecx, 0x10
mov eax, dword [ebp - 0x4dc]
add eax, 0x24
mov dword [ebp - 0x4f4], ecx
mov ecx, dword [ebp - 0x4fc]
mov dword [ebp - 0x4dc], eax
cmp ecx, edx
jl 0x1003b9e0
mov eax, dword [ebp - 0x4f8]
mov dword [ebp - 0x4e4], eax
xor eax, eax
mov dword [ebp - 0x4ec], eax
test edx, edx
jle 0x1003c1e0
lea esi, [edi + 0x6f4]
cmp eax, 0x64
jge 0x1003c1e0
mov eax, dword [edi + 0x30]
mov edx, dword [esi - 0xc]
mov ecx, edx
sub ecx, dword [ebp - 0x514]
mov edi, dword [ebp - 0x4ec]
cmp edi, dword [eax]
mov eax, edi
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 [esi + 0xc7c]
lea eax, [esi - 0x64c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x520]
xor ecx, ecx
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x4fc], ecx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x1003c155
mov eax, dword [esi - 8]
sub eax, dword [esi]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x638]
sub eax, dword [esi + 0x640]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x508], eax
mov eax, dword [esi + 0xc78]
sub eax, dword [esi + 0xc80]
add eax, dword [ebp - 0x4dc]
cdq
sub eax, edx
sar eax, 1
jmp 0x1003c188
test eax, eax
jne 0x1003c18e
mov eax, dword [esi + 0x638]
sub eax, dword [esi + 0x640]
mov edx, dword [ebp - 0x4dc]
add eax, edx
mov ecx, dword [esi - 8]
sub ecx, dword [esi]
mov dword [ebp - 0x508], eax
add ecx, edx
mov eax, dword [esi + 0xc78]
sub eax, dword [esi + 0xc80]
add eax, edx
mov dword [ebp - 0x4fc], eax
push ecx
push 0
lea eax, [esi - 0xc]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x508]
lea eax, [esi + 0x634]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x4fc]
lea eax, [esi + 0xc74]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4ec]
add esi, 0x10
mov edx, dword [edi + 0x34]
inc eax
mov dword [ebp - 0x4ec], eax
cmp eax, edx
jl 0x1003c094
mov eax, dword [ebp - 0x4f8]
mov esi, dword [ebp - 0x510]
cmp dword [ebp - 0x51c], esi
cmovg esi, dword [ebp - 0x51c]
mov ecx, dword [ebp + eax*4 - 0x4c0]
sub ecx, dword [edi + 8]
add ecx, dword [ebp + eax*4 - 0x330]
mov eax, dword [edi + 0x3c]
add esi, dword [edi + 0x38]
add eax, ecx
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4dc], esi
mov dword [ebp - 0x4f8], eax
test edx, edx
je 0x1003c2ea
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x108]
cmp esi, eax
cmovle esi, eax
mov eax, dword [ecx + 0x110]
mov ecx, dword [ebp - 0x514]
cmp ecx, eax
mov dword [ebp - 0x4dc], esi
cmovle ecx, eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x514], ecx
xor ecx, ecx
mov dword [ebp - 0x4f8], eax
test edx, edx
jle 0x1003c2ea
lea esi, [edi + 0xb0]
mov dword [ebp - 0x4f8], eax
nop dword [eax + eax]
cmp ecx, 0x64
jge 0x1003c2ea
dec edx
cmp ecx, edx
jge 0x1003c29c
mov eax, dword [ebp + ecx*4 - 0x1a0]
cmp eax, dword [ebp + ecx*4 - 0x19c]
jl 0x1003c29e
cmp ecx, edx
jne 0x1003c2a9
mov eax, dword [ebp - 0x4dc]
sub eax, dword [edi + 0x38]
mov dword [esi], eax
mov edx, dword [edi + 0x34]
inc ecx
add esi, 0x10
cmp ecx, edx
jl 0x1003c280
jmp 0x1003c2ea
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x12c]
add ecx, dword [eax + 0x118]
sub esi, dword [eax + 0x124]
add ecx, dword [ebp - 0x51c]
mov eax, dword [edi + 0x38]
sub esi, dword [edi + 8]
add eax, ecx
mov dword [ebp - 0x4dc], eax
mov eax, dword [edi + 0x3c]
add eax, esi
mov dword [ebp - 0x514], eax
mov eax, dword [edi + 0x30]
mov ecx, edi
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [edi + eax*8 + 0xa8]
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x4dc]
push eax
movups xmmword [edi + 0x98], xmm0
call fcn.1003a0e0
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x514]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0x4dc]
add eax, dword [edi + 4]
lea ecx, [edi + 0x19c8]
push edx
push eax
push 0
push 0
push ecx
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], edx
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 0x50a], 0
je 0x1003c42e
cmp dword [edi + 0x34], 0
je 0x1003c42e
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x58], 0
jne 0x1003c42e
mov esi, dword [esi + 0x130]
sub esi, dword [edi + 0x38]
mov eax, dword [edi + 0x84]
add eax, dword [edi + 0x7c]
sub esi, dword [edi + 4]
sub esi, dword [ebp - 0x528]
add esi, dword [edi + 0x70]
mov ecx, dword [ebp - 0x534]
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
mov edx, dword [ebp - 0x520]
sar eax, 1
add edx, 0x1bd4
sub edi, eax
lea eax, [edi + ecx]
push eax
mov eax, dword [ebp - 0x538]
add eax, esi
push eax
push edi
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x520]
mov eax, dword [edx + 0x18]
lea esi, [edx + 0x1be4]
mov ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x53c]
add ecx, dword [edx + 0x1bdc]
add eax, edi
push eax
mov eax, dword [ebp - 0x540]
add eax, ecx
push eax
push edi
push ecx
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x520]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003c42e
mov eax, dword [0x100af25c]
push 0
neg eax
push eax
lea eax, [edi + 0x1bd4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [0x100af25c]
push 0
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [edi + 0x19c8]
push eax
lea esi, [edi + 0x19b8]
push esi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 8]
not eax
push eax
mov eax, dword [edi + 4]
not eax
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.10039c50
cmp dword [ebp - 0x4f8], 0
je 0x1003c4d7
mov byte [edi + 0x19d9], 0
mov ecx, dword [edi + 0x34]
lea eax, [edi + ecx*4]
mov byte [ecx + eax + 0x19d5], 0
mov ecx, 1
cmp dword [edi + 0x34], ecx
jle 0x1003c4d7
lea edx, [edi + 0x19de]
nop
mov al, byte [edi + 0x19dc]
mov esi, dword [ebp + ecx*4 - 0x1a0]
mov byte [edx + 3], al
mov eax, dword [ebp - 0x4f8]
cmp esi, eax
jne 0x1003c4b7
dec eax
cmp dword [ebp + ecx*4 - 0x1a4], eax
jne 0x1003c4b7
mov byte [edx], 1
test esi, esi
jne 0x1003c4ce
cmp dword [ebp + ecx*4 - 0x19c], 1
jne 0x1003c4ce
mov eax, dword [edi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edx + 1], al
inc ecx
add edx, 5
cmp ecx, dword [edi + 0x34]
jl 0x1003c490
mov eax, dword [edi + 8]
neg eax
push eax
mov eax, dword [edi + 4]
neg eax
push eax
lea eax, [edi + 0x19c8]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003c518
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003c518
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003c518
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.1005735d
mov esp, ebp
pop ebp
ret 0xc
call fcn.10066ebf
call fcn.10005f90
int3