Function at 0x4067e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40c27c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
mov ebp, ecx
push 0x411e88
mov ecx, 0x411e94
mov dword [0x411ec0], 1
call sub.MFC42.DLL_CString::operator
push 0x411e84
mov ecx, 0x411e90
call sub.MFC42.DLL_CString::operator
mov ecx, ebp
call fcn.00404340
xor ebx, ebx
mov dword [esp + 0xc], ebx
push str.softwarelychee_barclient
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x14]
mov dword [esp + 0x264], ebx
call fcn.00409dd0
test eax, eax
je 0x406925
mov eax, dword [0x411e7c]
cmp dword [eax - 8], ebx
je 0x4068b9
lea ecx, [esp + 0x10]
call fcn.004095e0
mov ecx, dword [0x411e7c]
mov byte [esp + 0x25c], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.00409630
push 1
push 0x411a84
lea ecx, [esp + 0x14]
call fcn.00409ea0
lea ecx, [esp + 0x10]
call fcn.00409650
push eax
push 0x411a78
lea ecx, [esp + 0x14]
call fcn.00409e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], bl
call fcn.00409620
mov edx, dword [0x411e80]
cmp dword [edx - 8], ebx
je 0x40691c
lea ecx, [esp + 0x10]
call fcn.004095e0
mov eax, dword [0x411e80]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x260], 2
call fcn.00409630
push 1
push 0x411a6c
lea ecx, [esp + 0x14]
call fcn.00409ea0
lea ecx, [esp + 0x10]
call fcn.00409650
push eax
push 0x411a5c
lea ecx, [esp + 0x14]
call fcn.00409e50
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], bl
call fcn.00409620
lea ecx, [esp + 0xc]
call fcn.00409f90
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x158]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
mov edi, dword [0x411e78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push str._barclient.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0x268], 3
call fcn.0040b49e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x54]
push ebx
push edx
push eax
push 0x4113e4
push ebx
mov ecx, ebp
call fcn.00406ba0
pop edi
pop esi
test eax, eax
je 0x406af6
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0xc]
call fcn.0040b49e
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push str._standby
push edx
push eax
push 0x4113a8
push ebx
mov ecx, ebp
call fcn.00406ba0
test eax, eax
je 0x406af6
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0xc]
call fcn.0040b49e
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push str._off
push edx
push eax
push 0x411398
push ebx
mov ecx, ebp
call fcn.00406ba0
test eax, eax
je 0x406af6
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0xc]
call fcn.0040b49e
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push str._call
push edx
push eax
push 0x411384
push ebx
mov ecx, ebp
call fcn.00406ba0
test eax, eax
je 0x406af6
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0xc]
call fcn.0040b49e
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push str._buy
push edx
push eax
push 0x411370
push ebx
mov ecx, ebp
call fcn.00406ba0
test eax, eax
je 0x406af6
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0xc]
call fcn.0040b49e
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push str._pass
push edx
push eax
push 0x41135c
push ebx
mov ecx, ebp
call fcn.00406ba0
test eax, eax
jne 0x406b40
push ebx
push ebx
push 0x4113bc
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 8]
mov byte [esp + 0x25c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00409f90
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
add esp, 0x258
ret
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
push ebx
push 2
push 0x471
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 8]
mov byte [esp + 0x25c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00409f90
mov ecx, dword [esp + 0x254]
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret