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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008890a
mov eax, dword fs:[0]
push eax
sub esp, 0x538
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 - 0x528], edi
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x38]
add eax, dword [edi + 4]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x4e0], eax
mov eax, dword [edi + 0x3c]
add eax, ecx
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 0
test dword [esi + 0x19c], 0xff000000
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x4f8], eax
je 0x1003e17e
xor ecx, ecx
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x518], ecx
cmp dword [edi + 0x34], ecx
je 0x1003e0e0
mov eax, dword [edi]
mov esi, dword [esi + 0xf4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x52c], eax
lea eax, [ebp - 0x51c]
push eax
sub esp, 8
mov dword [ebp - 0x4fc], esp
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test esi, esi
jne 0x1003e084
test eax, eax
je 0x1003e02d
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 - 0x530], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1003e057
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 0x1003e0ce
test eax, eax
je 0x1003e08c
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 - 0x530], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1003e0b6
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 - 0x52c]
mov ecx, dword [ebp - 0x518]
mov esi, dword [edi + 0x18]
mov eax, dword [ebp - 0x51c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], ecx
cmp dword [esi + 0xf4], 0
jne 0x1003e15f
mov eax, 0x92492493
imul dword [ebp - 0x51c]
add edx, dword [ebp - 0x51c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x14], eax
mov edx, eax
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x1003e149
cmp dword [esi + 0x1ac], 0
je 0x1003e149
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 + 0x14], ecx
cmp dword [esi + 0xf4], 0
je 0x1003e165
add ecx, dword [esi + 0x12c]
mov dword [edi + 0x10], ecx
test dword [esi + 0x19c], 0xff000000
je 0x1003e17e
mov esi, ecx
mov dword [ebp - 0x4e8], esi
jmp 0x1003e188
mov dword [ebp - 0x4e8], 0
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x544], 0
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x540], 0
call eax
test al, al
jne 0x1003e2d1
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c04]
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x53c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e1fc
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 - 0x530], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 9
test ecx, ecx
je 0x1003e226
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
lea eax, [edi + 0x1bf4]
mov byte [ebp - 4], 0xa
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 - 0x4dc], eax
lea eax, [ebp - 0x544]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e284
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 - 0x530], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1003e2ae
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
lea eax, [edi + 0x1c0c]
mov byte [ebp - 4], 0xd
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 0x1003e32f
test dword [eax + 0x1a4], 0xff000000
je 0x1003e32f
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov esi, dword [ebp - 0x544]
mov byte [ebp - 0x50a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x540]
add eax, dword [ebp - 0x538]
cmp dword [ebp - 0x53c], esi
mov dword [ebp - 0x52c], eax
cmovg esi, dword [ebp - 0x53c]
mov dword [ebp - 0x4ec], esi
jmp 0x1003e34a
mov byte [ebp - 0x50a], 0
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x4ec], 0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1003e4ab
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x4dc], eax
cmp dword [eax + 0x10], 0
je 0x1003e4ab
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 0x1003e38e
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 0x1003e3b2
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x534]
mov byte [ebp - 4], 1
push esi
push eax
mov ecx, edi
call fcn.10039540
mov esi, dword [ebp - 0x4ec]
mov ecx, dword [eax]
cmp ecx, esi
mov eax, dword [eax + 4]
cmovg esi, ecx
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x504], eax
cmp dword [0x100af260], esi
jb 0x1003e40c
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003e40c
mov eax, dword [0x100af260]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x1003e40e
xor ecx, ecx
mov edx, dword [ebp - 0x4f8]
lea esi, [edi + 0x78]
add edx, dword [ebp - 0x504]
mov dword [ebp - 0x4e4], ecx
add ecx, dword [ebp - 0x508]
add ecx, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4e4]
add eax, dword [ebp - 0x4e0]
push edx
push ecx
push dword [ebp - 0x4f8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x528]
mov ecx, dword [ebp - 0x4e4]
mov esi, dword [ebp - 0x510]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, edi
add eax, dword [ebp - 0x508]
add dword [ebp - 0x4e0], eax
mov eax, dword [edi + 0x3c]
add eax, dword [edi + 8]
add eax, dword [ebp - 0x504]
add eax, dword [ebp - 0x52c]
cmp esi, eax
cmovbe esi, eax
mov eax, dword [edi]
mov dword [ebp - 0x510], esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003e4ab
add esi, dword [0x100af260]
mov dword [ebp - 0x510], esi
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003e5df
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
add eax, 0x24
mov dword [ebp - 0x4dc], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e4e1
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 0x1003e505
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x534]
mov byte [ebp - 4], 1
push esi
push eax
mov ecx, edi
call fcn.10039540
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x508], ecx
mov dword [ebp - 0x504], eax
cmp dword [0x100af260], ecx
jl 0x1003e55e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x508]
test al, al
je 0x1003e55e
mov eax, dword [0x100af260]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x4e4], eax
jmp 0x1003e566
xor edx, edx
mov dword [ebp - 0x4e4], edx
mov edx, dword [ebp - 0x4f8]
lea esi, [edi + 0x88]
mov eax, dword [ebp - 0x4e4]
add ecx, eax
add edx, dword [ebp - 0x504]
add ecx, dword [ebp - 0x4e0]
add eax, dword [ebp - 0x4e0]
push edx
push ecx
push dword [ebp - 0x4f8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x528]
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x3c]
add ecx, dword [edi + 8]
mov eax, dword [eax + 0x124]
lea eax, [eax + edx*2]
add eax, dword [ebp - 0x508]
add dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x504]
add eax, ecx
mov ecx, dword [ebp - 0x510]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x510], ecx
xor esi, esi
lea eax, [ebp - 0x330]
push 0x190
push esi
push eax
mov dword [ebp - 0x514], esi
mov dword [ebp - 0x524], esi
call fcn.1005d560
push 0x190
lea eax, [ebp - 0x1a0]
push esi
push eax
call fcn.1005d560
push 0x190
lea eax, [ebp - 0x4c0]
push esi
push eax
call fcn.1005d560
mov edx, dword [edi + 0x34]
add esp, 0x24
test edx, edx
je 0x1003ef35
mov ecx, dword [edi + 0x3c]
add ecx, dword [edi + 8]
mov dword [ebp - 0x4f0], ecx
mov dword [ebp - 0x500], esi
test edx, edx
jle 0x1003ed1a
lea eax, [edi + 0xd30]
mov dword [ebp - 0x4e4], esi
mov dword [ebp - 0x4f4], eax
xor eax, eax
nop
cmp dword [ebp - 0x4e4], 0xe10
jge 0x1003ed1a
test eax, eax
jle 0x1003e683
mov eax, dword [edi + 0x18]
add ecx, dword [eax + 0x128]
mov dword [ebp - 0x4f0], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x500]
cmp dword [eax], edx
jne 0x1003e69c
add ecx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4f0], ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x4dc], eax
mov eax, dword [edi + 0x18]
add eax, 0xcc
cmp dword [eax + 0x14], 7
jbe 0x1003e6b7
mov eax, dword [eax]
push eax
push edx
push dword [edi + 0x2c]
lea eax, [ebp - 0x4d8]
mov ecx, edi
push eax
call dword [ebp - 0x4dc]
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x4ec], eax
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x508]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e70c
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 - 0x530], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1003e736
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x4d8]
mov byte [ebp - 4], 0x13
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x4ec]
mov ecx, dword [edi + 0x40]
imul ecx, dword [ebp - 0x504]
mov edx, dword [ebp - 0x4f0]
mov eax, dword [ebp - 0x508]
add eax, dword [ebp - 0x4e0]
add ecx, edx
push ecx
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push dword [ebp - 0x4e0]
add eax, 0xfffff9b8
push eax
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 - 0x4f8], ecx
add dword [ebp - 0x4f0], eax
mov eax, dword [edi + 0x24]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x4ec], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x500]
jbe 0x1003f5d8
mov eax, dword [edi]
mov ecx, dword [ebp - 0x4e4]
add ecx, dword [ebp - 0x4ec]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x518], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x508]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e82e
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 - 0x530], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1003e858
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x4dc]
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x4ec]
sub esp, 0x18
add eax, dword [ebp - 0x4e4]
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x518]
mov ecx, dword [edi + 0x44]
imul ecx, dword [ebp - 0x504]
mov edx, dword [ebp - 0x4f0]
mov eax, dword [ebp - 0x508]
add eax, dword [ebp - 0x4e0]
add ecx, edx
push ecx
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push dword [ebp - 0x4e0]
add eax, 0xfffffff8
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x504]
mov ecx, dword [ebp - 0x500]
add dword [ebp - 0x4f0], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x44]
add dword [ebp - 0x4f8], eax
mov eax, dword [edi + 0x30]
cmp ecx, dword [eax]
mov eax, dword [edi + 0x18]
jne 0x1003ea67
test dword [eax + 0x198], 0xff000000
jne 0x1003ea77
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 - 0x518], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x500]
jbe 0x1003f5d8
mov esi, dword [ebp - 0x518]
add esi, dword [ebp - 0x4e4]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x518], eax
test eax, eax
je 0x1003ea83
cmp dword [edi + 0x48], 0
je 0x1003ea83
cmp byte [ebp - 0x509], 0
je 0x1003ea83
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x508]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x4fc], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003e9a6
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 - 0x530], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x1003e9d0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x19
push dword [ebp - 0x518]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x4dc]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x48]
imul ecx, dword [ebp - 0x504]
mov edx, dword [ebp - 0x4f0]
add edx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x508]
mov esi, dword [ebp - 0x4e0]
add eax, esi
add ecx, edx
mov dword [ebp - 0x4f0], edx
push ecx
push eax
mov eax, dword [ebp - 0x4f4]
push edx
push esi
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x48]
add dword [ebp - 0x4f0], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x4dc], eax
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x504]
imul eax, dword [edi + 0x48]
add dword [ebp - 0x4f8], eax
jmp 0x1003eab6
test dword [eax + 0x168], 0xff000000
je 0x1003e909
mov byte [ebp - 0x509], 1
jmp 0x1003e910
mov eax, dword [ebp - 0x508]
mov edx, dword [ebp - 0x4e0]
add eax, edx
mov ecx, dword [ebp - 0x4f0]
push ecx
push eax
mov eax, dword [ebp - 0x4f4]
push ecx
push edx
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x4dc], eax
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x4f4]
mov esi, dword [eax]
mov ecx, dword [edx - 0x644]
mov eax, ecx
sub eax, dword [ebp - 0x4e8]
cmp dword [ebp - 0x500], esi
mov dword [ebp - 0x520], esi
mov esi, ecx
cmove esi, eax
mov dword [ebp - 0x4ec], ecx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x4ec], esi
mov esi, dword [ebp - 0x514]
mov eax, dword [eax + 0x114]
mov dword [ebp - 0x518], eax
test eax, eax
jle 0x1003ec2a
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x530], eax
add eax, ecx
mov dword [ebp - 0x4fc], ecx
mov ecx, dword [ebp - 0x500]
cmp dword [ebp - 0x4ec], eax
jle 0x1003ec2a
mov eax, dword [edx + 0x644]
sub eax, dword [edi + 8]
add eax, dword [edi + 0x3c]
cmp eax, dword [ebp - 0x518]
jle 0x1003ec2a
mov eax, dword [edx + 0x634]
mov esi, dword [ebp - 0x524]
cmp esi, eax
mov edi, dword [ebp - 0x514]
cmovle esi, eax
xor eax, eax
cmp ecx, dword [ebp - 0x520]
mov dword [ebp - 0x518], esi
cmove eax, dword [ebp - 0x4e8]
add eax, dword [ebp - 0x530]
add eax, dword [ebp - 0x4fc]
mov edi, dword [ebp + edi*4 - 0x330]
mov esi, eax
sub esi, dword [edx - 0x644]
mov dword [ebp - 0x4f0], eax
mov eax, dword [ebp - 0x4dc]
push esi
add edi, dword [eax + 0x128]
lea eax, [edx - 0x648]
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4f4]
push esi
push edi
add eax, 0xfffffff8
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4f4]
push esi
push edi
add eax, 0x638
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [ebp - 0x514]
mov eax, dword [ebp - 0x4e0]
mov edx, dword [ebp - 0x4f4]
mov dword [ebp + esi*4 - 0x4c0], eax
add eax, edi
mov edi, dword [ebp - 0x528]
inc esi
mov ecx, dword [edx + 0x644]
mov dword [ebp - 0x4e0], eax
mov eax, dword [ebp - 0x4f8]
add dword [ebp - 0x4f0], eax
cmp dword [ebp - 0x518], ecx
mov dword [ebp - 0x514], esi
cmovg ecx, dword [ebp - 0x518]
mov dword [ebp - 0x524], ecx
jmp 0x1003ec45
mov ecx, dword [ebp - 0x4f0]
mov eax, ecx
cmp dword [ebp - 0x524], ecx
cmovg eax, dword [ebp - 0x524]
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [ebp + esi*4 - 0x330]
mov dword [ebp + esi*4 - 0x4c0], eax
mov eax, dword [edx - 0x640]
sub eax, dword [edx - 0x648]
mov edx, dword [edx]
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [ebp - 0x4f4]
sub edx, dword [eax - 8]
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
mov eax, dword [ecx + 0x640]
sub eax, dword [ecx + 0x638]
cmp edx, eax
mov byte [ebp - 4], 1
cmovle edx, eax
mov eax, dword [ebp - 0x500]
mov dword [ebp + esi*4 - 0x330], edx
mov edx, dword [ebp - 0x4c4]
mov dword [ebp + eax*4 - 0x1a0], esi
cmp edx, 7
jbe 0x1003ecf1
lea ecx, [edx*2 + 2]
mov edx, dword [ebp - 0x4d8]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ecdb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f5d3
push ecx
push edx
call fcn.1005736b
mov ecx, dword [ebp - 0x4f4]
add esp, 8
mov eax, dword [ebp - 0x500]
add dword [ebp - 0x4e4], 0x24
inc eax
mov edx, dword [edi + 0x34]
add ecx, 0x10
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4f4], ecx
cmp eax, edx
jge 0x1003ed1a
mov ecx, dword [ebp - 0x4f0]
jmp 0x1003e660
xor ecx, ecx
mov dword [ebp - 0x4f4], ecx
test edx, edx
jle 0x1003eeeb
lea esi, [edi + 0xd30]
cmp ecx, 0x64
jge 0x1003eee5
mov eax, dword [edi + 0x30]
mov edx, dword [esi - 0x644]
mov ecx, edx
sub ecx, dword [ebp - 0x4e8]
mov edi, dword [ebp - 0x4f4]
cmp edi, dword [eax]
mov eax, edi
push dword [esi + 0x644]
cmove edx, ecx
mov eax, dword [ebp + eax*4 - 0x1a0]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp + eax*4 - 0x4c0]
mov eax, dword [ebp + eax*4 - 0x330]
add eax, ecx
push eax
push edx
push ecx
lea eax, [esi - 0xc88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x528]
xor ecx, ecx
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x500], ecx
mov eax, dword [edi + 0x18]
mov edx, dword [eax + 0x100]
cmp edx, 1
jne 0x1003ee09
mov ecx, dword [ebp - 0x4f8]
mov eax, dword [esi - 0x648]
sub eax, dword [esi - 0x640]
add eax, dword [ebp + ecx*4 - 0x330]
cdq
sub eax, edx
mov edx, dword [ebp - 0x4f8]
mov ecx, eax
mov eax, dword [esi - 8]
sub eax, dword [esi]
sar ecx, 1
add eax, dword [ebp + edx*4 - 0x330]
cdq
sub eax, edx
mov edx, dword [ebp - 0x4f8]
sar eax, 1
mov dword [ebp - 0x4e4], eax
mov eax, dword [esi + 0x638]
sub eax, dword [esi + 0x640]
add eax, dword [ebp + edx*4 - 0x330]
cdq
sub eax, edx
sar eax, 1
jmp 0x1003ee58
test edx, edx
jne 0x1003ee15
cmp byte [eax + 0x104], cl
jne 0x1003ee22
cmp edx, 2
jne 0x1003ee5e
cmp byte [eax + 0x104], cl
jne 0x1003ee5e
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [esi - 0x648]
sub ecx, dword [esi - 0x640]
mov edx, dword [ebp + eax*4 - 0x330]
add ecx, edx
mov eax, dword [esi - 8]
sub eax, dword [esi]
add eax, edx
mov dword [ebp - 0x4e4], eax
mov eax, dword [esi + 0x638]
sub eax, dword [esi + 0x640]
add eax, edx
mov dword [ebp - 0x500], eax
push 0
push ecx
lea eax, [esi - 0x648]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x4e4]
lea eax, [esi - 8]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x500]
lea eax, [esi + 0x638]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0x4f4]
dec eax
cmp ecx, eax
jge 0x1003eeb5
mov edx, dword [ebp + ecx*4 - 0x1a0]
cmp edx, dword [ebp + ecx*4 - 0x19c]
jl 0x1003eeb7
cmp ecx, eax
jne 0x1003eed2
mov edx, dword [ebp - 0x524]
mov eax, edx
cmp dword [ebp - 0x510], edx
cmovg eax, dword [ebp - 0x510]
mov dword [esi - 0xc7c], eax
inc ecx
add esi, 0x10
mov dword [ebp - 0x4f4], ecx
cmp ecx, dword [edi + 0x34]
jl 0x1003ed30
mov esi, dword [ebp - 0x514]
mov eax, dword [ebp - 0x524]
cmp dword [ebp - 0x510], eax
cmovg eax, dword [ebp - 0x510]
mov ecx, eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x510], ecx
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [edi + eax*8 + 0xa8]
mov eax, dword [ebp + esi*4 - 0x4c0]
sub eax, dword [edi + 4]
add eax, dword [ebp + esi*4 - 0x330]
movups xmmword [edi + 0x98], xmm0
mov dword [ebp - 0x4e0], eax
jmp 0x1003ef4d
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x4e0]
sub ecx, dword [eax + 0x124]
sub ecx, dword [edi + 4]
mov dword [ebp - 0x4e0], ecx
push 0x190
lea eax, [ebp - 0x4c0]
push 0
push eax
call fcn.1005d560
push 0x190
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.1005d560
mov eax, dword [edi + 0x18]
add esp, 0x18
cmp byte [eax + 0x104], 0
jne 0x1003f1c5
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1003efa1
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x1003efa1
mov eax, dword [edi + 0x78]
jmp 0x1003efcf
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003efb2
mov eax, dword [edi + 0x88]
jmp 0x1003efcf
cmp dword [edi + 0x34], 0
je 0x1003efc9
mov eax, dword [edi + 0xa8]
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x4e8], eax
jmp 0x1003efe0
mov eax, dword [ebp - 0x4fc]
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x4e8], eax
test edx, edx
je 0x1003f1c5
xor ecx, ecx
test esi, esi
js 0x1003f094
nop word [eax + eax]
xor eax, eax
test edx, edx
jle 0x1003f00d
cmp dword [ebp + eax*4 - 0x1a0], ecx
je 0x1003f006
inc eax
cmp eax, edx
jl 0x1003eff6
jmp 0x1003f00d
mov dword [ebp + ecx*4 - 0x4c0], eax
inc ecx
cmp ecx, esi
jle 0x1003eff0
mov eax, esi
mov dword [ebp - 0x4ec], esi
nop word [eax + eax]
mov edx, dword [ebp + eax*4 - 0x4c0]
cmp eax, esi
jne 0x1003f03e
mov ecx, dword [ebp - 0x4e8]
mov eax, edx
add eax, eax
sub ecx, dword [edi + eax*8 + 0xa8]
jmp 0x1003f061
mov ecx, dword [ebp + eax*4 - 0x4bc]
mov eax, edx
add ecx, 0xb
add eax, eax
add ecx, ecx
mov ecx, dword [edi + ecx*8]
sub ecx, dword [edi + eax*8 + 0xa8]
mov eax, dword [edi + 0x18]
add ecx, dword [eax + 0x128]
mov eax, dword [ebp - 0x4ec]
shl edx, 4
push 0
push ecx
mov dword [ebp + eax*4 - 0x330], ecx
lea eax, [edx + 0xa8]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4ec]
sub eax, 1
mov dword [ebp - 0x4ec], eax
jns 0x1003f020
xor ecx, ecx
mov dword [ebp - 0x4dc], ecx
cmp dword [edi + 0x34], ecx
jle 0x1003f153
lea esi, [edi + 0x6e8]
mov dword [ebp - 0x4e8], esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x1a0]
lea edx, [ebp - 0x330]
shl eax, 2
add edx, eax
mov dword [ebp - 0x4fc], edx
cmp ecx, dword [ebp + eax - 0x4c0]
je 0x1003f0f8
push 0
push dword [edx]
lea eax, [esi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x4fc]
mov esi, dword [edx]
push 0
push esi
push dword [ebp - 0x4e8]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4e8]
push 0
push esi
add eax, 0x640
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push esi
mov esi, dword [ebp - 0x4e8]
lea eax, [esi + 0xc80]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x4dc]
add esi, 0x10
inc ecx
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4dc], ecx
cmp ecx, dword [edi + 0x34]
jl 0x1003f0c0
mov eax, dword [edi + 0x30]
mov ecx, edi
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [edi + eax*8 + 0xa8]
mov eax, dword [edi]
movups xmmword [edi + 0x98], xmm0
mov eax, dword [eax + 0x50]
call eax
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
test al, al
jne 0x1003f19f
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x1003f19f
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x78]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [edi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call esi
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003f1c5
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x88]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [edi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call esi
mov edx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
add edx, dword [ebp - 0x4e0]
add esi, dword [ebp - 0x510]
cmp dword [edi + 0x34], 0
mov dword [ebp - 0x4e8], edx
mov dword [ebp - 0x4ec], esi
je 0x1003f20e
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x108]
cmp edx, eax
cmovle edx, eax
mov eax, dword [ecx + 0x110]
cmp esi, eax
mov dword [ebp - 0x4e8], edx
cmovle esi, eax
mov dword [ebp - 0x4ec], esi
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 - 0x4ec]
push eax
lea eax, [ebp - 0x4e8]
push eax
movups xmmword [edi + 0x98], xmm0
call fcn.1003a0e0
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 0x4e8]
add edx, dword [ebp - 0x4ec]
push edx
mov dword [edi + 0x74], edx
lea eax, [eax + ecx*2]
push eax
push 0
lea ecx, [edi + 0x19c8]
mov dword [edi + 0x70], eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 0x50a], 0
je 0x1003f354
cmp dword [edi + 0x34], 0
je 0x1003f354
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x58], 0
jne 0x1003f354
mov esi, dword [esi + 0x134]
sub esi, dword [edi + 0x3c]
mov eax, dword [edi + 0x80]
add eax, dword [edi + 0x78]
sub esi, dword [edi + 8]
sub esi, dword [ebp - 0x52c]
add esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x53c]
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
mov edx, dword [ebp - 0x528]
sar eax, 1
add edx, 0x1bd4
sub edi, eax
mov eax, dword [ebp - 0x538]
add eax, esi
push eax
lea eax, [edi + ecx]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
push edi
push edx
call esi
mov edx, dword [ebp - 0x528]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x12c]
add ecx, dword [edx + 0x1be0]
add edx, 0x1be4
mov eax, dword [ebp - 0x540]
add eax, ecx
push eax
mov eax, dword [ebp - 0x544]
add eax, edi
push eax
push ecx
push edi
push edx
call esi
mov edi, dword [ebp - 0x528]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003f354
mov eax, dword [0x100af260]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
neg eax
push eax
push 0
lea eax, [edi + 0x1bd4]
push eax
call esi
mov eax, dword [0x100af260]
neg eax
push eax
push 0
lea eax, [edi + 0x1be4]
push eax
call esi
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
mov eax, dword [edi + 0x18]
xor edx, edx
mov ecx, dword [edi + 0x34]
cmp byte [eax + 0x104], dl
je 0x1003f48a
test ecx, ecx
jle 0x1003f575
nop dword [eax]
nop word [eax + eax]
mov al, byte [edi + 0x19dc]
lea ecx, [edi + edx*4]
mov byte [edx + ecx + 0x19dc], al
cmp byte [edi + 0x19dc], 0
je 0x1003f47b
mov eax, dword [ebp + edx*4 - 0x1a0]
lea esi, [edx + edx*4]
mov ecx, dword [ebp - 0x514]
cmp eax, ecx
jne 0x1003f3eb
mov word [esi + edi + 0x19da], 0
test eax, eax
jne 0x1003f3f7
mov word [esi + edi + 0x19d8], ax
test edx, edx
jne 0x1003f412
mov eax, dword [edi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19d8], al
test ecx, ecx
jne 0x1003f412
mov byte [edi + 0x19da], 1
mov eax, dword [edi + 0x34]
dec eax
cmp edx, eax
jne 0x1003f433
mov byte [esi + edi + 0x19db], 1
test ecx, ecx
jne 0x1003f433
mov eax, dword [edi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + edi + 0x19d9], al
mov esi, dword [ebp + edx*4 - 0x1a0]
cmp esi, ecx
jne 0x1003f459
test ecx, ecx
jle 0x1003f459
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x1003f459
lea eax, [edi + edx*4]
mov byte [edx + eax + 0x19da], 1
test esi, esi
jne 0x1003f47b
test ecx, ecx
jle 0x1003f47b
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x1003f47b
mov eax, dword [edi + 0x18]
lea ecx, [edi + edx*4]
mov al, byte [eax + 0x58]
mov byte [edx + ecx + 0x19d9], al
inc edx
cmp edx, dword [edi + 0x34]
jl 0x1003f3b0
jmp 0x1003f575
test ecx, ecx
jle 0x1003f575
nop dword [eax]
nop word [eax + eax]
mov al, byte [edi + 0x19dc]
lea ecx, [edi + edx*4]
mov byte [edx + ecx + 0x19dc], al
cmp byte [edi + 0x19dc], 0
je 0x1003f56b
mov eax, dword [ebp + edx*4 - 0x1a0]
lea esi, [edx + edx*4]
test eax, eax
jne 0x1003f4d3
mov word [esi + edi + 0x19da], ax
mov ecx, dword [ebp - 0x514]
cmp eax, ecx
jne 0x1003f4e7
mov word [esi + edi + 0x19d8], 0
test edx, edx
jne 0x1003f502
mov eax, dword [edi + 0x18]
mov al, byte [eax + 0x58]
mov byte [edi + 0x19da], al
test ecx, ecx
jne 0x1003f502
mov byte [edi + 0x19d8], 1
mov eax, dword [edi + 0x34]
dec eax
cmp edx, eax
jne 0x1003f523
mov byte [esi + edi + 0x19d9], 1
test ecx, ecx
jne 0x1003f523
mov eax, dword [edi + 0x18]
mov al, byte [eax + 0x58]
mov byte [esi + edi + 0x19db], al
mov esi, dword [ebp + edx*4 - 0x1a0]
cmp esi, ecx
jne 0x1003f549
test ecx, ecx
jle 0x1003f549
lea eax, [ecx - 1]
cmp dword [ebp + edx*4 - 0x1a4], eax
jne 0x1003f549
lea eax, [edi + edx*4]
mov byte [edx + eax + 0x19d8], 1
test esi, esi
jne 0x1003f56b
test ecx, ecx
jle 0x1003f56b
cmp dword [ebp + edx*4 - 0x19c], 1
jne 0x1003f56b
mov eax, dword [edi + 0x18]
lea ecx, [edi + edx*4]
mov al, byte [eax + 0x58]
mov byte [edx + ecx + 0x19db], al
inc edx
cmp edx, dword [edi + 0x34]
jl 0x1003f4a0
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 0x1003f5b6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003f5b6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003f5b6
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