Function at 0x403780
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
mov ebx, ecx
push eax
push 0x104
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x47ab68
lea edx, [esp + ecx + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Mir4.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebx + 0x934]
push 0x10
push ecx
push str.127.000.000.1
push str.ServerAddr
push str.Initial
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x30]
push edx
push 0x1b58
push str.Param1
push str.Initial
call esi
mov dword [ebx + 0xa38], eax
lea eax, [esp + 0x30]
push eax
push 0
push str.ServerCount
push str.Server
call esi
mov edi, eax
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0xa50]
cmp eax, esi
je 0x4038b0
mov ecx, dword [eax + 4]
push ecx
call fcn.004680f8
mov ecx, dword [ebx + 0xa50]
add esp, 4
mov eax, dword [ecx + 0xc]
cmp eax, esi
mov dword [ebx + 0xa50], eax
je 0x40389c
mov dword [eax + 8], esi
cmp ecx, esi
je 0x4038a6
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebx + 0xa50]
cmp eax, esi
jne 0x40387a
cmp edi, esi
mov dword [ebx + 0xa50], esi
mov dword [ebx + 0xa54], esi
mov dword [ebx + 0xa60], esi
jle 0x4039c7
mov ebx, 1
push 0x218
call fcn.00468b1a
mov esi, eax
add esp, 4
test esi, esi
je 0x4039b7
mov ecx, 0x86
xor eax, eax
mov edi, esi
push str.caption
rep stosd dword es:[edi], eax
push ebx
push str.server
lea eax, [esp + 0x140]
push str._s_d_s
push eax
call fcn.0046811c
add esp, 0x14
lea ecx, [esp + 0x30]
lea edx, [esp + 0x134]
push ecx
push 0x104
push esi
push 0
push edx
push str.Server
call ebp
push str.name
push ebx
push str.server
lea eax, [esp + 0x140]
push str._s_d_s
push eax
call fcn.0046811c
add esp, 0x14
lea ecx, [esp + 0x30]
lea edx, [esi + 0x104]
lea eax, [esp + 0x134]
push ecx
push 0x104
push edx
push 0
push eax
push str.Server
call ebp
push esi
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
mov ecx, 0x8ab7a8
call fcn.0045e0c0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
cmp ecx, edx
jle 0x40399f
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 0xa4c]
lea ecx, [eax + 0xa4c]
call dword [edx + 4]
mov edi, dword [esp + 0x10]
inc ebx
lea eax, [ebx - 1]
cmp eax, edi
jl 0x4038cf
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ebp, [ecx + 0x14]
mov ecx, dword [ebx + 0xa60]
imul ecx, ebp
add ecx, 0x50
lea eax, [edx + 0x3c]
push ecx
push eax
push 0x3c
lea edx, [ebx + 0xa3c]
push 0x14
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebx + 0xa50]
test esi, esi
je 0x403a35
mov eax, dword [esp + 0x18]
mov edi, 0x46
lea ebx, [eax + 0x5a]
mov eax, dword [esi + 4]
test eax, eax
je 0x403a2a
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push edi
add eax, 0x208
push 0x14
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esi + 0xc]
add ebx, ebp
add edi, ebp
test esi, esi
jne 0x403a0e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret