Function at 0x4076e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4387bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
mov ebx, 0xffff
push edi
mov dword [esp + 0x10], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov eax, dword [edi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
xor ebp, ebp
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x180], ebp
jge 0x40774c
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401470
mov edi, dword [esp + 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp edi, ebp
jne 0x407760
xor eax, eax
jmp 0x40776e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407765
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
push str.RyClient.ini
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
call fcn.004020a0
push str.SuperPro.ini
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x198], 1
call fcn.004020a0
push str.UltraPro.ini
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x1a4], 2
call fcn.004020a0
add esp, 0x24
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push esi
mov byte [esp + 0x188], 3
call sub.MFC70.DLL_Ordinal_3196
test eax, eax
je 0x40783b
mov ecx, 0x46c204
mov dword [0x46b964], 3
call fcn.0040c650
mov dword [0x46b95c], eax
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [0x46b95c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x46b95c]
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
jne 0x407a38
jmp 0x407a30
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push esi
call sub.MFC70.DLL_Ordinal_3196
test eax, eax
je 0x407a05
lea ecx, [esp + 0x2c]
mov dword [0x46b964], 2
call fcn.0040aa50
mov byte [esp + 0x180], 4
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov bl, 5
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x184], bl
call fcn.0040b050
push str.NetAddress
push 0x43a8da
push 0x43ab70
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b0a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 6
call fcn.00401f00
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x180], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp word [0x46bdce], bp
jne 0x407967
mov ecx, 0x46b9a8
call fcn.00409a40
mov ax, word [esp + 0x188]
mov esi, dword [esp + 0x14]
mov word [0x46bdce], ax
mov ebx, dword [esi - 4]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, ebx
or ecx, eax
jge 0x40792b
push ebp
lea ecx, [esp + 0x18]
call fcn.00401470
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x46b9a8
call fcn.00409a80
cmp esi, ebp
jne 0x40793e
xor eax, eax
jmp 0x40794c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407943
sub eax, edx
mov ecx, 0x46b9a8
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
call fcn.0040a0c0
test al, al
je 0x4079d0
mov dword [esp + 0x10], ebp
jmp 0x4079d0
cmp word [0x46c1fe], bp
jne 0x4079c4
mov ecx, 0x46bdd8
call fcn.00409a40
mov cx, word [esp + 0x188]
mov word [0x46c1fe], cx
push ebp
lea ecx, [esp + 0x18]
call fcn.004015a0
push eax
mov ecx, 0x46bdd8
call fcn.00409a80
mov esi, dword [esp + 0x14]
cmp esi, ebp
jne 0x4079af
xor eax, eax
mov ecx, 0x46bdd8
jmp 0x407951
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4079b4
sub eax, edx
mov ecx, 0x46bdd8
jmp 0x407951
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0xffff
lea eax, [esi - 0x10]
mov byte [esp + 0x180], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 3
call fcn.0040abb0
jmp 0x407a34
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
push ecx
call sub.MFC70.DLL_Ordinal_3196
test eax, eax
je 0x407a38
mov ecx, 0x46b968
mov dword [0x46b964], 1
call fcn.004095d0
test al, al
je 0x407a38
mov dword [esp + 0x10], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x188]
mov eax, dword [esp + 0x20]
xor ebx, ebp
xor ebx, 0x7cd8
add eax, 0xfffffff0
mov esi, ebx
mov byte [esp + 0x180], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x180], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x180], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407abb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x180], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x178]
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 4