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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
cmp dword [0x4db444], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x10], esi
mov byte [eax], 0
mov byte [ecx], 0
jne 0x42b376
mov ecx, dword [esi + 0xacc]
push 0x4b8898
mov ebx, 0x4db444
call fcn.0042b270
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0044f7d0
add esp, 8
push 0x4b88a4
lea ecx, [esp + 0x1c]
mov ebx, 0x4db44c
call fcn.0042b270
mov ecx, dword [esi + 0xad8]
push 0x4b8898
mov ebx, 0x4db454
call fcn.0042b270
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42b397
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b383
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
mov edi, eax
cmp edi, 0xfd
ja 0x42b473
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
xor ebx, ebx
jmp 0x42b3c0
mov eax, dword [ebx*8 + 0x4db444]
cmp word [eax], 0
je 0x42b419
mov ecx, dword [ebx*8 + 0x4db448]
mov edx, dword [esp + 0x14]
lea esi, [edi + edi]
push esi
lea eax, [eax + ecx*2]
push edx
push eax
call fcn.004a3c00
mov ecx, 0x4b61ac
add esp, 0xc
sub esi, ecx
lea edx, [esi + eax]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x42b3f3
mov eax, dword [ebx*8 + 0x4db444]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b419
test al, 0x10
je 0x42b47e
inc ebx
cmp ebx, 3
jl 0x42b3c0
mov esi, dword [ebp + 8]
push 0x5f
push esi
call fcn.0049a90e
add esp, 8
test eax, eax
je 0x42b473
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xfe
jae 0x42b473
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
lea esi, [edi + edi]
push esi
push edx
mov eax, ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.004a3c00
mov eax, dword [esp + 0x18]
inc eax
xor ecx, ecx
add esp, 0xc
mov word [esp + esi + 0x18], cx
mov dword [esp + 0xc], eax
cmp eax, 2
jl 0x42b3b2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx*8 + 0x4db448]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebx*8 + 0x4db444]
lea edi, [ebx*8 + 0x4db448]
lea ebx, [ebx*8 + 0x4db444]
mov byte [edx], 1
lea esi, [ecx + eax*2 - 2]
xor edx, edx
mov word [esi], dx
mov eax, dword [ebx]
call fcn.0044b830
mov eax, 0x5c
mov word [esi], ax
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xaec]
test ecx, ecx
je 0x42b4e0
cmp byte [ebp + 0x18], 0
je 0x42b4e0
mov eax, dword [ebx]
mov edx, dword [edi]
push eax
push eax
push edx
push 0x4b88d8
call fcn.0041d5c0
add esp, 0x10
mov ebx, dword [ebx]
mov eax, dword [0x4da634]
push 0
push 0
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call fcn.0041f410
mov ebx, dword [esp + 0xc]
mov edi, eax
cmp edi, 3
jne 0x42b51c
mov edx, dword [esp + 0x10]
push edx
push ebx
push esi
call fcn.0041f800
mov edi, eax
test ebx, ebx
je 0x42b52a
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
test edi, edi
jne 0x42b53f
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
mov ecx, esi
call fcn.0042b560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14