Function at 0x4028c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x624
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x638]
lea eax, [esp + 0x52c]
push 0x104
push eax
mov ebp, ecx
mov dword [esp + 0x18], edi
call fcn.004061c6
lea edx, [esp + 0x20]
add esp, 8
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402902
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402915
sub eax, edx
lea esi, [esp + eax + 0x18]
mov byte [esi - 4], cl
mov bl, 0x41
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00401ee0
test al, al
jne 0x402950
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00401ea0
test al, al
je 0x402965
cmp bl, 0xff
jae 0x402c3b
mov byte [esi - 4], bl
mov byte [esi - 3], 0
add bl, 1
jmp 0x402930
lea eax, [esp + 0x18]
push eax
call fcn.00414db5
mov ebx, dword [ebp + 8]
add esp, 4
test ebx, ebx
je 0x402a9a
lea ecx, [ecx]
push 6
lea esi, [ebx + 8]
push str.media_
push esi
call fcn.0041177b
add esp, 0xc
test eax, eax
jne 0x402a90
lea edx, [esp + 0x11c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4029a6
lea ecx, [esp + 0x11c]
push ecx
call fcn.00414d80
lea eax, [esp + 0x120]
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4029d0
sub eax, edx
lea edx, [esp + 0x11c]
push edx
mov byte [esp + eax + 0x11a], cl
call fcn.00414d80
add esp, 4
xor eax, eax
jmp 0x402a00
mov cl, byte [esp + eax + 0x18]
mov byte [esp + eax + 0x324], cl
add eax, 1
test cl, cl
jne 0x402a00
lea edi, [esp + 0x324]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402a20
mov ax, word [0x4153a4]
mov word [edi], ax
lea eax, [esp + 0x11c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a40
lea edi, [esp + 0x324]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402a55
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebx + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10c]
push ecx
push edx
lea eax, [esp + 0x32c]
push eax
mov ecx, ebp
call fcn.00402510
mov edi, dword [esp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x402980
lea ecx, [esp + 0x52c]
push ecx
call fcn.004062d6
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402c3b
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebx
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 4]
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push esi
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + edx - 4]
add eax, edx
mov dword [eax - 8], ebx
mov eax, dword [ebp]
lea esi, [eax + ecx]
mov ecx, dword [ebp + 4]
lea edx, [ecx + eax - 4]
cmp esi, edx
jae 0x402b9a
mov ecx, dword [esi]
cmp ecx, ebx
mov edi, esi
je 0x402b9a
add esi, 4
xor eax, eax
cmp ecx, ebx
jbe 0x402b47
mov dl, byte [esi]
mov byte [esp + eax + 0x428], dl
add eax, 1
add esi, 1
cmp eax, ecx
jb 0x402b34
push 6
mov byte [esp + eax + 0x42c], 0
mov eax, dword [esi]
lea ecx, [esp + 0x42c]
push str.media_
push ecx
lea esi, [esi + eax + 4]
call fcn.0041177b
add esp, 0xc
test eax, eax
jne 0x402b8c
mov edx, dword [ebp]
sub edx, esi
add edx, dword [ebp + 4]
push edx
push esi
push edi
call fcn.004068f0
mov eax, esi
sub eax, edi
sub dword [ebp + 4], eax
add esp, 0xc
sub esi, eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [eax + ecx - 4]
cmp esi, edx
jb 0x402b23
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x18]
mov byte [esp + eax + 0x220], cl
add eax, 1
test cl, cl
jne 0x402ba0
lea edi, [esp + 0x220]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402bc0
mov ax, word [0x4153a4]
mov word [edi], ax
mov eax, dword [esp + 0x10]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402be0
lea edi, [esp + 0x220]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402bf7
mov edx, dword [ebp]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
push ecx
push edx
lea eax, [esp + 0x228]
push eax
mov ecx, ebp
call fcn.00402510
mov eax, dword [ebp]
cmp eax, ebx
je 0x402c37
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp], ebx
mov al, 1
jmp 0x402c3d
xor al, al
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405cae
add esp, 0x624
ret 4