Function at 0x434490
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x777b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x84dfc0]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x85f598]
mov edi, ecx
push 0xffffffffffffffff
lea eax, [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.00401410
mov dword [esp + 0x2e8], 0
mov eax, dword [0x85f620]
cmp word [eax], 0
jne 0x4345e2
test edi, edi
je 0x43451e
push edi
mov eax, esi
push eax
call fcn.004012d0
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43456b
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x43482b
push eax
call fcn.0048f6ed
add esp, 4
jmp 0x43482b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4345a3
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x43482b
push eax
call fcn.0048f6ed
add esp, 4
jmp 0x43482b
push edi
mov dword [esp + 0x14], 0
call fcn.00481e79
add esp, 4
push 0
lea edx, [esp + 0x14]
push edx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
je 0x434807
push ebx
call fcn.00481e6e
add esp, 4
jmp 0x43457a
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004012d0
cmp byte [0x86908c], 0
je 0x434605
mov esi, dword [0x869090]
mov dword [esp + 0x10], esi
jmp 0x434736
mov ebx, dword [esp + 0x1c]
push 0x340
call fcn.00481e3f
add esp, 4
test eax, eax
je 0x434630
or ecx, 0xffffffff
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x434635
xor esi, esi
or ecx, 0xffffffff
cmp dword [esi], 0
jne 0x4346fd
cmp dword [esi + 4], ecx
jne 0x4346fd
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x434660
mov eax, dword [0x80be84]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [edi], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4346f6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.00481e3f
mov edi, eax
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x4346e6
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov eax, edi
call fcn.00445630
mov dword [esi], eax
mov eax, dword [0x8690d0]
jmp 0x434702
mov eax, 0x200
jmp 0x434702
mov eax, 0x1000000
mov dword [0x8690d4], eax
test eax, eax
je 0x434719
push esi
call fcn.00481e6e
add esp, 4
jmp 0x43457a
push 8
call fcn.00481e3f
mov edi, dword [esp + 0x18]
mov dword [eax + 4], esi
add esp, 4
mov dword [eax], 1
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x43457a
lea edx, [esp + 0xa4]
push edx
push esi
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.004469b0
add esp, 8
test eax, eax
jne 0x43457a
mov edi, dword [esp + 0x2d0]
test edi, edi
je 0x434542
push edi
call fcn.00481e79
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x434788
mov dword [0x8690d4], 0x80000
jmp 0x4347a8
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
push edi
push ebx
push ecx
push eax
call fcn.004467f0
mov dword [0x8690d4], eax
test eax, eax
je 0x4347ca
cmp eax, 0x600
je 0x4347ca
push ebx
call fcn.00481e6e
add esp, 4
cmp byte [0x86908c], 0
jne 0x434542
mov edi, esi
call reloc.GDI32.dll_SetViewportExtEx
jmp 0x434542
cmp byte [0x86908c], 0
jne 0x434807
cmp dword [esi], 1
je 0x4347e4
mov dword [0x8690d4], 0x80000
jmp 0x434807
mov esi, dword [esi + 4]
call fcn.004468e0
push esi
mov dword [0x8690d4], eax
call fcn.00481e6e
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00481e6e
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x434827
push eax
call fcn.0048f6ed
add esp, 4
test ebx, ebx
jne 0x4348a3
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43489f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43489f
push edi
mov dword [esp + 0x18], 0
call fcn.00481e79
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
je 0x43489b
push ebx
call fcn.00481e6e
add esp, 4
xor eax, eax
jmp 0x4348b8
test ebx, ebx
jne 0x4348a3
xor eax, eax
jmp 0x4348b8
push ebx
mov eax, edi
call fcn.004348e0
push ebx
mov esi, eax
call fcn.00481e6e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0048d1f2
mov esp, ebp
pop ebp
ret