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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x145b084]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x14], ebp
push esi
mov esi, ecx
mov dword [esp + 0x34], esi
cmp ebp, 0xffffffff
jne 0x140726b
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1407332
push ebx
push edi
lea eax, [esp + 0x1c]
mov dword [esi + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esi + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.01405d90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
push 0
push 0
push 0
push ebp
mov dword [esp + 0x48], edi
call ebx
cmp eax, 0xffffffff
je 0x140732e
push dword [esi + 0xac]
mov ecx, esi
push 0
push ebp
call fcn.01405fb0
test eax, eax
je 0x140732e
test edi, edi
jne 0x140734b
mov eax, dword [esi + 4]
cmp dword [eax + 4], edi
jne 0x140734b
cmp dword [esi + 0x3d0], edi
je 0x14073ac
movzx eax, word [esi + 0x6c]
mov ecx, dword [esi + 0x3d4]
add eax, 0x18
push edi
push edi
push edi
add eax, ecx
mov dword [esi + 0x3dc], ecx
push ebp
mov dword [esi + 0x3e0], eax
mov dword [esi + 0x54], ecx
call ebx
cmp eax, 0xffffffff
je 0x140732e
push dword [esi + 0x3d4]
mov ecx, esi
push dword [esi + 0x3d0]
push ebp
call fcn.01405fb0
test eax, eax
jne 0x14073ac
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0xc4]
pop esi
pop ebp
xor ecx, esp
call fcn.014096e2
add esp, 0xc0
ret 4
movzx eax, word [esi + 0x6c]
push 0
push 0
push 0
add eax, 0x68
mov dword [esi + 0x3dc], 0x50
push ebp
mov dword [esi + 0x3e0], eax
mov dword [esi + 0x54], 0x50
call ebx
cmp eax, 0xffffffff
je 0x140732e
lea eax, [esp + 0xac]
mov ecx, esi
push eax
push 0x40
lea eax, [esi + 0x18]
push eax
push ebp
call fcn.01407d10
test eax, eax
je 0x140732e
lea eax, [esp + 0xac]
mov ecx, esi
push eax
push 0x10
push 0x145b068
push ebp
call fcn.01407d10
test eax, eax
je 0x140732e
mov eax, dword [esi + 0xac]
mov ecx, esi
push ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
call fcn.01405c80
test eax, eax
je 0x140732e
movzx eax, word [esi + 0x5e]
xor ecx, ecx
xor ebx, ebx
mov edx, eax
cmp cx, ax
jae 0x140746a
lea edi, [esi + 0x160]
cmp dword [edi], 0
je 0x1407416
push 0
push 0
push dword [edi + 4]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140732e
push dword [edi]
mov ecx, esi
push dword [edi + 4]
push ebp
call fcn.01405fb0
test eax, eax
je 0x140732e
mov eax, dword [edi + 4]
add eax, dword [edi]
mov edx, dword [esi + 0x10]
cmp eax, edx
mov ecx, dword [esi + 0x14]
cmova edx, eax
mov dword [esi + 0x10], edx
mov eax, dword [edi - 8]
add eax, dword [edi - 4]
cmp eax, ecx
push ebp
cmova ecx, eax
mov eax, dword [esi + 0x3e4]
cmp edx, eax
mov dword [esi + 0x14], ecx
mov ecx, esi
cmova eax, edx
mov dword [esi + 0x3e4], eax
call fcn.01405c80
test eax, eax
je 0x140732e
movzx ecx, word [esi + 0x5e]
inc ebx
add edi, 0x28
cmp ebx, ecx
jb 0x14073e5
mov edi, dword [esp + 0x38]
mov edx, ecx
test edi, edi
jne 0x140747a
mov eax, dword [esi + 4]
cmp dword [eax + 4], edi
je 0x1407a37
movzx ecx, dx
lea eax, [edx + 1]
mov word [esi + 0x5e], ax
xorps xmm0, xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x98], xmm0
lea eax, [ecx + ecx*4]
movlpd qword [esp + 0xa0], xmm0
lea ebx, [esi + eax*8]
mov dword [esp + 0xa8], 0
movups xmmword [ebx + 0x150], xmm0
lea edi, [ebx + 0x150]
mov dword [esp + 0x40], ebx
movups xmmword [edi + 0x10], xmm0
mov dword [esp + 0x6c], 0x40
movq qword [edi + 0x20], xmm0
mov eax, dword [esi + 0xd8]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0xdc]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x128]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x130]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x134]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x140]
mov dword [esp + 0x70], 0x727444
test eax, eax
je 0x1407566
cmp dword [esi + 0x144], 0
je 0x1407566
push eax
mov ecx, esi
call fcn.01406f80
test eax, eax
je 0x1407566
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x9c], eax
movups xmmword [esp + 0xb0], xmm0
mov edx, str..detour
mov ecx, 8
sub edx, edi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x140758b
mov al, byte [edi + edx]
test al, al
je 0x140758b
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x1407572
test ecx, ecx
lea eax, [edi - 1]
cmovne eax, edi
mov byte [eax], 0
je 0x140732e
mov ebp, dword [esp + 0x18]
mov dword [ebx + 0x174], 0xc0000040
mov eax, dword [esi + 0x14]
mov dword [esi + 0x3ec], eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp*4 + 7]
mov edi, dword [esi + 0x3d4]
and ecx, 0xfffffff8
mov dword [esi + 0x3f4], eax
add ecx, 0x20
mov eax, dword [esp + 0x10]
mov dword [esi + 0x3f0], 0
mov dword [esp + 0x98], edi
mov dword [esp + 0x28], 0
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
shl edx, 2
mov dword [esp + 0x34], edx
add edx, 7
and edx, 0xfffffff8
mov eax, dword [eax + 4]
add edx, edi
add eax, 7
and eax, 0xfffffff8
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x1c]
add eax, 7
add edx, ecx
and eax, 0xfffffff8
mov ecx, esi
add eax, edx
push eax
call fcn.014070a0
test eax, eax
je 0x140732e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x40
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.01405d30
mov edi, eax
test edi, edi
je 0x140732e
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push dword [esi + 0x3d4]
call fcn.01405d30
mov ebx, eax
test ebx, ebx
je 0x140732e
lea eax, [esp + 0x24]
mov dword [esp + 0x68], 0
push eax
push ebp
xorps xmm0, xmm0
lea ecx, [esp + 0x60]
push esi
movups xmmword [esp + 0x64], xmm0
call fcn.01405a20
lea eax, [esp + 0x24]
mov dword [esp + 0xc0], 0
push eax
push ebp
xorps xmm0, xmm0
lea ecx, [esp + 0xb8]
push esi
movups xmmword [esp + 0xbc], xmm0
call fcn.01405a20
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
call fcn.01405d30
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push dword [ecx + 4]
mov ecx, esi
call fcn.01405d30
mov ebp, eax
test ebp, ebp
je 0x140732e
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
sub edx, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov ecx, dword [ecx + 4]
add ecx, edx
mov dword [esp + 0x78], ecx
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [edi], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x9c]
movups xmmword [edi + 0x30], xmm0
mov eax, dword [esi + 0x3d0]
push dword [esi + 0x3d4]
add eax, dword [esi + 0xc]
push eax
push ebx
call fcn.0140aa10
mov eax, dword [esi + 4]
push dword [eax + 4]
push dword [eax]
push ebp
call fcn.0140aa10
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x40]
add esp, 0x18
mov ecx, esi
push eax
push edi
call fcn.01405d30
mov dword [esp + 0x14], eax
test eax, eax
je 0x140732e
mov ebp, dword [esi + 0x400]
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x140796c
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
nop dword [eax + eax]
mov dword [esi], 0
mov edx, dword [ebp + 0x20]
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x14077c0
sub ecx, edi
lea edi, [ecx + 1]
mov ecx, dword [esp + 0x50]
mov eax, edi
and eax, 1
add edi, eax
add ebx, edi
cmp ebx, ecx
jbe 0x14077e6
mov dword [esi + 0xc], 0
jmp 0x140780f
mov eax, dword [esp + 0x10]
push edx
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0x1c]
push ecx
push esi
call fcn.014071b0
test eax, eax
js 0x140780b
add esi, edi
mov dword [esp + 0x1c], ebx
add dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
mov dword [esi + 4], 0
lea edi, [esi + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [esi + 8], eax
cmp dword [ebp + 4], 0
je 0x1407866
push esi
push 0x80000001
lea ecx, [esp + 0x60]
call fcn.01405cf0
push edi
push 0x80000001
lea ecx, [esp + 0xb8]
call fcn.01405cf0
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x60]
call fcn.01405cf0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xb0]
jmp 0x140793e
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, 1
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x30], 0
sbb eax, eax
and eax, dword [esp + 0x68]
mov dword [esi], eax
cmp dword [ebp + 0xc], 0
jbe 0x1407936
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + esi + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1407904
mov ecx, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x14078a4
mov ebp, dword [esp + 0x1c]
sub ecx, edi
lea ebx, [ecx + 3]
mov eax, ebx
and eax, 1
add ebx, eax
add ebp, ebx
cmp ebp, dword [esp + 0x50]
jbe 0x14078cb
mov ebp, dword [esp + 0x2c]
xor edi, edi
jmp 0x140790e
mov ecx, dword [esp + 0x18]
push dword [esp + 0x24]
mov ax, word [edx + esi]
push dword [esp + 0x54]
mov edi, dword [esp + 0x18]
mov word [ecx], ax
lea eax, [ecx + 2]
push eax
call fcn.014071b0
test eax, eax
js 0x14078fe
add dword [esp + 0x18], ebx
lea eax, [ebx + edi]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x2c]
jmp 0x140790e
mov edi, dword [edx + esi + 8]
sub edi, 0x80000000
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x60]
call fcn.01405cf0
mov ecx, dword [esp + 0x30]
add esi, 0x14
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1407890
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x58]
push eax
push 0
call fcn.01405cf0
mov ebp, dword [ebp]
add esi, 0x14
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x14077b0
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov dword [eax], 0
mov ecx, esi
mov eax, dword [esi + 0x3f0]
add dword [esi + 0x14], eax
push eax
call fcn.01406460
mov ebp, dword [esp + 0x20]
mov ecx, esi
add dword [esi + 0x10], eax
push ebp
call fcn.01405c80
test eax, eax
je 0x140732e
mov ebx, dword [esp + 0x40]
mov ecx, esi
mov eax, dword [esi + 0x3ec]
mov dword [ebx + 0x15c], eax
mov eax, dword [esi + 0x3f0]
mov dword [ebx + 0x158], eax
mov eax, dword [esi + 0x3f4]
mov dword [ebx + 0x164], eax
push dword [esi + 0x3f0]
call fcn.01406460
mov dword [ebx + 0x160], eax
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], edi
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
push dword [ebx + 0x164]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140732e
lea eax, [esp + 0xac]
mov ecx, esi
push eax
push dword [ebx + 0x160]
push dword [esi + 0x3f8]
push ebp
call fcn.01407d10
test eax, eax
je 0x140732e
mov ebx, dword [esi + 0x10]
xor ecx, ecx
mov eax, dword [esi + 0x3e4]
xor edx, edx
sub ebx, eax
cmp cx, word [esi + 0x5e]
jae 0x1407a92
lea ecx, [esi + 0x168]
mov eax, dword [ecx - 4]
cmp eax, dword [esi + 0x3e4]
jbe 0x1407a62
add eax, ebx
mov dword [ecx - 4], eax
mov eax, dword [ecx]
cmp eax, dword [esi + 0x3e4]
jbe 0x1407a70
add eax, ebx
mov dword [ecx], eax
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0x3e4]
jbe 0x1407a80
add eax, ebx
mov dword [ecx + 4], eax
movzx eax, word [esi + 0x5e]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x1407a52
mov eax, dword [esi + 0x3e4]
mov ecx, dword [esi + 0x64]
cmp ecx, eax
jbe 0x1407a9f
lea eax, [ecx + ebx]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0xb0], 0
mov dword [esi + 0xa8], eax
mov edi, dword [esi + 0x100]
test edi, edi
je 0x1407b89
mov ebp, dword [esi + 0x104]
test ebp, ebp
je 0x1407b89
push edi
mov ecx, esi
call fcn.01406f20
push 0
push 0
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140732e
push edi
mov ecx, esi
call fcn.01406f80
mov edi, eax
test edi, edi
je 0x140732e
mov eax, 0x24924925
mov dword [esp + 0x28], 0
mul ebp
sub ebp, edx
shr ebp, 1
add ebp, edx
shr ebp, 4
test ebp, ebp
je 0x1407b89
nop dword [eax]
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x18]
mov dword [esp + 0xc8], eax
movups xmmword [esp + 0xb0], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esp + 0xc0], xmm0
cmp eax, dword [esi + 0x3e4]
jbe 0x1407b54
add eax, ebx
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xac]
mov ecx, esi
push eax
push 0x1c
lea eax, [esp + 0xb8]
push eax
push dword [esp + 0x2c]
call fcn.01407d10
test eax, eax
je 0x140732e
mov ecx, dword [esp + 0x28]
add edi, 0x1c
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, ebp
jb 0x1407b20
mov edi, dword [esi + 0x140]
test edi, edi
je 0x1407c16
cmp dword [esi + 0x144], 0
je 0x1407c16
cmp dword [esp + 0x38], 0
je 0x1407c16
push edi
mov ecx, esi
call fcn.01406f20
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push ebx
call ebp
cmp eax, 0xffffffff
je 0x140732e
push edi
mov ecx, esi
call fcn.01406f80
test eax, eax
je 0x140732e
movups xmm0, xmmword [eax]
mov ecx, esi
movups xmmword [esp + 0xb0], xmm0
mov eax, dword [eax + 0x10]
and eax, 0xfffffffe
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xac]
push eax
push 0x14
lea eax, [esp + 0xb8]
push eax
push ebx
call fcn.01407d10
test eax, eax
je 0x140732e
jmp 0x1407c20
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x3e8]
cmp eax, dword [esi + 0x3e4]
jbe 0x1407c61
push 0
push 0
push dword [esi + 0x10]
push ebx
call ebp
cmp eax, 0xffffffff
je 0x140732e
mov ecx, dword [esi + 0x3e4]
mov eax, dword [esi + 0x3e8]
sub eax, ecx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.01405fb0
test eax, eax
je 0x140732e
push 0
push 0
push dword [esi + 0x3dc]
push ebx
call ebp
cmp eax, 0xffffffff
je 0x140732e
lea eax, [esp + 0xac]
mov ecx, esi
push eax
push 0xf8
lea eax, [esi + 0x58]
push eax
push ebx
call fcn.01407d10
test eax, eax
je 0x140732e
push 0
push 0
push dword [esi + 0x3e0]
push ebx
call ebp
cmp eax, 0xffffffff
je 0x140732e
lea eax, [esp + 0xac]
mov ecx, esi
push eax
movzx eax, word [esi + 0x5e]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [esi + 0x150]
push eax
push ebx
call fcn.01407d10
test eax, eax
je 0x140732e
push 1
push 0
push 0
push ebx
call ebp
mov dword [esi + 0x3d8], eax
cmp eax, 0xffffffff
je 0x140732e
mov ecx, dword [esi + 0xac]
sub ecx, eax
mov eax, 1
mov dword [esi + 0x3d8], ecx
jmp 0x1407330