Function at 0x45ea60
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1283
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x513b94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0xe0]
push esi
mov dword [ebp - 0x1c], esi
call eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0045f430
mov eax, dword [edi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45eac0
push eax
call ebx
mov dword [edi + 0x14], 0
mov edx, dword [edi + 0x10]
cmp edx, 0xffffffff
je 0x45eafd
cmp byte [edi + 9], 0
jne 0x45eaf1
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [edi + 0x10]
call ebx
mov dword [edi + 0x10], 0xffffffff
lea ecx, [edi + 0xf8]
call fcn.00402620
push 0xc
call fcn.004a0e21
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x45eb35
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
jmp 0x45eb37
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [edi + 0xf8], ebx
test ebx, ebx
je 0x45ef31
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], ebx
call ebx
mov eax, dword [0x518420]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 8
push eax
call esi
mov ecx, dword [0x518420]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
call fcn.004415e0
mov eax, dword [0x518420]
add eax, 8
push eax
call ebx
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [edi + 9], al
lea eax, [edi + 0xf8]
mov byte [edi + 8], 0
test ebx, ebx
je 0x45ebab
mov ecx, dword [eax]
test ecx, ecx
je 0x45ebab
cmp dword [ecx], ebx
je 0x45ec0e
mov ecx, eax
call fcn.00402620
push 0xc
call fcn.004a0e21
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x45ebf1
push ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x45ebf3
test ebx, ebx
jne 0x45ef3b
jmp 0x45ebf3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xf8], esi
test esi, esi
je 0x45ef45
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0xfc], 0
test ebx, ebx
je 0x45ec32
cmp word [ebx], 0
je 0x45ec32
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
jmp 0x45ec39
xor ecx, ecx
mov eax, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x30]
mov eax, dword [0x518420]
cmovb ecx, dword [ebp - 0x30]
add eax, 8
mov dword [edi + 0xc], ecx
push eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
call esi
mov ecx, dword [0x518420]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [edx + 4]
mov dword [ebp + 0x10], eax
cmp byte [eax + 0xd], 0
jne 0x45ed9d
nop dword [eax + eax]
mov dword [ebp + 0x10], eax
cmp dword [eax + 0x10], edi
jae 0x45ed8d
mov eax, dword [eax + 8]
jmp 0x45ed91
mov edx, eax
mov eax, dword [eax]
sbb esi, esi
inc esi
cmp byte [eax + 0xd], 0
je 0x45ed80
mov ebx, dword [ebp + 8]
cmp byte [edx + 0xd], 0
jne 0x45eda8
cmp edi, dword [edx + 0x10]
jae 0x45edf7
cmp dword [ecx + 4], 0xccccccc
je 0x45ef4f
mov dword [ebp - 0x28], ecx
push 0x14
mov dword [ebp - 4], 3
mov dword [ebp - 0x24], 0
call fcn.004a0e21
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [eax + 0x10], edi
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
push esi
push dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
mov word [eax + 0xc], 0
call fcn.0041f640
mov ecx, dword [0x518420]
lea eax, [ecx + 8]
push eax
call dword [ebp - 0x1c]
mov ecx, dword [edi]
mov eax, ecx
mov edx, dword [edi + 4]
or eax, edx
push 0
je 0x45ee3f
push ecx
push edx
push 0x4000004
push 0
push 0xffffffffffffffff
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [edi + 0x14], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
push 0
je 0x45ee86
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push 0
push 1
push 0xc0000000
push ebx
call esi
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x45ee9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x45ee9b
push 0
push 0
push 3
push 0
push 1
push accept
push ebx
mov byte [edi + 8], 1
call esi
jmp 0x45ee98
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x45eeb9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
je 0x45ef1b
xor eax, eax
cmp byte [edi + 8], al
push 0
push 0
sete al
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [edi + 0x14], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x8007000e
call fcn.004a2850
push 0x8007000e
call fcn.004a2850
push 0x8007000e
call fcn.004a2850
call fcn.0041f830
int3