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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1518
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x65a000]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x65a000]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
push 7
xor eax, eax
push str.MESSAGE
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004058d0
lea eax, [esp + 0x10]
mov dword [esp + 0x78], 0
mov ecx, dword [0x6fb010]
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00406e30
mov byte [esp + 0x78], 2
cmp dword [esp + 0x24], 8
jb 0x42b217
push dword [esp + 0x10]
call fcn.0048166b
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x18], ax
mov dword [esp + 0x50], eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov dword [esp + 0x58], 7
call fcn.00405440
push ecx
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov byte [esp + 0x80], 3
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], 0x5c
call fcn.0041cbd0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x42b2a0
cmp dword [esp + 0x48], ecx
jae 0x42b288
push str.invalid_string_position
call fcn.005bf60b
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x48], ecx
mov word [eax + ecx*2], dx
push 0x15
push str.OSHIRASELicense.txt
lea ecx, [esp + 0x40]
call fcn.004057a0
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [esp + 0x38]
jne 0x42b2e0
cmp dword [esp + 0x4c], 8
cmovae eax, dword [esp + 0x38]
push eax
push str.CDlgEULA_OSHIRASE::SetEulaString__GetFileAttributes___Failed___fpath:_s
jmp 0x42b316
cmp dword [esp + 0x4c], 8
push 0
cmovae eax, dword [esp + 0x3c]
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b338
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDlgEULA_OSHIRASE::SetEulaString__CreateFile___Failed___0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
xor esi, esi
jmp 0x42b38e
lea edx, [esp + 0x34]
mov ecx, esi
mov dword [esp + 0x34], 1
call fcn.00419b40
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x38]
xorps xmm0, xmm0
push 0x449
push dword [edi + 0x484]
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x42b3f0
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
cmp dword [esp + 0x4c], 8
jb 0x42b3a1
push dword [esp + 0x38]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [esp + 0x64], 8
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
jb 0x42b3cb
push dword [esp + 0x50]
call fcn.0048166b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005a4646
mov esp, ebp
pop ebp
ret