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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb33b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x380]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x24c]
mov dword [esp + 0x18], ebx
mov esi, edx
call fcn.00429ba0
lea ecx, [esp + 0x124]
mov dword [esp + 0x388], 0
call fcn.00429ba0
lea ecx, [esp + 0x124]
push ecx
mov byte [esp + 0x38c], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x250]
push edx
push esi
mov ecx, ebx
call eax
test al, al
jne 0x427604
mov esi, vtable.t_str.0
mov dword [esp + 0x124], esi
cmp byte [esp + 0x240], al
jne 0x4275d1
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x4275d1
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x4275fd
mov eax, dword [esp + 0x254]
lea edx, [esp + 0x258]
cmp eax, edx
je 0x4275fd
push eax
call fcn.004a4a7f
add esp, 4
xor al, al
jmp 0x42780a
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x42761c
mov eax, dword [esp + 0x254]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427726
shr eax, 4
not al
and al, 1
je 0x427726
cmp byte [ebx + 0x9a2], 0
lea edx, [esp + 0x3c]
sete al
movzx ecx, al
push ecx
push edx
call fcn.004378b0
mov byte [esp + 0x388], 2
cmp byte [esp + 0x368], 0
lea eax, [esp + 0x258]
jne 0x427674
mov eax, dword [esp + 0x254]
add eax, 4
push eax
lea edi, [esp + 0x40]
call fcn.00432ff0
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], fcn.004a4b5c
mov dword [esp + 0x30], fcn.004a50d2
mov dword [esp + 0x34], fcn.004a4a7f
mov dword [esp + 0x38], esi
mov eax, edi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38c], 3
call fcn.00437c20
xor edi, edi
cmp dword [esp + 0x38], esi
jle 0x427703
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
jmp 0x4276d7
xor esi, esi
cmp edi, esi
jl 0x4276e7
cmp edi, dword [esp + 0x38]
jge 0x4276e7
mov ebx, dword [esp + 0x14]
jmp 0x4276e9
xor ebx, ebx
mov esi, dword [esp + 0x18]
call fcn.00427940
add dword [esp + 0x14], 0x3a4
inc edi
cmp edi, dword [esp + 0x38]
jl 0x4276d5
mov ebx, esi
lea esi, [esp + 0x1c]
mov byte [esp + 0x388], 2
call fcn.00429080
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x38c], 1
call fcn.00427830
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x42773e
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4277ab
shr eax, 4
not al
and al, 1
je 0x4277ab
lea eax, [esp + 0x3c]
push eax
call fcn.00437dc0
mov byte [esp + 0x388], 4
cmp byte [esp + 0x240], 0
lea eax, [esp + 0x130]
jne 0x427780
mov eax, dword [esp + 0x12c]
add eax, 4
push eax
lea edi, [esp + 0x40]
call fcn.00432ff0
add ebx, 0x1c00
push ebx
mov ecx, edi
call fcn.00437f80
mov ecx, edi
push ecx
mov byte [esp + 0x38c], 1
call fcn.004278b0
cmp byte [esp + 0x240], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x124], esi
jne 0x4277dc
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x130]
cmp eax, edx
je 0x4277dc
push eax
call fcn.004a4a7f
add esp, 4
cmp byte [esp + 0x368], 0
mov dword [esp + 0x24c], esi
jne 0x427808
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x258]
cmp eax, ecx
je 0x427808
push eax
call fcn.004a4a7f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret