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

Disassembly:
sub esp, 0x524
mov eax, dword [0x458e40]
push ebx
mov dword [esp + 0x524], eax
mov eax, dword [esp + 0x530]
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, eax
push esi
mov dword [esp + 0x10], ebx
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401f60
sub ecx, esi
mov dword [esp + 0x18], ecx
jne 0x401fc5
pop esi
mov dword [ebp + 0xd558], ebx
mov dword [ebp + 0xd554], ebx
mov dword [ebp + 0xd55c], ebx
mov dword [ebp + 0xd560], ebx
mov dword [ebp + 0xd564], ebx
mov dword [ebp + 0xd568], ebx
mov dword [ebp + 0xd56c], ebx
mov dword [ebp + 0xd570], ebx
mov dword [ebp + 0xd574], ebx
mov byte [ebp + 0xd450], bl
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x520]
call fcn.004332fd
add esp, 0x524
ret 0xc
mov ecx, dword [esp + 0x534]
cmp ecx, ebx
push edi
jne 0x40207b
push 0x104
lea eax, [esp + 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x430]
push ecx
lea edx, [esp + 0x334]
push edx
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x23c]
push edx
call fcn.00433184
add esp, 0x14
xor eax, eax
jmp 0x402020
mov cl, byte [esp + eax + 0x20]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x402020
lea eax, [esp + 0x12c]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402036
lea edi, [esp + 0x28]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402044
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x53c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402063
lea edi, [esp + 0x28]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402071
jmp 0x4020bc
lea esi, [esp + 0x28]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x402081
lea edi, [esp + 0x28]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402090
mov cx, word [0x441374]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4020a4
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4020b2
mov esi, edx
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push 0x8000002
push 3
push ebx
push 1
mov ecx, eax
push 0x80000000
lea edx, [esp + 0x40]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402282
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x540]
mov dword [ebp + 0xd44c], eax
mov dword [ecx], eax
mov edx, dword [ebp + 0xd44c]
push edx
call fcn.004255e0
mov ecx, dword [ebp + 0xd44c]
add esp, 4
mov esi, eax
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
push esi
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 0x128]
mov dword [ebp + 0xd43c], edx
mov eax, dword [esi + 0x104]
push eax
call fcn.004255e0
mov dword [ebp + 0xd440], eax
add esp, 4
mov ecx, 0x404
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xfee
mov dword [esp + 0x10], 0
shr word [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test ah, 1
jne 0x4021a1
cmp ebx, dword [esi + 0x108]
jae 0x402271
mov edx, dword [ebp + 0xd43c]
movzx eax, byte [ebx + edx]
inc ebx
or eax, 0xff00
mov dword [esp + 0x10], eax
test byte [esp + 0x10], 1
je 0x4021e1
cmp ebx, dword [esi + 0x108]
jae 0x402271
mov eax, dword [ebp + 0xd43c]
movzx eax, byte [ebx + eax]
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + 0xd440]
inc ebx
mov byte [edx + edi], al
inc edx
mov dword [esp + 0x14], edx
movzx edx, cx
inc ecx
mov byte [edx + ebp + 4], al
and ecx, 0xfff
jmp 0x402173
mov edx, dword [esi + 0x108]
cmp ebx, edx
jae 0x402271
mov eax, dword [ebp + 0xd43c]
movzx di, byte [eax + ebx]
inc ebx
cmp ebx, edx
jae 0x402271
movzx ax, byte [eax + ebx]
xor edx, edx
mov dl, al
inc ebx
and eax, 0xf
add eax, 2
and edx, 0xf0
shl edx, 4
or edi, edx
inc eax
movzx eax, ax
movzx edx, di
mov dword [esp + 0x18], eax
jmp 0x402230
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0xd440]
mov eax, edx
and eax, 0xfff
movzx eax, byte [eax + ebp + 4]
mov byte [esi + edi], al
inc esi
mov dword [esp + 0x14], esi
movzx esi, cx
inc ecx
mov byte [esi + ebp + 4], al
mov eax, dword [esp + 0x18]
and ecx, 0xfff
inc edx
dec eax
mov dword [esp + 0x18], eax
jne 0x402230
mov esi, dword [esp + 0x1c]
jmp 0x402173
push esi
call fcn.00433116
mov eax, dword [ebp + 0xd440]
add esp, 4
jmp 0x402284
xor eax, eax
mov ecx, dword [esp + 0x530]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004332fd
add esp, 0x524
ret 0xc