Function at 0x42a3d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov edi, ecx
cmp dword [edi + 0x28], 0
je 0x42a3f6
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 1
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [edi + 0x30]
push esi
mov dword [edi + 0x1034], eax
xor esi, esi
mov dword [edi + 0x1030], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0042a230
mov ecx, ebx
mov eax, ebx
mov ebx, dword [ebp + 0x18]
and ecx, 1
shl ecx, 0x1f
add esp, 8
mov edx, ecx
or edx, 0x40000000
and al, 2
mov eax, ebx
cmove edx, ecx
mov ecx, ebx
and ecx, 1
mov dword [ebp - 4], edx
mov edx, ecx
or edx, 2
and al, 2
cmove edx, ecx
mov eax, edx
or eax, 4
and bl, 4
cmove eax, edx
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
cmp eax, 2
jne 0x42a461
mov esi, eax
jmp 0x42a475
test eax, eax
jne 0x42a46a
lea esi, [eax + 4]
jmp 0x42a475
cmp eax, 1
mov ecx, 3
cmove esi, ecx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], 0
jne 0x42a485
mov ecx, ebx
call fcn.004334d0
mov eax, dword [ebx + 0x18]
mov ecx, 0x5b3144
push 0
push 0x80
push esi
push 0
push dword [ebp + 0x18]
test eax, eax
push dword [ebp - 4]
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42a553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42a4cb
mov esi, dword [ebp + 8]
mov dword [esi], 3
jmp 0x42a5ed
cmp eax, 0x50
jne 0x42a4f3
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [esi], 4
mov dword [esi + 4], 0
call fcn.004213a0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 0x20
jne 0x42a51b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [esi], 0xd
mov dword [esi + 4], 0
call fcn.004213a0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
add esp, 8
mov dword [esi], 1
mov dword [esi + 4], 0
call fcn.004213a0
lea ecx, [ebp - 0x14]
call fcn.004213a0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov edx, eax
add esp, 8
test edx, edx
jns 0x42a5ae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.00421450
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
add esp, 8
mov dword [esi], 1
push dword [ebp - 0x20]
mov dword [esi + 4], 0
push dword [ebp - 0x1c]
call fcn.00420bb0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
jmp 0x42a5f4
mov eax, dword [ebp - 0xc]
mov ecx, 0x5b3158
test eax, eax
cmovne ecx, eax
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
add esp, 8
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x34]
lea ecx, [edi + 8]
push ebx
push eax
call fcn.00425620
lea ecx, [ebp - 0x34]
call fcn.0042c7d0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 8]
push dword [ebp - 0xc]
call fcn.00420bb0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14