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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b0
mov ecx, dword [esp + 0x1c8]
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x1ac], eax
lea esi, [esp + 0x12c]
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0x80
lea ebp, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x80
cmp byte [ecx + 9], 1
jne 0x42d9e4
mov al, byte [ecx + 8]
mov edx, eax
add dl, 0xfd
cmp dl, 4
jb 0x42d9c2
cmp al, 1
jne 0x42d9e4
add al, 0xff
movzx eax, al
jmp dword [eax*4 + 0x5387f8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
xor edi, edi
xor ebx, ebx
jmp 0x42da07
lea eax, [esp + 0x120]
push eax
call fcn.004385c0
mov ebx, dword [esp + 0x120]
mov edi, dword [esp + 0x124]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov dword [esp + 4], edi
cmp edi, 3
jbe 0x42da1b
cmp dword [ebx], 0x5c2e5c5c
je 0x42da62
xor ebp, ebp
mov bl, 1
nop
mov esi, dword [ebp*4 + 0x53862c]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp edi, eax
jne 0x42da41
mov ecx, esp
push edi
push esi
call fcn.00422860
test eax, eax
je 0x42da52
cmp ebp, 0x15
setb bl
je 0x42da52
add ebp, 1
mov edi, dword [esp + 4]
jmp 0x42da20
test bl, 1
lea esi, [esp + 0x12c]
lea ebp, [esp + 0x20]
je 0x42dab8
xorps xmm0, xmm0
mov eax, dword [esp + 0x1cc]
movups xmmword [eax], xmm0
movaps xmm1, xmmword [0x538570]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax + 0x20], xmm0
mov ebx, dword [esp + 0x1c4]
mov dword [ebx], 0
mov eax, dword [0x568c58]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x42dc8a
mov dword [ebx + 4], 0x567398
jmp 0x42dc48
mov word [esp + 8], 0x105
lea eax, [esp + 0xc]
mov dword [esp], eax
lea eax, [esp + 0x14]
push 0x104
push eax
lea eax, [esp + 8]
push eax
mov ebx, dword [esp + 0x1d0]
push ebx
call fcn.0042f8a0
add esp, 0x10
cmp dword [ebx], 0
jne 0x42dc48
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42db6b
mov cl, byte [esp + 0x1d0]
xor cl, 1
movzx ecx, cl
or ecx, 0x10
shl ecx, 0x15
test eax, 0x400
mov eax, 0x2000000
cmovne eax, ecx
mov ecx, dword [esp + 0x14]
sub esp, 0x1c
movaps xmm0, xmmword [0x538560]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42db6b
mov edi, eax
mov ecx, ebx
mov edx, eax
push dword [esp + 0x1cc]
call fcn.00431390
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42dc48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x42dbf8
xorps xmm0, xmm0
mov ecx, dword [esp + 0x1cc]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
movups xmmword [ecx + 0x20], xmm0
mov dword [ecx + 0x18], 1
jmp 0x42dc37
mov eax, dword [ecx]
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
jmp 0x42da07
mov ebx, dword [ecx]
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x42dc25
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x42da03
mov eax, dword [ecx]
cmp dword [eax + 0x14], 0xf
mov ebx, eax
jbe 0x42dbe0
mov ebx, dword [eax]
mov dword [esp + 0xc], ebx
mov edi, dword [eax + 0x10]
jmp 0x42da03
cmp eax, 0x20
mov ecx, dword [esp + 0x1cc]
xorps xmm0, xmm0
jne 0x42dc2c
movups xmmword [ecx], xmm0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
movups xmmword [ecx + 0x20], xmm0
mov dword [ecx + 0x18], 9
jmp 0x42dc37
xor edi, edi
jmp 0x42da03
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0xc], xmm0
mov dword [ecx + 0x1c], 0xffff
push eax
push ebx
call fcn.004295f0
add esp, 8
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x42dc5a
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x120]
cmp eax, esi
je 0x42dc6f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.00533ace
mov eax, ebx
add esp, 0x1b0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x568c58
call fcn.00533bee
add esp, 4
cmp dword [0x568c58], 0xffffffff
jne 0x42daac
push 0x433930
call fcn.00533f00
add esp, 4
push 0x568c58
call fcn.00533ba4
add esp, 4
jmp 0x42daac
int3