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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4ec3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
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.00461de0
mov eax, dword [edi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x461440
push eax
call ebx
mov dword [edi + 0x14], 0
mov edx, dword [edi + 0x10]
cmp edx, 0xffffffff
je 0x46147d
cmp byte [edi + 9], 0
jne 0x461471
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.00403090
push 0xc
call fcn.004a4441
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x4614b5
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
jmp 0x4614b7
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [edi + 0xf8], ebx
test ebx, ebx
je 0x4618b7
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 [0x51c478]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 8
push eax
call esi
mov ecx, dword [0x51c478]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
call fcn.00442ea0
mov eax, dword [0x51c478]
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 0x46152b
mov ecx, dword [eax]
test ecx, ecx
je 0x46152b
cmp dword [ecx], ebx
je 0x46158e
mov ecx, eax
call fcn.00403090
push 0xc
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x461571
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 0x461573
test ebx, ebx
jne 0x4618c1
jmp 0x461573
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xf8], esi
test esi, esi
je 0x4618cb
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0xfc], 0
test ebx, ebx
je 0x4615b2
cmp word [ebx], 0
je 0x4615b2
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
jmp 0x4615b9
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 [0x51c478]
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 [0x51c478]
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 0x46171d
nop dword [eax + eax]
mov dword [ebp + 0x10], eax
cmp dword [eax + 0x10], edi
jae 0x46170d
mov eax, dword [eax + 8]
jmp 0x461711
mov edx, eax
mov eax, dword [eax]
sbb esi, esi
inc esi
cmp byte [eax + 0xd], 0
je 0x461700
mov ebx, dword [ebp + 8]
cmp byte [edx + 0xd], 0
jne 0x461728
cmp edi, dword [edx + 0x10]
jae 0x461777
cmp dword [ecx + 4], 0xccccccc
je 0x4618d5
mov dword [ebp - 0x28], ecx
push 0x14
mov dword [ebp - 4], 3
mov dword [ebp - 0x24], 0
call fcn.004a4441
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.004200b0
mov ecx, dword [0x51c478]
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 0x4617bf
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 0x461806
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 0x46181b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x46181b
push 0
push 0
push 3
push 0
push 1
push accept
push ebx
mov byte [edi + 8], 1
call esi
jmp 0x461818
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 0x461839
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]
mov dword [ebp - 0x20], 0
push ecx
push eax
mov dword [ebp - 0x1c], 0
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 0x4618a1
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.004a5e60
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
call fcn.004202a0
int3