Function at 0x409b1b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44490d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push esi
push edi
mov eax, dword [str.ServerSelection]
mov dword [ebp - 0x18c], eax
mov ecx, dword [0x44c74c]
mov dword [ebp - 0x188], ecx
mov edx, dword [0x44c750]
mov dword [ebp - 0x184], edx
mov eax, dword [0x44c754]
mov dword [ebp - 0x180], eax
mov ecx, dword [str.LastSelectName]
mov dword [ebp - 0x17c], ecx
mov edx, dword [0x44c75c]
mov dword [ebp - 0x178], edx
mov eax, dword [0x44c760]
mov dword [ebp - 0x174], eax
mov cx, word [0x44c764]
mov word [ebp - 0x170], cx
mov dl, byte [0x44c766]
mov byte [ebp - 0x16e], dl
mov ecx, 6
mov esi, str.._startUserSetting.ini
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x164], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x163]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x130], 0
cmp dword [ebp + 8], 0
jne 0x409c17
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x10], eax
jmp 0x409d21
cmp dword [ebp + 8], 1
jne 0x409d16
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x10], ecx
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x409d14
mov ecx, dword [ebp - 0x16c]
mov byte [ecx], 0
push 0x5c
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x409d14
mov eax, dword [ebp - 0x16c]
add eax, 1
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
mov byte [ecx], 0
lea edx, [ebp - 0x114]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x103
sub ecx, eax
cmp ecx, 0xf
jbe 0x409cd0
mov dword [ebp - 0x1a4], 0xf
jmp 0x409cec
lea edx, [ebp - 0x114]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x103
sub ecx, eax
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x190]
push eax
push str.UserSetting.ini
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x409d21
mov eax, dword [ebp - 0x130]
jmp 0x409e21
mov edx, dword [ebp - 0x10]
push edx
push 0x32
lea eax, [ebp - 0x164]
push eax
push 0x456d58
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x168], 0
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x198], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x198], 0
je 0x409d84
mov ecx, dword [ebp - 0x198]
call fcn.00409993
mov dword [ebp - 0x1a8], eax
jmp 0x409d8e
mov dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x168], ecx
cmp dword [ebp - 0x168], 0
jne 0x409dbe
mov eax, dword [ebp - 0x130]
jmp 0x409e21
lea edx, [ebp - 0x164]
push edx
mov ecx, dword [ebp - 0x168]
call fcn.00409a4b
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 0x19c], 0
je 0x409e11
push 1
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x19c]
call dword [eax]
mov dword [ebp - 0x1ac], eax
jmp 0x409e1b
mov dword [ebp - 0x1ac], 0
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret