Function at 0x10031240
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10039397
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esi + 0x68]
lea ecx, [esp + 8]
push eax
xor ebx, ebx
push str._Host_version_
push ecx
mov dword [esp + 0x144], ebx
call sub.MFC42.DLL_operator_2
push 0x1005974c
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call fcn.100330ac
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0x20
push eax
push str._t_HostId_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 4
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
push eax
push str._t_DistributionServer1_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 6
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 4
push eax
push str._t_DistributionServer2_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 8
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0x1c
push eax
push str._t_FileServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 9
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0x14
push eax
push str._t_LogServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 0xb
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xc
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0x10
push eax
push str._t_UpdateServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 0xd
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xe
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0xc
push eax
push str._t_MediaServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 0xf
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x10
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 0x18
push eax
push str._t_ProfileServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x144], 0x11
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x12
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0xc]
add eax, 8
push eax
push str._t_SoftServer_value_
push ecx
call sub.MFC42.DLL_operator_2
push str._____n
mov byte [esp + 0x13c], 0x13
push eax
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x14
call fcn.100330ac
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
push str.__Host_
lea ecx, [esp + 0x14]
call fcn.10032ddc
mov esi, dword [esp + 0x140]
lea eax, [esp + 0x18]
push eax
push esi
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x1003165f
push esi
call sub.MFC42.DLL_CFile::Remove
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x10031693
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10031703
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push ebx
mov eax, dword [ecx - 8]
push edx
push eax
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
jne 0x100316de
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10031703
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x130]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 4