Function at 0x420b80
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
xor ebx, ebx
mov byte [edi + 0x178], 1
mov word [edi + 0x61c], 0
cmp esi, ebx
jne 0x420baf
mov esi, dword [edi + 0x600]
cmp dword [edi + 0x618], ebx
jne 0x420bf4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420bf4
push esi
push 0x4ab950
mov esi, 0x11c
lea edi, [esp + 0x28]
call fcn.0047f710
fldz
fstp qword [esp]
mov eax, edi
push ebx
push ebx
push 0x10
push eax
call fcn.00484510
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4bc38c], ebx
jne 0x420c0a
call fcn.0047c7a0
mov dword [0x4bc38c], eax
cmp eax, ebx
je 0x420c56
mov ecx, dword [0x4bc390]
cmp dword [ecx + 8], 0x14
jae 0x420c28
call fcn.0047c7a0
mov ecx, dword [0x4bc390]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x420c56
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x4bc394], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x420c56
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4a7935
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x420c58
xor eax, eax
mov dword [edi + 0x378], eax
cmp eax, ebx
je 0x420e7b
cmp dword [edi + 0x618], 2
mov eax, 0x4ab96c
je 0x420c76
mov eax, esi
mov ebx, dword [0x4bc370]
push 0
push 0
push eax
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x2c], 0
call fcn.00420fd0
mov esi, eax
cmp esi, 3
jne 0x420cab
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push edi
call fcn.004213a0
mov esi, eax
jmp 0x420caf
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x420cbd
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
cmp esi, 1
jne 0x420e7b
push 0
push 0
push 0
push 0x68
push edi
call fcn.00427860
test eax, eax
je 0x420e7b
mov ecx, dword [edi + 4]
mov dword [ecx + 0xc], esi
mov eax, dword [edi]
mov ebx, edi
call fcn.0042efe0
test eax, eax
je 0x420e7b
mov eax, dword [edi]
mov esi, edi
call fcn.0042f0d0
cmp dword [edi + 8], 0
je 0x420d17
mov eax, dword [edi]
mov edx, dword [edi + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 0xc]
mov dword [ecx + 0x10], edx
mov eax, dword [edi + 8]
mov dword [edi], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0x1c], eax
jle 0x420d5c
mov ecx, dword [edi + 0x18]
mov ebx, dword [ecx + eax*4]
cmp byte [ebx + 0x3d], 0
jne 0x420d52
test byte [ebx + 0x3c], 4
jne 0x420d52
mov eax, dword [ebx + 0x1c]
push ebx
lea esi, [ebx + 0x28]
push edi
call fcn.0043bf30
mov eax, dword [ebx + 0x20]
push ebx
lea esi, [ebx + 0x30]
push edi
call fcn.0043bf30
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x1c]
jl 0x420d22
cmp dword [edi + 0x164], 0
je 0x420d8c
mov ebx, edi
call fcn.0042c680
test eax, eax
je 0x420e7b
mov eax, dword [edi + 0x164]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x164], 0
cmp dword [0x4bb598], 0
je 0x420d9b
push edi
call fcn.0043bfe0
mov ecx, dword [edi + 0x624]
test ecx, ecx
je 0x420db6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4bbc58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
push 0x68
mov esi, 1
add dword [edi + 0x174], esi
push edi
call fcn.00427860
test eax, eax
je 0x420e7b
push 0
push 0
push 0
push 0x68
push edi
call fcn.00427860
test eax, eax
je 0x420e7b
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x10]
mov dword [eax + 0xc], esi
mov ecx, dword [edi + 4]
mov dword [ecx + 0xc], esi
mov edx, dword [edi + 0x378]
mov eax, dword [edi + 4]
push 0
push 0
mov dword [edx + 8], eax
mov ecx, dword [edi]
push 0
push ecx
mov ecx, edi
call fcn.0042f130
test eax, eax
je 0x420e7b
mov eax, dword [edi]
push edi
call fcn.0042f550
test eax, eax
je 0x420e7b
push 3
push 0
push str.ErrorLevel
mov ecx, edi
call fcn.0042e5f0
mov dword [0x4bbc50], eax
test eax, eax
je 0x420e7b
push esi
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.004828b0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x18]
call fcn.0041bcc0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret