Function at 0x10006ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov eax, dword [esi + 0x368]
mov dword [ebp - 4], 0
push eax
call fcn.10015250
add esp, 4
test eax, eax
jne 0x10006b24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x368]
push 0x1001e234
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10006b78
lea eax, [ebp - 0x1c]
push str.Server_:_Open_File_to_Read_Config_Failed.
push eax
mov dword [ebp - 0x1c], 0x1001e040
mov dword [ebp - 0x18], 0x97
mov dword [ebp - 0x14], 0x100
call fcn.10006230
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xfffffffffffffff8
push esi
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_fread]
xor ecx, ecx
push esi
push 8
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
push 1
push edx
mov dword [ebp - 0x20], ecx
call edi
add esp, 0x1c
cmp eax, 8
je 0x10006be9
lea eax, [ebp - 0x1c]
push str.Server_:_Read_Head_From_Server_File_Failed.
push eax
mov dword [ebp - 0x1c], 0x1001e040
mov dword [ebp - 0x18], 0xa5
mov dword [ebp - 0x14], 0x100
call fcn.10006230
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 0x12e22f2
je 0x10006c35
lea ecx, [ebp - 0x1c]
push str.Server_:_Check_Head_Magic_Flag_Failed.
push ecx
mov dword [ebp - 0x1c], 0x1001e040
mov dword [ebp - 0x18], 0xac
mov dword [ebp - 0x14], 0x100
call fcn.10006230
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
push 2
lea eax, [edx + 8]
neg eax
push eax
push esi
call ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov ebx, eax
test ebx, ebx
push esi
jne 0x10006c72
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
push ecx
push 1
push ebx
call edi
mov ecx, dword [ebp - 0x20]
add esp, 0x10
cmp eax, ecx
je 0x10006cce
lea edx, [ebp - 0x1c]
push str.Server_:_Read_Config_File_From_Server_File_Failed.
push edx
mov dword [ebp - 0x1c], 0x1001e040
mov dword [ebp - 0x18], 0xbd
mov dword [ebp - 0x14], 0x100
call fcn.10006230
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [ebp - 0x28]
mov ecx, 0xc9
xor eax, eax
lea edi, [ebp - 0x358]
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x358]
push eax
push ecx
push ebx
lea ecx, [esi + 0x36c]
call fcn.10001980
cmp dword [ebp - 0x358], 0x12e22f2
je 0x10006d4f
lea edx, [ebp - 0x1c]
push str.Server_:_Check_Body_Magic_Number_Failed.
push edx
mov dword [ebp - 0x1c], 0x1001e040
mov dword [ebp - 0x18], 0xcd
mov dword [ebp - 0x14], 0x100
call fcn.10006230
add esp, 8
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x44]
mov ecx, 0xc9
lea esi, [ebp - 0x358]
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret