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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x73d7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x80100c]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x80d060]
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.00405f80
mov dword [esp + 0x2e8], 0
mov eax, dword [0x80d0e8]
cmp word [eax], 0
jne 0x441ad2
test edi, edi
je 0x441a0e
push edi
mov eax, esi
push eax
call fcn.00405e40
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441a5b
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x441d1b
push eax
call fcn.005654ab
add esp, 4
jmp 0x441d1b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x441a93
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x441d1b
push eax
call fcn.005654ab
add esp, 4
jmp 0x441d1b
push edi
mov dword [esp + 0x14], 0
call fcn.0049abdb
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 0x441cf7
push ebx
call fcn.00563af8
add esp, 4
jmp 0x441a6a
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00405e40
cmp byte [0x814824], 0
je 0x441af5
mov esi, dword [0x814828]
mov dword [esp + 0x10], esi
jmp 0x441c26
mov ebx, dword [esp + 0x1c]
push 0x340
call fcn.00563a47
add esp, 4
test eax, eax
je 0x441b20
or ecx, 0xffffffff
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x441b25
xor esi, esi
or ecx, 0xffffffff
cmp dword [esi], 0
jne 0x441bed
cmp dword [esi + 4], ecx
jne 0x441bed
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 0x441b50
mov eax, dword [0x7c584c]
push 0
push 0x80
push 3
push 0
push 1
push bind
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 0x441be6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.00563a47
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 0x441bd6
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.00429980
mov dword [esi], eax
mov eax, dword [0x814868]
jmp 0x441bf2
mov eax, 0x200
jmp 0x441bf2
mov eax, 0x1000000
mov dword [0x81486c], eax
test eax, eax
je 0x441c09
push esi
call fcn.00563182
add esp, 4
jmp 0x441a6a
push 8
call fcn.00563a47
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 0x441a6a
lea edx, [esp + 0xa4]
push edx
push esi
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.0042ad00
add esp, 8
test eax, eax
jne 0x441a6a
mov edi, dword [esp + 0x2d0]
test edi, edi
je 0x441a32
push edi
call fcn.0049abdb
add esp, 4
cmp dword [esi], 1
mov ebx, eax
je 0x441c78
mov dword [0x81486c], 0x80000
jmp 0x441c98
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
push edi
push ebx
push ecx
push eax
call fcn.0042ab40
mov dword [0x81486c], eax
test eax, eax
je 0x441cba
cmp eax, 0x600
je 0x441cba
push ebx
call fcn.00563af8
add esp, 4
cmp byte [0x814824], 0
jne 0x441a32
mov edi, esi
call fcn.0042ae90
jmp 0x441a32
cmp byte [0x814824], 0
jne 0x441cf7
cmp dword [esi], 1
je 0x441cd4
mov dword [0x81486c], 0x80000
jmp 0x441cf7
mov esi, dword [esi + 4]
call fcn.0042ac30
push esi
mov dword [0x81486c], eax
call fcn.00563182
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00563182
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x441d17
push eax
call fcn.005654ab
add esp, 4
test ebx, ebx
jne 0x441d93
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x441d8f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x441d8f
push edi
mov dword [esp + 0x18], 0
call fcn.0049abdb
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 0x441d8b
push ebx
call fcn.00563af8
add esp, 4
xor eax, eax
jmp 0x441da8
test ebx, ebx
jne 0x441d93
xor eax, eax
jmp 0x441da8
push ebx
mov eax, edi
call fcn.00441dd0
push ebx
mov esi, eax
call fcn.00563182
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.005635df
mov esp, ebp
pop ebp
ret