Function at 0x464932
Capabilities:
Terminate process

Disassembly:
mov eax, 0x4d3d04
call fcn.004ca3a0
sub esp, 0xc80
mov al, byte [0x508900]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 0x3f
mov byte [ebp - 0x38c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x38b]
xor esi, esi
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x464974
push str.800x600
jmp 0x464979
push str.1024x768
lea eax, [ebp - 0x38c]
push eax
call sub.MSVCRT.dll_strcpy
mov al, byte [0x508900]
pop ecx
pop ecx
mov byte [ebp - 0xc8c], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc8b]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc8c]
push eax
lea eax, [ebp - 0x38c]
push eax
push str.ServerAdv
push str.ini_common.ini
call fcn.004c60a5
add esp, 0x14
test eax, eax
jne 0x4649f4
call dword [sym.imp.GraphicData.dll_GameDataSetQuery]
mov edx, dword [eax]
push str.English
mov ecx, eax
call dword [edx + 0x34]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x464d61
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov al, byte [0x508900]
push 0x3f
mov byte [ebp - 0x48c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x48b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x48c]
push str.log__s.adv
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_time]
push 1
lea eax, [ebp - 0x48c]
pop edi
push 0x5048a4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x18
cmp ebx, esi
je 0x464b83
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push 0x5048a0
push ebx
call dword [sym.imp.MSVCRT.dll_fscanf]
mov eax, dword [ebp - 0x18]
add esp, 0xc
sub eax, dword [ebp + 8]
cmp eax, 0xa8c0
jge 0x464b73
mov al, byte [0x508900]
mov ecx, 0xff
mov byte [ebp - 0x88c], al
xor eax, eax
lea edi, [ebp - 0x88b]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x88c]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x464b71
lea eax, [ebp - 0x88c]
push eax
call sub.MSVCRT.dll_strlen
and byte [ebp + eax - 0x88d], 0
mov dword [esp], 0x250
lea eax, [ebp - 0x28c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x88c]
push str._s__d__d__s__d__x__s__s
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x28
cmp eax, 7
jl 0x464a7b
push 0x20
lea eax, [ebp - 0x23c]
push 0x7e
push eax
call fcn.004648bd
push 0x20
lea eax, [ebp - 0x264]
push 0x7e
push eax
call fcn.004648bd
add esp, 0x18
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 4]
call fcn.00464de3
jmp 0x464a7b
xor edi, edi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
cmp edi, esi
pop ecx
je 0x464d61
push esi
push esi
push esi
push esi
push 1
lea ecx, [ebp - 0x3c]
pop ebx
mov dword [ebp - 4], esi
push ebx
push esi
call sub.MFC42.DLL_CInternetSession::CInternetSession
push esi
push esi
push ebx
lea eax, [ebp - 0xc8c]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CInternetSession::OpenURL
mov edi, eax
cmp edi, esi
je 0x464d55
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
push 0x508900
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x60]
cmp eax, esi
jne 0x464c7a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004ca08a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
cmp edi, esi
je 0x464c07
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x48c]
push 0x50409c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x464d3a
push dword [ebp - 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push 0x5048a0
push ebx
call edi
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax + 8]
je 0x464d32
lea eax, [esi + 0x150]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x28]
push dword [esi + 0x4c]
push dword [esi + 0x48]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
push esi
push str._s__d__d__s__d__x__s__s_n
push ebx
call edi
add esp, 0x28
add esi, 0x250
jmp 0x464c3f
push 0x250
lea eax, [ebp - 0x28c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x28c]
push eax
push str._s__d__d__s__d__x__s__s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x28
cmp eax, 7
jl 0x464d21
lea eax, [ebp - 0x28c]
lea ecx, [ebp - 0x24]
push eax
call fcn.00464de3
push 0x20
lea eax, [ebp - 0x23c]
push 0x7e
push eax
call fcn.004648bd
push 0x20
lea eax, [ebp - 0x264]
push 0x7e
push eax
call fcn.004648bd
add esp, 0x18
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 4]
call fcn.00464de3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004ca08a
jmp 0x464bc4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, dword [ebp - 0x20]
je 0x464d4d
add eax, 0x250
jmp 0x464d41
lea ecx, [ebp - 0x24]
call fcn.004062ee
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004ca37e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4