Function at 0x416070
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call fcn.0041aad0
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, edi
je 0x41608c
mov dword [eax], edi
mov ebp, dword [esp + 0x50]
cmp ebp, edi
je 0x416335
cmp word [ebp], di
je 0x416335
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x416335
cmp word [eax], di
je 0x416335
push 0x60
push 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
push 1
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x34]
push 0x80
push 0x120089
push ebp
rep stosd dword es:[edi], eax
or esi, 0xffffffff
call fcn.00411da0
mov ebx, eax
add esp, 0x18
cmp ebx, 0xffffffff
jne 0x416126
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4162e5
push 0x60
push 1
push 7
push 0x80
push 0x120089
push ebp
call fcn.00411da0
mov ebx, eax
add esp, 0x18
cmp ebx, 0xffffffff
je 0x4162f2
lea eax, [esp + 0x24]
push 0x28
push eax
push ebx
call fcn.004281a0
add esp, 0xc
test eax, eax
je 0x41630d
mov edi, dword [esp + 0x54]
push 0x60
push 3
push 1
push 0x80
push 0x120116
push edi
call fcn.00411da0
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x416190
push 1
push 0
push edi
call fcn.00428220
push 0x60
push 1
push 7
push 0x80
push 0x120116
push edi
call fcn.00411da0
mov esi, eax
add esp, 0x24
cmp esi, 0xffffffff
je 0x416321
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
mov dword [esp + 0x2c], 1
call edi
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x10000
call fcn.004d2462
add esp, 4
xor edx, edx
mov ebp, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x10], edx
jmp 0x4161d4
xor edx, edx
mov ecx, 0x4000
xor eax, eax
mov edi, ebp
push edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
push ecx
push 0x10000
push ebp
push ebx
call fcn.00428510
add esp, 0x14
test eax, eax
je 0x41623b
mov eax, dword [esp + 0x18]
cmp eax, 0x10000
jae 0x416213
test eax, eax
mov dword [esp + 0x50], 1
je 0x41625b
lea edx, [esp + 0x20]
push 0
push edx
push eax
push ebp
push esi
mov dword [esp + 0x34], 0
call fcn.00428570
add esp, 0x14
test eax, eax
je 0x416244
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4161d2
jmp 0x41625b
push 0x100e
push 0xd
jmp 0x41624b
push 0x101d
push 0xe
call fcn.0041aab0
add esp, 8
mov dword [esp + 0x10], 1
push ebp
call fcn.004d248b
mov eax, dword [esp + 0x54]
add esp, 4
test eax, eax
je 0x416294
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x416294
mov al, byte [esp + 0x5c]
mov dword [esp + 0x14], 1
test al, 2
je 0x416294
lea eax, [esp + 0x24]
push 0x28
push eax
push esi
call fcn.004281e0
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4162a0
push ebx
call dword [0x531db0]
cmp esi, 0xffffffff
je 0x4162ac
push esi
call dword [0x531db0]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4162d9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4162d9
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4162ca
mov dword [eax], 1
mov ecx, dword [esp + 0x54]
push 1
push ecx
call fcn.00428420
add esp, 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
push 0xfd2
push 3
call fcn.0041aab0
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0xfda
push 5
call fcn.0041aab0
add esp, 8
jmp 0x416294
push 0xff6
push 4
call fcn.0041aab0
add esp, 8
jmp 0x416294
push 0xfaf
push 1
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret