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

Disassembly:
push 0x2b0
mov eax, 0x58dbd1
call fcn.0055a742
mov eax, ecx
mov dword [ebp - 0xb4], eax
xor ebx, ebx
mov dword [ebp - 0xc0], eax
push ebx
push 1
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 4], ebx
call fcn.00437900
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x612600
call fcn.00405c8c
push dword [eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00404778
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040525e
mov esi, 0x5a625c
push esi
call fcn.005617fa
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0040650c
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ebx
cmovae eax, dword [ebp - 0x44]
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
je 0x4152d1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00525ad5
pop ecx
mov edi, eax
mov dword [ebp - 0xac], ebx
push ebx
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb8], edi
push eax
push esi
push edi
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xac], esi
jne 0x415246
cmp byte [edi], 0x1f
je 0x415063
push 0x5a62f4
lea ecx, [ebp - 0xe4]
call fcn.00414dd9
push 0x5f3914
lea eax, [ebp - 0xe4]
jmp 0x4152ec
push esi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00405403
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0043c9e0
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.004053dd
cmp dword [ebp - 0xac], esi
jne 0x41523b
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00439f10
test eax, eax
jne 0x41523b
push ebx
lea ecx, [ebp - 0x2bc]
call fcn.00439330
mov esi, eax
push ebx
push 0x5a3f08
mov ecx, esi
call fcn.0043bb50
cmp eax, 3
jne 0x41523b
push 0x5a6220
mov ecx, esi
call fcn.00439330
mov esi, eax
test esi, esi
je 0x41523b
push ebx
push 0x5a622c
mov ecx, esi
call fcn.00438cb0
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0044f780
pop ecx
pop ecx
push ebx
push 0x5a6230
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00438cb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0044f780
pop ecx
pop ecx
push ebx
push 0x5a623c
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00438cb0
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0044f780
pop ecx
pop ecx
push ebx
push 0x5a6248
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0043bb50
push ebx
push 0x5a6254
mov ecx, esi
mov dword [ebp - 0xbc], eax
call fcn.0043bb50
push 0x10
mov dword [ebp - 0xa8], eax
call fcn.00525a98
mov edx, eax
pop ecx
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 0xb
test edx, edx
je 0x4151d7
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x74]
push dword [ebp - 0xbc]
cmp dword [ebp - 0x60], 8
push ecx
cmovae eax, dword [ebp - 0x74]
mov ecx, edx
push eax
call fcn.00414cfe
mov dword [ebp - 0xa8], eax
jmp 0x4151dd
mov dword [ebp - 0xa8], ebx
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xa
push eax
call fcn.00414a8f
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xa8]
push 0x5a6220
mov dword [eax + 0x20], ecx
mov ecx, esi
call fcn.00439cc0
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00404809
lea ecx, [ebp - 0x74]
call fcn.00404809
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.00404809
jmp 0x415104
lea ecx, [ebp - 0x8c]
call fcn.004053dd
lea ecx, [ebp - 0x44]
call fcn.00404809
lea ecx, [ebp - 0x2bc]
call fcn.00437ed0
mov esi, dword [ebp - 0xb4]
jmp 0x4152a9
test edi, edi
je 0x4152b4
push edi
call fcn.00525ad0
pop ecx
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4152c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], ebx
seta al
call fcn.0055a68f
ret
push 0x5a62e0
lea ecx, [ebp - 0xd8]
call fcn.00414dd9
push 0x5f3914
lea eax, [ebp - 0xd8]
push eax
call fcn.0055e266
int3