Function at 0x42f9e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d30c5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.exe_param
lea eax, [ebp - 0x1c]
push eax
call fcn.0040f190
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004061a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.00406310
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x42fcf5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x638070
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00406990
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
cmp eax, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
je 0x42fab0
push 0x638070
push eax
call fcn.00406990
mov eax, dword [ebp - 0x20]
mov edx, 0x635b44
cmp eax, dword [ebp - 0x38]
je 0x42fa9e
mov eax, dword [eax + 0x14]
test eax, eax
cmovne edx, eax
test edx, edx
jne 0x42fa9e
xor ecx, ecx
jmp 0x42fb05
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42faa3
jmp 0x42fb01
push str.kpath
push eax
call fcn.00406990
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
je 0x42fb12
push str.kpath
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406990
mov eax, dword [ebp - 0x20]
mov edx, 0x635b44
cmp eax, dword [ebp - 0x38]
je 0x42faf1
mov eax, dword [eax + 0x14]
test eax, eax
cmovne edx, eax
test edx, edx
jne 0x42faf1
xor ecx, ecx
jmp 0x42fb05
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42faf6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.00406ed0
mov esi, dword [ebp - 0x18]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jne 0x42fb27
mov dword [ebp - 0x20], 0
jmp 0x42fc9e
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x42fcff
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0044cb50
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42fc1d
test al, 0x10
jne 0x42fc1d
lea ecx, [ebp - 0x2c]
call fcn.00409570
push ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x10]
call fcn.00409690
test eax, eax
je 0x42fbcc
push ecx
push str.files
push str.open
lea ecx, [ebp - 0x2c]
call fcn.0040a300
mov edx, eax
test edx, edx
jne 0x42fba4
xor ecx, ecx
jmp 0x42fbbf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fbb0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00406ed0
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
je 0x42fbe1
push 1
push 0x63663c
lea ecx, [ebp - 0x14]
call fcn.004089b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.0040aa70
push 0x1c
push dword [ebp - 0x28]
call fcn.00483ac4
mov edx, dword [ebp - 0x2c]
add esp, 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42fc1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.004089b0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x42fc3e
test al, 0x10
je 0x42fc4a
mov ecx, dword [ebp - 0x10]
call fcn.0044c8f0
test eax, eax
je 0x42fc5e
push dword [ebp - 0x10]
push edi
push str.files
push str.open
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42fc83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42fc9e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42fcb9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.00406270
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42fce0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3