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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe94
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xe8c], eax
mov edi, ecx
xor eax, eax
push 0x24c
push eax
mov dword [ebp - 0xe94], eax
mov dword [ebp - 0xe88], eax
lea eax, [ebp - 0xe84]
push eax
call fcn.004bf4f0
add esp, 0xc
xor eax, eax
mov ebx, 0x40e
mov word [ebp - 0x828], ax
push ebx
push eax
lea eax, [ebp - 0x826]
push eax
call fcn.004bf4f0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc38], ax
push ebx
push eax
lea eax, [ebp - 0xc36]
push eax
call fcn.004bf4f0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x418], ax
push ebx
push eax
lea eax, [ebp - 0x416]
push eax
call fcn.004bf4f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4424a1
test al, 0x10
jne 0x4424a1
test esi, esi
je 0x44264e
lea eax, [ebp - 0xe88]
push eax
push edi
call esi
jmp 0x44264e
push edi
lea eax, [ebp - 0xc38]
push 0x511c3c
push eax
call fcn.004c05ea
add esp, 0xc
lea eax, [ebp - 0xe88]
push eax
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xe90], ebx
cmp ebx, 0xffffffff
je 0x44264e
test byte [ebp - 0xe88], 0x10
lea eax, [ebp - 0xe5c]
je 0x442603
mov ecx, 0x50cdac
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x442519
test dx, dx
je 0x442515
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x442519
add eax, 4
add ecx, 4
test dx, dx
jne 0x4424f3
xor eax, eax
jmp 0x44251e
sbb eax, eax
or eax, 1
test eax, eax
je 0x442631
mov ecx, 0x50cdb0
lea eax, [ebp - 0xe5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x442557
test dx, dx
je 0x442553
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x442557
add eax, 4
add ecx, 4
test dx, dx
jne 0x442531
xor eax, eax
jmp 0x44255c
sbb eax, eax
or eax, 1
test eax, eax
je 0x442631
lea eax, [ebp - 0xe5c]
push eax
push edi
lea eax, [ebp - 0x418]
push str._s_s
push eax
call fcn.004c05ea
mov eax, dword [ebp - 0xe8c]
add esp, 0x10
test eax, eax
je 0x4425ec
lea ecx, [ebp - 0xe88]
push ecx
lea ecx, [ebp - 0x418]
push ecx
call eax
test eax, eax
jne 0x4425e6
lea eax, [ebp - 0x418]
push 0x5c
push eax
call fcn.004c0a85
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x442647
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xe94]
jne 0x4425bd
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
xor eax, eax
push eax
push edx
call fcn.004bf4f0
mov ebx, dword [ebp - 0xe90]
add esp, 0xc
mov eax, dword [ebp - 0xe8c]
push eax
push esi
lea edx, [ebp - 0xe88]
lea ecx, [ebp - 0x418]
call fcn.004423e0
pop ecx
pop ecx
jmp 0x442631
push eax
push edi
lea eax, [ebp - 0x828]
push str._s_s
push eax
call fcn.004c05ea
add esp, 0x10
test esi, esi
je 0x442631
lea eax, [ebp - 0xe88]
push eax
lea eax, [ebp - 0x828]
push eax
call esi
test eax, eax
je 0x442647
lea eax, [ebp - 0xe88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4424db
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret