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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd0eb
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
lea ecx, [ebp - 0xc8]
mov word [ebp - 0xc8], ax
mov edi, 0x4e6774
mov eax, dword [0x4f97b0]
test eax, eax
mov dword [ebp - 0xcc], ecx
cmovne edi, eax
mov esi, edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x442727
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x44275f
lea eax, [esi*2 + 2]
mov dword [ebp - 0xcc], 0
push eax
push 0
call fcn.004a840e
mov ecx, eax
add esp, 8
mov dword [ebp - 0xcc], ecx
push esi
push edi
push ecx
call fcn.004c9cb4
mov eax, dword [ebp - 0xcc]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi*2], cx
mov dword [ebp - 4], ecx
mov eax, dword [0x4f9838]
cmp word [eax], cx
jne 0x44283c
mov eax, dword [ebp + 8]
test eax, eax
je 0x44279a
push eax
lea ecx, [ebp - 0xcc]
call fcn.0042c0a0
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4427e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
cmp eax, ecx
je 0x442aae
push eax
call fcn.004a8344
add esp, 4
jmp 0x442aae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4427bf
push ebx
mov dword [ebp - 0x3b8], 0
call fcn.004a6e80
add esp, 4
mov edi, eax
lea eax, [ebp - 0x3b8]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3b8], ebx
je 0x442a86
push edi
call fcn.004a876a
add esp, 4
jmp 0x4427bf
push eax
lea ecx, [ebp - 0xcc]
call fcn.0042c0a0
cmp byte [0x4fc150], 0
je 0x442862
mov esi, dword [0x4fc14c]
mov dword [ebp - 0x3b8], esi
jmp 0x4429ac
mov ebx, dword [ebp - 0xcc]
push 0x340
call fcn.004a8234
mov esi, eax
add esp, 4
test esi, esi
je 0x442894
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
jmp 0x442896
xor esi, esi
cmp dword [esi], 0
jne 0x442975
cmp dword [esi + 4], 0xffffffff
jne 0x442975
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4428c0
mov eax, dword [0x4e6770]
push 0
push 0x80
push 3
push 0
push 1
push accept
push ebx
mov dword [edi], eax
mov dword [ebp - 0x3b8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3b8], eax
cmp eax, 0xffffffff
je 0x44295d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.004a8234
mov edi, eax
add esp, 4
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [ebp - 0x3b8]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x44294d
push 1
push 0
push 0
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.00439c00
mov dword [esi], eax
mov eax, dword [0x4fc164]
jmp 0x44297a
push esi
mov dword [0x4fc168], 0x200
call fcn.004a7f26
add esp, 4
jmp 0x4427bf
mov eax, 0x1000000
mov dword [0x4fc168], eax
test eax, eax
je 0x442991
push esi
call fcn.004a7f26
add esp, 4
jmp 0x4427bf
push 8
call fcn.004a8234
add esp, 4
mov dword [ebp - 0x3b8], eax
mov dword [eax + 4], esi
mov esi, eax
mov dword [eax], 1
test esi, esi
je 0x4427bf
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x3c8]
push eax
push ecx
mov ecx, esi
call fcn.0043b510
add esp, 0xc
test eax, eax
jne 0x4427bf
mov ebx, dword [ebp - 0x188]
test ebx, ebx
je 0x4427bf
push ebx
call fcn.004a6e80
add esp, 4
mov edi, eax
cmp dword [esi], 1
je 0x442a02
mov dword [0x4fc168], 0x80000
jmp 0x442a23
push ecx
mov ecx, dword [esi + 4]
push ebx
push edi
push dword [ebp - 0x3c8]
call fcn.0043b330
mov dword [0x4fc168], eax
test eax, eax
je 0x442a45
cmp eax, 0x600
je 0x442a45
push edi
call fcn.004a876a
add esp, 4
cmp byte [0x4fc150], 0
jne 0x4427bf
mov ecx, esi
call fcn.0043b680
jmp 0x4427bf
cmp byte [0x4fc150], 0
jne 0x442a86
cmp dword [esi], 1
je 0x442a5f
mov dword [0x4fc168], 0x80000
jmp 0x442a86
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0043b430
push esi
mov dword [0x4fc168], eax
call fcn.004a7f26
mov eax, dword [ebp - 0x3b8]
add esp, 4
push eax
call fcn.004a7f26
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
cmp eax, ecx
je 0x442aa6
push eax
call fcn.004a8344
add esp, 4
test edi, edi
jne 0x442b30
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442b29
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x442b29
push ebx
mov dword [ebp - 0x3c4], 0
call fcn.004a6e80
add esp, 4
mov edi, eax
lea eax, [ebp - 0x3c4]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c4], ebx
je 0x442b25
push edi
call fcn.004a876a
add esp, 4
xor eax, eax
jmp 0x442e63
test edi, edi
jne 0x442b30
xor eax, eax
jmp 0x442e63
xor eax, eax
push 0x1c
mov dword [ebp - 0x3cc], eax
mov dword [ebp - 0x3c0], eax
call fcn.004a8234
mov esi, eax
add esp, 4
mov dword [ebp - 0x3d0], esi
test esi, esi
je 0x442b7c
mov dword [esi], vtable.DuiLib::CGifHandler.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x18], 0
jmp 0x442b86
mov dword [ebp - 0x3d0], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x174], 0
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], eax
call fcn.0046cff0
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], ecx
test eax, eax
je 0x442bf6
push ecx
lea eax, [ebp - 0x3dc]
push eax
lea edx, [ebp - 0x3c0]
lea ecx, [ebp - 0x184]
call fcn.0046e170
mov esi, dword [ebp - 0x3c0]
add esp, 8
mov ebx, eax
mov dword [ebp - 0x3cc], esi
jmp 0x442bfa
xor ebx, ebx
xor esi, esi
push edi
mov dword [ebp - 0x3c8], ebx
call fcn.004a876a
add esp, 4
test esi, esi
jle 0x442e4f
lea edi, [ebx + 8]
mov dword [ebp - 0x3e0], edi
lea ebx, [ebx]
mov eax, dword [edi]
mov esi, dword [edi - 8]
mov ebx, dword [edi - 4]
mov dword [ebp - 0x3d8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3d4], esi
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3dc], eax
test esi, esi
jne 0x442c4d
push esi
jmp 0x442e32
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004aceb0
mov eax, dword [ebp - 0x3d8]
add esp, 0xc
mov dword [ebp - 0x3c], ebx
neg eax
mov ebx, dword [ebp - 0x3d8]
imul ebx, dword [ebp - 0x3c4]
mov dword [ebp - 0x38], eax
push 0
push 0
mov dword [ebp - 0x40], 0x28
mov dword [ebp - 0x34], 0x200001
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x3b9], 0
lea eax, [ebx*4]
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3b8]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3e4], eax
test eax, eax
jne 0x442cd1
push esi
jmp 0x442e32
xor esi, esi
test ebx, ebx
jle 0x442dd4
mov edx, dword [ebp - 0x3d4]
add edx, 3
mov byte [ebp - 0x3b9], 1
mov dword [ebp - 0x3c0], edx
mov eax, dword [ebp - 0x3b8]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x3b8]
cmp byte [eax + esi*4 + 3], 0xff
lea edi, [eax + esi*4]
jae 0x442d70
movzx eax, byte [edx + esi*4]
movzx ecx, byte [edx + esi*4 - 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [edi], dl
mov edi, dword [ebp - 0x3c0]
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3b8]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 3]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3b8]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, edi
jmp 0x442d94
mov al, byte [edx + esi*4 - 1]
mov byte [edi], al
mov eax, dword [ebp - 0x3b8]
movzx ecx, byte [edx + esi*4 - 2]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x3b8]
movzx ecx, byte [edx + esi*4 - 3]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x3b8]
cmp dword [eax + esi*4], 0
jne 0x442dc5
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x3b8]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, ebx
jl 0x442cf1
mov edi, dword [ebp - 0x3e0]
push 0x9c
call fcn.004a8234
add esp, 4
test eax, eax
je 0x442df2
lea ecx, [eax + 0x18]
xor edx, edx
mov dword [eax + 0x14], ecx
mov word [ecx], dx
jmp 0x442df4
xor eax, eax
mov ecx, dword [ebp - 0x3e4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3c4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3d8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x3dc]
mov dword [eax + 0xc], ecx
mov cl, byte [ebp - 0x3b9]
mov byte [eax + 0x10], cl
mov ecx, dword [ebp - 0x3d0]
push eax
call fcn.004318a0
push dword [ebp - 0x3d4]
call fcn.004a8344
add edi, 0x10
add esp, 4
dec dword [ebp - 0x3cc]
mov dword [ebp - 0x3e0], edi
jne 0x442c20
push dword [ebp - 0x3c8]
call fcn.004a8344
mov eax, dword [ebp - 0x3d0]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret