Function at 0x407b00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x438838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, 0xffff
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 ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x50], 0
jge 0x407b64
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401470
mov ebp, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
push 0x104
call edi
test ebp, ebp
jne 0x407b7a
xor eax, eax
jmp 0x407b89
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b80
sub eax, edx
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
mov eax, dword [0x46b964]
cmp eax, 2
jne 0x407fe7
mov eax, dword [esp + 0x58]
cmp word [0x46bdce], ax
jne 0x407e18
mov ecx, 0x46b9a8
call fcn.00409b20
test al, al
je 0x407bc9
mov byte [0x443059], 1
jmp 0x408005
mov al, byte [0x443059]
test al, al
je 0x407bde
mov byte [0x443059], 0
jmp 0x408005
lea ecx, [esp + 0x24]
call fcn.0040aa50
mov byte [esp + 0x50], 1
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
mov byte [esp + 0x50], 2
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 byte [esp + 0x50], 3
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
mov bl, 4
push 0x104
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call fcn.004015a0
push eax
push 0x104
call edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x407c57
xor eax, eax
jmp 0x407c69
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c60
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
push str.SuperPro.ini
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004020a0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 5
call fcn.00401f00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, 0x46b9a8
call fcn.00409aa0
mov ebp, dword [esp + 0x1c]
push ebp
lea ecx, [esp + 0x28]
call fcn.0040b050
push str.NetAddress
push 0x43a8da
push 0x43ab70
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040b0a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 6
call fcn.00401f00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, 0x46b9a8
call fcn.00409a40
mov ax, word [esp + 0x58]
push 0
lea ecx, [esp + 0x14]
mov word [0x46bdce], ax
call fcn.004015a0
push eax
mov ecx, 0x46b9a8
call fcn.00409a80
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x407d55
xor eax, eax
jmp 0x407d69
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d60
sub eax, edx
mov dword [ebx - 0xc], eax
mov ecx, 0x46b9a8
mov byte [eax + ebx], 0
call fcn.0040a0c0
test al, al
je 0x407d80
xor esi, esi
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, 0x46b9a8
call fcn.0040a200
test al, al
jne 0x407da4
mov byte [0x46bdcc], al
mov esi, 0xffff
mov byte [0x443059], 1
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407de2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.0040abb0
mov ebp, dword [esp + 0x18]
jmp 0x408007
cmp word [0x46c1fe], ax
jne 0x407fe0
mov ecx, 0x46bdd8
call fcn.00409b20
test al, al
je 0x407e3f
mov byte [0x443058], 1
jmp 0x408005
mov al, byte [0x443058]
test al, al
je 0x407e54
mov byte [0x443058], 0
jmp 0x408005
lea ecx, [esp + 0x24]
call fcn.0040aa50
lea ecx, [esp + 0x14]
call fcn.00401520
lea ecx, [esp + 0x10]
call fcn.00401520
lea ecx, [esp + 0x1c]
call fcn.00401520
mov bl, 0xa
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.004015a0
push eax
push 0x104
call edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x407ea0
xor eax, eax
jmp 0x407eae
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407ea5
sub eax, esi
mov dword [ecx - 0xc], eax
mov byte [eax + ecx], 0
push str.SuperPro.ini
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004020a0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0xb
call fcn.00401f00
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], bl
call fcn.00401540
mov ecx, 0x46bdd8
call fcn.00409aa0
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
call fcn.0040b050
push str.NetAddress
push 0x43a8da
push 0x43ab70
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040b0a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 0xc
call fcn.00401f00
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], bl
call fcn.00401540
mov ecx, 0x46bdd8
call fcn.00409a40
mov edi, dword [esp + 0x58]
push 0
lea ecx, [esp + 0x18]
mov word [0x46c1fe], di
call fcn.004015a0
push eax
mov ecx, 0x46bdd8
call fcn.00409a80
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x407f70
xor eax, eax
jmp 0x407f7e
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407f75
sub eax, esi
mov dword [ecx - 0xc], eax
mov byte [eax + ecx], 0
mov ecx, 0x46bdd8
call fcn.0040a0c0
push edi
mov ecx, 0x46bdd8
call fcn.0040a200
test al, al
je 0x407fa2
xor esi, esi
jmp 0x407fb5
mov byte [0x46c1fc], 0
mov esi, 0xffff
mov byte [0x443058], 1
lea ecx, [esp + 0x1c]
call fcn.00401540
lea ecx, [esp + 0x10]
call fcn.00401540
lea ecx, [esp + 0x14]
call fcn.00401540
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 0
call fcn.0040abb0
jmp 0x408007
mov esi, 0xffff
jmp 0x408007
cmp eax, 3
jne 0x408000
mov ecx, dword [0x46b960]
mov edx, dword [ecx]
mov esi, 0xffff
call dword [edx + 0x14]
test eax, eax
jmp 0x408003
cmp eax, 1
jne 0x408007
xor esi, esi
xor esi, dword [esp + 0x58]
lea eax, [ebp - 0x10]
xor esi, 0x7cd8
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
pop edi
mov ax, si
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4