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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff6c0
xor eax, eax
mov dword [0x468f80], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
jmp 0x401e9d
inc esi
xor eax, eax
mov al, byte [esi]
cmp eax, 0x20
je 0x401e9c
cmp eax, 9
je 0x401e9c
cmp byte [esi], 0
je 0x401f45
xor edx, edx
mov dl, byte [esi]
cmp edx, 0x22
jne 0x401ef9
push 0x22
lea ecx, [esi + 1]
push ecx
call fcn.00452e98
add esp, 8
mov ebx, eax
test eax, eax
je 0x401ef9
mov edi, ebx
sub edi, esi
dec edi
test edi, edi
jle 0x401eec
push edi
inc esi
push esi
lea eax, [ebp - 0x400]
push eax
call fcn.00453048
add esp, 0xc
mov byte [ebp + edi - 0x400], 0
lea esi, [ebx + 1]
jmp 0x401f34
mov ebx, esi
jmp 0x401efe
inc ebx
cmp byte [ebx], 0
je 0x401f11
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x20
je 0x401f11
cmp eax, 9
jne 0x401efd
mov edi, ebx
sub edi, esi
test edi, edi
jle 0x401f2a
push edi
push esi
lea eax, [ebp - 0x400]
push eax
call fcn.00453048
add esp, 0xc
mov byte [ebp + edi - 0x400], 0
mov esi, ebx
lea eax, [ebp - 0x400]
push eax
call fcn.00402170
jmp 0x401e9d
cmp byte [0x4672c8], 0
je 0x4020b1
mov eax, 0x4672c8
mov edx, 0x45dcc0
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401f7e
test cl, cl
je 0x401f78
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401f7e
add eax, 2
add edx, 2
test cl, cl
jne 0x401f5c
je 0x4020b1
push 0x4672c8
call sub.KERNEL32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x401f9b
test esi, 0x10
je 0x4020b1
push 0x2e
push 0x4672c8
call fcn.00453124
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x401ff2
push 0x45dcc2
push ebx
call fcn.00453000
add esp, 8
test eax, eax
je 0x4020b1
push 0x45dcc7
push ebx
call fcn.00453000
add esp, 8
test eax, eax
je 0x4020b1
push 0x45dccc
push ebx
call fcn.00453000
add esp, 8
test eax, eax
je 0x4020b1
push 0x4672c8
push 0x45dcd1
lea eax, [ebp - 0x800]
push eax
call fcn.00456f9c
add esp, 0xc
lea edx, [ebp - 0x800]
push edx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x402046
xor eax, eax
lea edi, [ebp - 0x800]
or ecx, 0xffffffff
mov esi, 0x4672c8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4020b1
push 0x4672c8
push 0x45dcd8
lea eax, [ebp - 0x800]
push eax
call fcn.00456f9c
add esp, 0xc
lea edx, [ebp - 0x800]
push edx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40209a
xor eax, eax
lea edi, [ebp - 0x800]
or ecx, 0xffffffff
mov esi, 0x4672c8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4020b1
cmp esi, 0xffffffff
jne 0x4020b1
push 0x45dcdf
push 0x4672c8
call fcn.00452e5c
add esp, 8
push 0x467ed0
call sub.USER32.dll_CharUpperA
cmp byte [0x467ed0], 0
je 0x4020d7
cmp dword [0x468ed4], 0
jne 0x4020d7
push 0x45dce4
call fcn.00402170
cmp byte [0x467ed0], 0
je 0x4020ef
mov dword [0x466a9c], 1
call fcn.00402c0c
mov eax, 0x4672c8
mov edx, 0x45dce6
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x402115
test cl, cl
je 0x402164
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x402115
add eax, 2
add edx, 2
test cl, cl
jne 0x4020f9
je 0x402164
lea eax, [ebp - 0x940]
push eax
push 0x4672c8
call sub.KERNEL32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402164
push 0x4672c8
call fcn.0040809c
mov esi, eax
xor eax, eax
lea edi, [ebp - 0x914]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.KERNEL32.dll_FindClose
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4