Function at 0x415270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70de28
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp + 8]
mov dword [ebp - 0x158], 0
cmovae edx, dword [ebp + 8]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 4], 2
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4152e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004050a0
call fcn.0044e8cf
push dword [ebp - 0x158]
mov ebx, eax
call fcn.0043872d
push dword [ebp - 0x158]
mov edi, eax
push 0
push edi
call fcn.004c3e70
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004c3e70
add esp, 0x38
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea edx, [ebp - 0x4c]
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x415340
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x154]
movq qword [ebp - 0x54], xmm0
push eax
call fcn.0040b990
push dword [ebp - 0x158]
lea eax, [ebp - 0x154]
push edi
push ebx
push eax
call fcn.0040b880
add esp, 0x18
mov dword [ebp - 0x15c], 0
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x158]
push edi
call fcn.00420540
mov esi, eax
test esi, esi
je 0x41540c
cmp dword [ebp + 0x50], 0
je 0x4153b0
cmp byte [esi], 0x4d
je 0x4153b0
cmp byte [esi + 1], 0x5a
jne 0x41540c
test ebx, ebx
je 0x4153bd
push ebx
call fcn.00438736
add esp, 4
test edi, edi
je 0x4153ca
push edi
call fcn.00438736
add esp, 4
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
cmovae eax, dword [ebp + 0x38]
push eax
call fcn.0044e5eb
push dword [ebp - 0x15c]
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
push esi
cmovae eax, dword [ebp + 0x38]
push eax
call fcn.0044ecdc
add esp, 0x10
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
cmovae eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
jmp 0x41540e
xor esi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x415448
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41543e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154f4
push edx
push ecx
call fcn.004382df
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 0x10
jb 0x41548c
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154f9
push edx
push ecx
call fcn.004382df
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 8
jb 0x4154d4
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4154ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154fe
push edx
push ecx
call fcn.004382df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret 0x4c
call fcn.004c75d7
call fcn.004c75d7
call fcn.004c75d7
int3