Function at 0x446420
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48d038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.Config_rmServer.ini
lea eax, [esp + 0x14]
push ebx
mov ebp, ecx
push eax
call dword [sym.imp.Staff2.dll_class_CString___cdecl_STAFFGetInstancePathAndFilename_struct_HINSTANCE_____char_const__]
add esp, 0xc
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x64
push edx
push str.NoInfo
push str.AgitBase1
push str.MapServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x77], bl
mov esi, str.NoInfo
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4464b3
cmp cl, bl
je 0x4464af
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4464b3
add eax, 2
add esi, 2
cmp cl, bl
jne 0x44648f
xor eax, eax
jmp 0x4464b8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44668f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp + 0x3564], eax
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x14]
push ecx
push 0x64
push edx
push str.NoInfo
push str.AgitBase2
push str.MapServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x77], bl
mov esi, str.NoInfo
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x446533
cmp cl, bl
je 0x44652f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x446533
add eax, 2
add esi, 2
cmp cl, bl
jne 0x44650f
xor eax, eax
jmp 0x446538
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44668f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp + 0x3568], eax
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x14]
push ecx
push 0x64
push edx
push str.NoInfo
push str.AgitCount
push str.MapServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x77], bl
mov esi, str.NoInfo
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4465b3
cmp cl, bl
je 0x4465af
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4465b3
add eax, 2
add esi, 2
cmp cl, bl
jne 0x44658f
xor eax, eax
jmp 0x4465b8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44668f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [ebp + 0x32c4]
mov esi, dword [ebp + 0x3564]
mov ecx, edx
add esp, 4
sub ecx, esi
mov esi, dword [ebp + 0x3568]
sub edx, esi
inc ecx
add edx, 0x15
cmp ecx, 1
mov dword [ebp + 0x356c], eax
jl 0x446601
cmp ecx, eax
jg 0x446601
mov dword [ebp + 0x3560], ecx
jmp 0x446620
lea ecx, [eax + 1]
cmp edx, ecx
jl 0x446616
add eax, eax
cmp edx, eax
jg 0x446616
mov dword [ebp + 0x3560], edx
jmp 0x446620
mov dword [ebp + 0x3560], 0xffffffff
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x64
push edx
push str.NoInfo
push str.ArmyBase
push str.MapServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x77], bl
mov esi, str.NoInfo
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x446672
cmp cl, bl
je 0x44666e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x446672
add eax, 2
add esi, 2
cmp cl, bl
jne 0x44664e
xor eax, eax
jmp 0x446677
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x44668f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp + 0x3570], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0xffffffff
call fcn.00489b20
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret