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

Disassembly:
push 0x2b0
mov eax, 0x5a506a
call fcn.0056e4fe
mov eax, ecx
mov dword [ebp - 0xb8], eax
xor ebx, ebx
mov dword [ebp - 0xc0], eax
push ebx
push 1
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 4], ebx
call fcn.00447700
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x62bae8
call fcn.00405ee6
push dword [eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004047dc
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00405472
mov esi, 0x5c0860
push esi
call fcn.00574cc3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.004063a4
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 - 0xb4], eax
cmp eax, 0xffffffff
je 0x41a7de
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00538f33
pop ecx
mov edi, eax
mov dword [ebp - 0xb0], ebx
push ebx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xbc], edi
push eax
push esi
push edi
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xb0], esi
jne 0x41a753
cmp byte [edi], 0x1f
je 0x41a523
push 0x5c08fc
lea ecx, [ebp - 0xdc]
call fcn.0041a25b
push 0x60c65c
lea eax, [ebp - 0xdc]
jmp 0x41a7f9
push esi
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x2c]
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.004055e9
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041db3b
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 7
cmp eax, 0x10
jb 0x41a5a3
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
cmp eax, 0x1000
jb 0x41a59a
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004048ce
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
push eax
push ecx
call fcn.0056e411
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0xb0], esi
jne 0x41a748
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00449cc0
test eax, eax
jne 0x41a748
push ebx
lea ecx, [ebp - 0x2bc]
call fcn.00448f30
mov esi, eax
push ebx
push 0x5be31c
mov ecx, esi
call fcn.0044b6e0
cmp eax, 3
jne 0x41a748
push 0x5c0824
mov ecx, esi
call fcn.00448f30
mov esi, eax
test esi, esi
je 0x41a748
push ebx
push 0x5c0830
mov ecx, esi
call fcn.00448950
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004515f0
pop ecx
pop ecx
push ebx
push 0x5c0834
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00448950
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004515f0
pop ecx
pop ecx
push ebx
push 0x5c0840
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00448950
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004515f0
pop ecx
pop ecx
push ebx
push 0x5c084c
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.0044b6e0
push ebx
push 0x5c0858
mov ecx, esi
mov dword [ebp - 0xac], eax
call fcn.0044b6e0
push 0x10
mov dword [ebp - 0xa8], eax
call fcn.00538ef6
mov edx, eax
pop ecx
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 0xb
test edx, edx
je 0x41a6e8
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 - 0xac]
cmp dword [ebp - 0x60], 8
push ecx
cmovae eax, dword [ebp - 0x74]
mov ecx, edx
push eax
call fcn.0041a1e9
mov dword [ebp - 0xa8], eax
jmp 0x41a6ee
mov dword [ebp - 0xa8], ebx
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xa
push eax
call fcn.00419e4a
mov ecx, dword [ebp - 0xa8]
push 0x5c0824
mov eax, dword [eax]
mov dword [eax + 0x20], ecx
mov ecx, esi
call fcn.00449bc0
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00404940
lea ecx, [ebp - 0x74]
call fcn.00404940
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.00404940
jmp 0x41a615
lea ecx, [ebp - 0x8c]
call fcn.004055c3
lea ecx, [ebp - 0x44]
call fcn.00404940
lea ecx, [ebp - 0x2bc]
call fcn.00447b10
mov esi, dword [ebp - 0xb8]
jmp 0x41a7b6
test edi, edi
je 0x41a7c1
push edi
call fcn.00538f2e
pop ecx
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x41a7d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], ebx
seta al
call fcn.0056e450
ret
push 0x5c08e8
lea ecx, [ebp - 0xd0]
call fcn.0041a25b
push 0x60c65c
lea eax, [ebp - 0xd0]
push eax
call fcn.00570fbc
int3