Function at 0x41ca00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e3271
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.004173e0
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.004173e0
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.004173e0
mov bl, 5
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x3c]
push 0x2e
push eax
call fcn.0047bf90
add esp, 8
test eax, eax
je 0x41cad6
sub eax, dword [esp + 0x3c]
sar eax, 1
mov esi, eax
js 0x41cad6
push esi
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x48]
call fcn.00406950
mov byte [esp + 0x30], 6
push eax
lea ecx, [esp + 0x24]
call fcn.004027a0
mov byte [esp + 0x30], bl
lea ecx, [esp + 0xc]
call fcn.00401cd0
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.00406950
mov byte [esp + 0x30], 7
push eax
lea ecx, [esp + 0x1c]
call fcn.004027a0
mov byte [esp + 0x30], bl
lea ecx, [esp + 0xc]
call fcn.00401cd0
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 0x41cb82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41cb11
cmp eax, 3
jne 0x41cb85
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.004176e0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.00417490
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x3c]
call fcn.00417490
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x48]
call fcn.00417490
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 0x41cc17
push eax
call ebx
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004176e0
mov dword [esp + 8], 1
mov byte [esp + 0x30], 4
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x20]
call fcn.00417490
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x3c]
call fcn.00417490
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x48]
call fcn.00417490
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 0x41ccd5
mov ebp, dword [esp + 0x58]
mov edi, edi
mov eax, dword [esp + 0x50]
test ebp, ebp
je 0x41cc58
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.00404b40
add esp, 0x18
jmp 0x41cc71
mov ecx, dword [esp + 0x44]
push edi
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s_d
push edx
call fcn.00404b40
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 0x41cca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41cc9c
cmp eax, 3
jne 0x41cca6
lea edx, [esp + 0x18]
push edx
jmp 0x41ccda
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 0x41cd48
inc edi
cmp edi, 0x3e8
jl 0x41cc30
lea ecx, [esp + 0x44]
push ecx
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.004176e0
mov dword [esp + 0x10], 1
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
call fcn.00417490
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x28]
call fcn.00417490
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x44]
call fcn.00417490
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x50]
call fcn.00417490
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 0x41ccda