Function at 0x4626c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5cec11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov dword [esp + 8], 0
mov dword [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.00438090
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.00438090
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.00438090
mov bl, 5
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x3c]
push 0x2e
push eax
call fcn.0051f736
add esp, 8
test eax, eax
je 0x462796
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
js 0x462796
push esi
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040de10
mov byte [esp + 0x30], 6
push eax
lea ecx, [esp + 0x24]
call fcn.00439f50
mov byte [esp + 0x30], bl
lea ecx, [esp + 0xc]
call fcn.0040d310
mov edx, dword [esp + 0x3c]
mov eax, dword [edx - 0xc]
sub eax, esi
dec eax
push eax
inc esi
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x48]
call fcn.0040de10
mov byte [esp + 0x30], 7
push eax
lea ecx, [esp + 0x1c]
call fcn.00439f50
mov byte [esp + 0x30], bl
lea ecx, [esp + 0xc]
call fcn.0040d310
mov ecx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push ecx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x462842
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4627d1
cmp eax, 3
jne 0x462845
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00438190
mov dword [esp + 8], 1
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.004381e0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.004381e0
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x3c]
call fcn.004381e0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x48]
call fcn.004381e0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push eax
call ebx
mov eax, dword [esp + 0x3c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
je 0x4628d7
push eax
call ebx
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00438190
mov dword [esp + 8], 1
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.004381e0
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.004381e0
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x3c]
call fcn.004381e0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x48]
call fcn.004381e0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x44]
cmp eax, 0x3e8
push ebp
push edi
mov edi, eax
jge 0x462995
mov ebp, dword [esp + 0x58]
mov edi, edi
mov eax, dword [esp + 0x50]
test ebp, ebp
je 0x462918
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push edx
push edi
push eax
push ecx
lea edx, [esp + 0x28]
push str._s_s_d._s
push edx
call fcn.00403bb0
add esp, 0x18
jmp 0x462931
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s_d
push edx
call fcn.00403bb0
add esp, 0x14
mov eax, dword [esp + 0x18]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push eax
call esi
cmp eax, 0xffffffff
jne 0x462963
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46295c
cmp eax, 3
jne 0x462966
lea edx, [esp + 0x18]
push edx
jmp 0x46299a
push eax
call ebx
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call esi
cmp eax, 0xffffffff
jne 0x462a08
inc edi
cmp edi, 0x3e8
jl 0x4628f0
lea ecx, [esp + 0x44]
push ecx
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.00438190
mov dword [esp + 0x10], 1
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
call fcn.004381e0
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x28]
call fcn.004381e0
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x44]
call fcn.004381e0
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x50]
call fcn.004381e0
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
push eax
call ebx
lea eax, [esp + 0x18]
push eax
jmp 0x46299a