Function at 0x4487a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x30c]
mov ecx, 0xc3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x513690]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
jne 0x4487da
xor eax, eax
jmp 0x448b14
push 0x4f2814
mov eax, dword [ebp + 8]
push eax
call fcn.004769a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x448b01
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004742e0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.0047b280
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004742e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
call fcn.00401eec
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 0xc
mov edx, dword [ebp - 0xc]
add edx, 0x10
push edx
call fcn.00474080
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
sub edx, ecx
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x26
call fcn.00401db6
test eax, eax
jne 0x4488dd
mov eax, str.Bin_File_Version_Error_
test eax, eax
jne 0x448891
mov dword [ebp - 0x30c], 1
jmp 0x44889b
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
jne 0x4488bc
push 0
mov eax, dword [0x5133c8]
add eax, 0x10
push eax
push str.f:_source_server_agentmhfile.cpp
call fcn.00402d06
add esp, 0xc
mov esi, esp
push 0
push 0
push str.Bin_File_Version_Error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00474eb0
xor eax, eax
jmp 0x448b14
mov ecx, dword [ebp - 0xc]
add ecx, 0x26
call fcn.004011ae
test eax, eax
je 0x448a49
mov eax, dword [ebp - 0x18]
sub eax, 0xe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.00472110
add esp, 4
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x304]
mov dword [ecx + 0x1e], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1e], 0
jne 0x448967
mov eax, str.memory_allocation_failed___m_pData
test eax, eax
jne 0x448935
mov dword [ebp - 0x30c], 1
jmp 0x44893f
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
jne 0x448960
push 0
mov eax, dword [0x5133c8]
add eax, 0x1a
push eax
push str.f:_source_server_agentmhfile.cpp
call fcn.00402d06
add esp, 0xc
xor eax, eax
jmp 0x448b14
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1e]
push edx
call fcn.00472c50
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1e]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x26
call fcn.004019bf
test eax, eax
jne 0x448a2b
mov ecx, dword [ebp - 0xc]
call fcn.00401eec
mov eax, str.File_Open_Error
test eax, eax
jne 0x4489c5
mov dword [ebp - 0x30c], 1
jmp 0x4489cf
mov dword [ebp - 0x30c], 0
cmp dword [ebp - 0x30c], 0
jne 0x4489f0
push 0
mov eax, dword [0x5133c8]
add eax, 0x21
push eax
push str.f:_source_server_agentmhfile.cpp
call fcn.00402d06
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str.File_Open_Error_:__s
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00476c40
add esp, 0xc
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00474eb0
xor eax, eax
jmp 0x448b14
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00476630
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
jmp 0x448aff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0xc]
add edx, 0x1c
push edx
call fcn.00474080
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x448aac
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00472110
add esp, 4
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2f8]
mov dword [edx + 0x1e], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1e]
push edx
call fcn.00474080
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0xc]
add edx, 0x1d
push edx
call fcn.00474080
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00476630
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
call fcn.00402db5
test eax, eax
jne 0x448aef
xor eax, eax
jmp 0x448b14
mov ecx, dword [ebp - 0xc]
call fcn.0040111d
test eax, eax
jne 0x448aff
xor eax, eax
jmp 0x448b14
jmp 0x448b05
xor eax, eax
jmp 0x448b14
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x22], 1
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x448b48]
call fcn.00474e50
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474ee0
add esp, 0x30c
cmp ebp, esp
call fcn.00474eb0
mov esp, ebp
pop ebp
ret 4