Function at 0x40a660
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x438988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0xa
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x84], 0
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.0040aa50
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x84], 2
jge 0x40a6f8
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401470
mov ebp, dword [esp + 0x18]
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test ebp, ebp
jne 0x40a70c
xor eax, eax
jmp 0x40a71a
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a711
sub eax, edx
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
push str.SuperPro.ini
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004020a0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 3
call fcn.00401f00
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x84], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a772
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
call fcn.00409a40
test al, al
jne 0x40a7eb
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.0040abb0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov dword [esp + 0x84], edi
lea eax, [ebp + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a8e1
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
push 0x154
call dword [sym.imp.MSVCR70.dll_malloc]
xor ecx, ecx
mov cx, word [esi + 0x414]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x28], ebx
push ecx
push 2
call sub.sx32w.dll_RNBOsproEnumServer
test ax, ax
mov word [esi], ax
lea ecx, [esp + 0x24]
je 0x40a888
mov byte [esp + 0x84], 1
call fcn.0040abb0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov dword [esp + 0x84], edi
lea eax, [ebp + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a8e1
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
cmp word [esp + 0x14], 0
ja 0x40a8f6
mov byte [esp + 0x84], 1
call fcn.0040abb0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov dword [esp + 0x84], edi
lea eax, [ebp + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a8e1
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b050
push str.Delay
push 0x43abd4
push str.Time
lea ecx, [esp + 0x30]
call fcn.0040b300
mov esi, 1
cmp word [esp + 0x14], si
jb 0x40a9d1
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
lea eax, [esp + 0x20]
push str.IP_d
push eax
mov byte [esp + 0x90], 4
call fcn.00409320
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x58]
push str._16s
push ecx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR70.dll_sprintf]
mov edi, dword [esp + 0x34]
add esp, 0x18
push str.NetAddress
lea edx, [esp + 0x4c]
push edx
push edi
lea ecx, [esp + 0x30]
call fcn.0040b300
movzx eax, word [esp + 0x14]
cmp esi, eax
jge 0x40a99a
add ebx, 0x22
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
movzx eax, word [esp + 0x14]
inc esi
cmp esi, eax
jle 0x40a928
mov ebx, dword [esp + 0x20]
or edi, 0xffffffff
push ebx
call dword [sym.imp.MSVCR70.dll_free]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.0040abb0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov dword [esp + 0x84], edi
lea eax, [ebp + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40aa30
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret