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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6833
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0xe0]
push esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00463d50
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4633e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0
mov edx, dword [edi + 0x10]
cmp edx, 0xffffffff
je 0x463427
cmp byte [edi + 9], 0
jne 0x463417
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0xffffffff
lea ecx, [edi + 0xf8]
call fcn.00402fd0
push 0xc
call fcn.004a71b8
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x46346d
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
jmp 0x46346f
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [edi + 0xf8], ebx
test ebx, ebx
je 0x46384c
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x52dd00]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x52dd00]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], edi
call fcn.0043fd70
mov eax, dword [0x52dd00]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp - 0x4c]
mov byte [edi + 9], al
lea eax, [edi + 0xf8]
mov byte [edi + 8], 0
test ebx, ebx
je 0x4634e0
mov ecx, dword [eax]
test ecx, ecx
je 0x4634e0
cmp dword [ecx], ebx
je 0x46354b
mov ecx, eax
call fcn.00402fd0
push 0xc
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x463534
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
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 0x463536
test ebx, ebx
jne 0x463856
jmp 0x463536
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xf8], esi
test esi, esi
je 0x463860
mov dword [edi + 0xfc], 0
test ebx, ebx
je 0x46356f
cmp word [ebx], 0
je 0x46356f
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
jmp 0x463576
xor ecx, ecx
mov eax, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x28]
mov eax, dword [0x52dd00]
cmovb ecx, dword [ebp - 0x28]
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 dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x52dd00]
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [edx + 4]
mov dword [ebp - 0x48], eax
cmp byte [eax + 0xd], 0
jne 0x4636dd
nop dword [eax]
mov dword [ebp - 0x48], eax
cmp dword [eax + 0x10], edi
jae 0x4636cd
mov eax, dword [eax + 8]
jmp 0x4636d1
mov edx, eax
mov eax, dword [eax]
sbb esi, esi
inc esi
cmp byte [eax + 0xd], 0
je 0x4636c0
mov ebx, dword [ebp - 0x4c]
cmp byte [edx + 0xd], 0
jne 0x4636e8
cmp edi, dword [edx + 0x10]
jae 0x463737
cmp dword [ecx + 4], 0xccccccc
je 0x46386a
mov dword [ebp - 0x50], ecx
push 0x14
mov dword [ebp - 4], 3
mov dword [ebp - 0x4c], 0
call fcn.004a71b8
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 - 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov word [eax + 0xc], 0
call fcn.0041b620
mov ecx, dword [0x52dd00]
lea eax, [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi]
mov eax, ecx
mov edx, dword [edi + 4]
or eax, edx
push 0
je 0x463773
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
jmp 0x46382e
cmp byte [ebp + 0xc], 0
push 0
je 0x4637b5
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4637ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4637ca
push 0
push 0
push 3
push 0
push 1
mov byte [edi + 8], 1
push accept
jmp 0x4637c0
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 0x4637d6
xor al, al
jmp 0x46382e
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push ecx
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
je 0x46382c
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
jmp 0x46382e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0xc
push 0x8007000e
call fcn.004a8a90
push 0x8007000e
call fcn.004a8a90
push 0x8007000e
call fcn.004a8a90
call fcn.0041b810
int3