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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x58f660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov eax, dword [esi + 0x58]
mov ebx, ecx
shl eax, 9
push 0x405
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], eax
call fcn.0041f6c2
add esp, 4
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x418b01
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00518380
lea eax, [ebx + 0x5c]
lea edx, [ebp - 0x108]
add esp, 0xc
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418b30
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
mov dword [ebp - 0x124], eax
jb 0x418b4b
mov eax, dword [eax]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418b50
push edi
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x418b61
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push SysReAllocString
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x118], edi
cmp edi, 0xffffffff
jne 0x418c31
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0041f6cd
mov eax, dword [ebx + 0x54]
add esp, 4
cmp byte [eax + 0x54], 0
mov eax, dword [ebp - 0x124]
je 0x418bd7
cmp dword [eax + 0x14], 0x10
jb 0x418bcf
mov eax, dword [eax]
push eax
push 0x56e5e4
jmp 0x418be5
cmp dword [eax + 0x14], 0x10
jb 0x418bdf
mov eax, dword [eax]
push eax
push str.Cannot_find_the_file__s
push 0x597e50
call fcn.00515b45
movzx ecx, word [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
add esp, 0xc
and ecx, 0xff
push 0x597e50
or ecx, 0x100
shl ecx, 0x10
push ecx
push 0x178c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514194
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebx + 0x30]
mov esi, eax
movzx eax, word [ebx + 0x2c]
and eax, 0xff
push esi
shl eax, 0x10
or eax, 2
push eax
push 0x178c
push ecx
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x110], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x418d70
mov edx, dword [ebp - 0x10c]
add edx, 5
mov dword [ebp - 0x128], edx
jmp 0x418c87
mov esi, dword [ebp - 0x110]
cmp esi, 0x400
jbe 0x418c94
mov esi, 0x400
mov ecx, dword [ebp - 0x128]
push 0
lea eax, [ebp - 0x130]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x130], esi
jne 0x418d56
mov edx, dword [ebp - 0x124]
push 4
push str.oppo
push edx
call fcn.00410030
cmp eax, 0xffffffff
je 0x418cdc
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00418960
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x10c]
mov ebx, dword [ebx + 0x24]
push ecx
mov ecx, esi
call fcn.0041a940
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x418d64
mov eax, dword [ebp - 0x114]
movzx ecx, word [eax + 0x2c]
mov edi, dword [ebp - 0x110]
mov edx, dword [ebp - 0x12c]
add dword [ebp - 0x120], esi
and ecx, 0xff
sub edi, esi
sub edx, edi
push edx
mov edx, dword [eax + 0x30]
shl ecx, 0x10
or ecx, 3
push ecx
push 0x178c
push edx
mov dword [ebp - 0x110], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x114]
test edi, edi
mov edi, dword [ebp - 0x118]
jne 0x418c81
jmp 0x418d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
jmp 0x418d70
mov ebx, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
and eax, 0xff
push 0
shl eax, 0x10
or eax, 4
push eax
push 0x178c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0041f6cd
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514194
mov esp, ebp
pop ebp
ret