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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088593
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 - 0x54], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x50], 0
test dword [esi + 0x19c], 0xff000000
mov eax, dword [esi + 0x12c]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x30], eax
je 0x1003a5fb
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
cmp dword [edi + 0x34], ecx
je 0x1003a56d
mov eax, dword [edi]
mov esi, dword [esi + 0xf4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x78]
push eax
sub esp, 8
mov dword [ebp - 0x2c], esp
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x10]
test esi, esi
jne 0x1003a517
test eax, eax
je 0x1003a4c3
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 - 0x70], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1003a4ea
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 0x1003a55e
test eax, eax
je 0x1003a51f
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 - 0x70], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1003a546
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 - 0x68]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov esi, dword [edi + 0x18]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], edx
cmp dword [esi + 0xf4], 0
jne 0x1003a5df
mov eax, 0x92492493
imul edx
add edx, dword [ebp - 0x74]
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 0x1003a5c9
cmp dword [esi + 0x1ac], 0
je 0x1003a5c9
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 0x1003a5e5
add ecx, dword [esi + 0x12c]
mov dword [edi + 0x10], ecx
test dword [esi + 0x19c], 0xff000000
je 0x1003a5fb
mov esi, ecx
mov dword [ebp - 0x80], esi
jmp 0x1003a602
mov dword [ebp - 0x80], 0
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], 0
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x90], 0
call eax
test al, al
jne 0x1003a733
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c04]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x8c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003a670
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 - 0x70], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 9
test ecx, ecx
je 0x1003a697
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x68]
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 - 0x68], eax
lea eax, [ebp - 0x94]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003a6ec
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 - 0x70], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1003a713
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x68]
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 0x1003a788
test dword [eax + 0x1a4], 0xff000000
je 0x1003a788
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x12c]
mov esi, dword [ebp - 0x90]
mov byte [ebp - 0x5a], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], esi
mov dword [ebp - 0x68], eax
cmovg esi, dword [ebp - 0x88]
mov dword [ebp - 0x3c], esi
jmp 0x1003a798
xor ecx, ecx
mov byte [ebp - 0x5a], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x3c], ecx
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1003a8db
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x40], eax
cmp dword [eax + 0x10], 0
je 0x1003a8db
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 0x1003a7e7
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 0x1003a80b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
push dword [ebp - 0x40]
mov ecx, edi
push esi
push eax
call fcn.10039540
mov esi, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x4c], ecx
cmovg esi, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], esi
cmp dword [0x100af258], esi
jl 0x1003a859
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003a859
mov eax, dword [0x100af258]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x1003a85b
xor ecx, ecx
mov esi, dword [ebp - 0x48]
lea eax, [edi + 0x78]
mov edx, dword [edi + 0x38]
add esi, ecx
add esi, dword [ebp - 0x30]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
add ecx, edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x58]
push esi
push ecx
push eax
push edx
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x54]
xor esi, esi
mov ecx, dword [ebp - 0x58]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, dword [edi + 0x38]
add eax, dword [ebp - 0x3c]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
lea eax, [eax + ecx*2]
mov ecx, edi
add eax, dword [ebp - 0x68]
cmovns esi, eax
mov eax, dword [edi]
mov dword [ebp - 0x50], esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003a8c9
add esi, dword [0x100af258]
mov dword [ebp - 0x50], esi
push dword [edi + 8]
lea eax, [edi + 0x78]
push dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x1003a8dd
xor esi, esi
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003a9e3
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
add eax, 0x24
mov dword [ebp - 0x40], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003a910
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 0x1003a934
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
push dword [ebp - 0x40]
mov ecx, edi
push esi
push eax
call fcn.10039540
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], esi
cmp dword [0x100af258], esi
jl 0x1003a978
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov esi, dword [ebp - 0x48]
test al, al
je 0x1003a978
mov eax, dword [0x100af258]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x1003a97a
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add esi, eax
add esi, dword [ebp - 0x30]
add edi, 0x88
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
push esi
mov dword [ebp - 0x40], edi
mov edx, dword [eax + 0x38]
add ecx, edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x58]
push ecx
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x50]
mov eax, dword [edx + 0x18]
push dword [edx + 8]
push dword [edx + 4]
mov eax, dword [eax + 0x124]
push edi
lea eax, [eax + ecx*2]
mov ecx, dword [edx + 0x38]
add eax, dword [ebp - 0x48]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
lea eax, [eax + ecx*2]
cmp esi, eax
cmovle esi, eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [ebp - 0x54]
mov ecx, dword [edi + 0x34]
xor edx, edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x64], edx
test ecx, ecx
jle 0x1003af79
xor eax, eax
lea esi, [edi + 0xd28]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], esi
nop dword [eax]
cmp eax, 0xe10
jge 0x1003af76
test edx, edx
jle 0x1003aa3e
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 0x128]
mov dword [ebp - 0x30], ecx
mov eax, dword [edi + 0x38]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x18]
add eax, 0xcc
cmp dword [eax + 0x14], 7
jbe 0x1003aa5f
mov eax, dword [eax]
push eax
push edx
push dword [edi + 0x2c]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [ebp - 0x38]
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003aa9f
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 - 0x70], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1003aac6
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x38]
lea eax, [ebp - 0x28]
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 - 0x44]
mov eax, dword [edi + 0x40]
add esi, 0xfffff9c0
imul eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x60]
push ecx
add eax, edx
push eax
push dword [ebp - 0x30]
push edx
push esi
call dword [sym.imp.USER32.dll_SetRect]
push dword [edi + 8]
push dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x4c]
xor edx, edx
add eax, dword [ebp - 0x7c]
imul eax, dword [edi + 0x40]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
add esi, eax
test ecx, ecx
mov dword [ebp - 0x60], esi
cmovs ecx, edx
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x70], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x38], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x64]
jbe 0x1003b2a7
mov eax, dword [edi]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x38]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x98], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003ab9d
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 - 0x74], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1003abc4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 0x16
push eax
call fcn.10004470
mov edi, dword [ebp - 0x54]
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x6c]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
add ecx, edx
push ecx
add eax, esi
push eax
push edx
push esi
mov esi, dword [ebp - 0x34]
push esi
call dword [sym.imp.USER32.dll_SetRect]
push dword [edi + 8]
push dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov edx, dword [edi + 0x18]
add dword [ebp - 0x60], eax
cmp dword [ebp - 0x70], ecx
cmovg ecx, dword [ebp - 0x70]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov eax, dword [edi + 0x30]
cmp dword [ebp - 0x40], ecx
cmovg ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax]
jne 0x1003ad98
test dword [edx + 0x198], 0xff000000
jne 0x1003ada8
mov byte [ebp - 0x59], 0
mov eax, dword [edi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x2c], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x64]
jbe 0x1003b2a7
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x70], eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1003adb1
cmp dword [edi + 0x48], 0
je 0x1003adb1
cmp byte [ebp - 0x59], 0
je 0x1003adb1
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x58], ecx
mov eax, ecx
mov dword [ebp - 0x60], ecx
cmovg eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x4c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x74], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003acf2
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 - 0x98], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x1003ad1c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x19
push dword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x70]
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x6c]
mov eax, dword [edi + 0x48]
add esi, 0x640
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
add ecx, edx
imul eax, dword [ebp - 0x4c]
push ecx
push eax
push edx
push 0
push esi
call dword [sym.imp.USER32.dll_SetRect]
push dword [edi + 8]
push dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [edi + 0x48]
imul ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x34]
add dword [ebp - 0x60], ecx
cmp dword [ebp - 0x44], eax
cmovg eax, dword [ebp - 0x44]
cmp dword [ebp - 0x84], ecx
mov edx, eax
mov dword [ebp - 0x44], edx
cmovg ecx, dword [ebp - 0x84]
mov dword [ebp - 0x84], ecx
jmp 0x1003adb4
test dword [edx + 0x168], 0xff000000
je 0x1003ac5b
mov byte [ebp - 0x59], 1
jmp 0x1003ac5f
mov edx, dword [ebp - 0x44]
mov eax, dword [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 0x100]
cmp eax, 1
jne 0x1003ae13
mov ecx, dword [esi - 0x634]
mov eax, edx
sub ecx, dword [esi - 0x63c]
sub eax, ecx
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
sub eax, ecx
mov ecx, dword [esi + 0x64c]
sub ecx, dword [esi + 0x644]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x38], eax
jmp 0x1003ae46
test eax, eax
jne 0x1003ae46
mov eax, dword [esi - 0x634]
mov ecx, edx
sub eax, dword [esi - 0x63c]
sub ecx, eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub edx, eax
mov eax, dword [esi + 0x64c]
sub eax, dword [esi + 0x644]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x38], edx
push ecx
push 0
lea eax, [esi - 0x640]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x34]
push 0
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [ebp - 0x38]
lea eax, [esi + 0x640]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0xc]
mov edx, dword [esi - 0x63c]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi - 0x634]
sub eax, edx
mov dword [ebp - 0x34], ecx
test eax, eax
jle 0x1003aeaf
mov eax, dword [esi - 0x634]
cmp edx, ecx
cmovge edx, ecx
mov ecx, edx
mov dword [ebp - 0x34], ecx
cmp eax, dword [ebp - 0x38]
jle 0x1003aeac
mov dword [ebp - 0x38], eax
jmp 0x1003aeaf
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x64c]
mov edx, dword [esi + 0x644]
sub eax, edx
test eax, eax
jle 0x1003aedc
mov eax, dword [esi + 0x64c]
cmp ecx, edx
cmovl edx, ecx
mov ecx, edx
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x38], eax
jg 0x1003aedc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 4]
push dword [ebp - 0x38]
sub edx, eax
add eax, dword [edi + 4]
add edx, dword [ebp - 0x50]
push edx
push dword [ebp - 0x34]
push eax
lea eax, [esi - 0xc80]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x50], eax
cmovg eax, dword [ebp - 0x50]
mov ecx, eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 7
jbe 0x1003af55
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003af4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b2a2
push ecx
push edx
call fcn.1005736b
add esp, 8
mov edx, dword [ebp - 0x64]
add esi, 0x10
mov eax, dword [ebp - 0x3c]
inc edx
mov ecx, dword [edi + 0x34]
add eax, 0x24
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], esi
cmp edx, ecx
jl 0x1003aa20
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x40]
cmp edx, eax
cmovle edx, eax
mov eax, dword [edi + 0x38]
lea eax, [edx + eax*2]
cmp esi, eax
cmovle esi, eax
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x7c], edx
test ecx, ecx
jle 0x1003b077
lea eax, [edi + 0x6ec]
mov dword [ebp - 0x64], eax
cmp edx, 0x64
jge 0x1003b072
mov esi, dword [eax + 0x640]
lea ecx, [eax + 0xc7c]
mov eax, dword [eax + 0x648]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x38]
add eax, dword [ebp - 0x58]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
sub eax, edx
test eax, eax
jle 0x1003b00b
mov eax, dword [ecx + 8]
cmp edx, esi
cmovge edx, esi
mov esi, edx
mov edx, dword [ecx + 0x648]
mov dword [ebp - 0x3c], edx
cmp eax, edx
jle 0x1003b00e
mov edx, eax
mov dword [ebp - 0x3c], edx
jmp 0x1003b00e
mov edx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0xc88]
mov ecx, dword [ecx + 0xc80]
mov dword [ebp - 0x2c], eax
sub eax, ecx
test eax, eax
jle 0x1003b031
mov eax, dword [ebp - 0x2c]
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
cmp edx, eax
jle 0x1003b034
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x38]
push eax
mov eax, edx
sub eax, ecx
add eax, dword [ebp - 0x50]
push eax
push esi
lea eax, [edx + ecx]
push eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffff9bc
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x64]
inc edx
mov ecx, dword [edi + 0x34]
add eax, 0x10
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x64], eax
cmp edx, ecx
jl 0x1003afb1
mov esi, dword [ebp - 0x50]
test ecx, ecx
jne 0x1003b08d
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [eax + 0x124]
add ecx, dword [edi + 0x3c]
mov dword [ebp - 0x40], ecx
jmp 0x1003b0b2
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x3c]
add edx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x108]
cmp esi, eax
cmovle esi, eax
mov eax, dword [ecx + 0x110]
cmp edx, eax
mov dword [ebp - 0x34], esi
cmovle edx, eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1003a0e0
xor esi, esi
cmp dword [edi + 0x34], esi
jle 0x1003b0f6
lea edx, [edi + 0xb0]
nop
cmp esi, 0x64
jge 0x1003b0f6
mov ecx, dword [edi + 0x38]
mov eax, dword [edx - 8]
add ecx, ecx
sub eax, ecx
mov ecx, dword [ebp - 0x34]
add ecx, eax
mov eax, dword [edx]
cmp eax, ecx
cmovle eax, ecx
inc esi
mov dword [edx], eax
add edx, 0x10
cmp esi, dword [edi + 0x34]
jl 0x1003b0d0
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
lea ecx, [eax + ecx*2]
mov eax, dword [edi + 4]
mov dword [edi + 0x74], ecx
lea edx, [edx + eax*2]
mov eax, dword [edi + 0x30]
mov dword [edi + 0x70], edx
mov eax, dword [eax]
add eax, eax
cmp byte [ebp - 0x5a], 0
movups xmm0, xmmword [edi + eax*8 + 0xa8]
movups xmmword [edi + 0x98], xmm0
je 0x1003b1ff
cmp dword [edi + 0x34], 0
je 0x1003b1ff
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x58], 0
jne 0x1003b1ff
mov esi, dword [esi + 0x130]
sub esi, dword [edi + 0x38]
sub esi, dword [edi + 4]
mov eax, dword [edi + 0x84]
add eax, dword [edi + 0x7c]
sub esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x88]
add esi, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
mov edx, dword [ebp - 0x54]
sar eax, 1
add edx, 0x1bd4
sub edi, eax
lea eax, [edi + ecx]
push eax
mov eax, dword [ebp - 0x8c]
add eax, esi
push eax
push edi
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x18]
lea esi, [edx + 0x1be4]
mov ecx, dword [eax + 0x12c]
mov eax, dword [ebp - 0x90]
add ecx, dword [edx + 0x1bdc]
add eax, edi
push eax
mov eax, dword [ebp - 0x94]
add eax, ecx
push eax
push edi
push ecx
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x54]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003b1ff
mov eax, dword [0x100af258]
push 0
neg eax
push eax
lea eax, [edi + 0x1bd4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [0x100af258]
push 0
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [ebp - 0x54]
add edi, 0x19c8
push dword [esi + 0x74]
push dword [esi + 0x70]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
push edi
add esi, 0x19b8
push esi
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + 8]
not eax
push eax
mov eax, dword [ecx + 4]
not eax
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_InflateRect]
call esi
mov ecx, dword [ebp - 0x54]
lea eax, [ebp + 8]
push eax
call fcn.10039c50
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + 8]
neg eax
push eax
mov eax, dword [ecx + 4]
neg eax
push eax
push edi
call esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003b285
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003b285
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003b285
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