Function at 0x403f80
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ac17
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x410634
lea ebx, [ebp + 0xd0]
mov dword [ebp + 0x114], 1
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x244]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x348]
lea edx, [esp + 0x244]
rep stosd dword es:[edi], eax
push 3
lea eax, [esp + 0x34c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, str.Program_Files
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x354]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x254]
lea ecx, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, str.Program_Files_barclient
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xa0000
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [ebp + 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push 0x401
push eax
call esi
mov ecx, dword [ebp + 0xb0]
push edi
push 1
push 0x402
push ecx
call esi
push 0x410610
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x3c]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, edi
jne 0x40411a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40411a
push edi
push edi
push 0x4105f0
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp + 0x114], edi
jmp 0x4049f8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0xb0]
push edi
push 2
push 0x402
push eax
mov dword [esp + 0x464], edi
call esi
push 0x4105e0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4105d4
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x96
push 0x4105d0
call fcn.00404a20
mov edi, eax
mov eax, dword [ebp + 0xb0]
push 0
push 3
push 0x402
push eax
call esi
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4105c4
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x8a
push 0x4105d0
call fcn.00404a20
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xb0]
push 0
push 4
push 0x402
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4105b4
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x12d
push 0x4105d0
call fcn.00404a20
mov eax, dword [ebp + 0xb0]
push 0
push 3
push 0x402
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4105a4
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
push edx
push 0x122
push 0x4105d0
mov ecx, ebp
call fcn.00404a20
mov eax, dword [ebp + 0xb0]
push 0
push 4
push 0x402
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x410598
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x104
push 0x4105d0
call fcn.00404a20
mov eax, dword [ebp + 0xb0]
push 0
push 4
push 0x402
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.SogouIME.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x133
push 0x410594
call fcn.00404a20
mov eax, dword [ebp + 0xb0]
push 0
push 4
push 0x402
push eax
call esi
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x410584
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x8b
push 0x4105d0
call fcn.00404a20
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xb0]
push 0
push 5
push 0x402
push eax
call esi
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.Driversctrl2cap.sys
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x88
push 0x410568
call fcn.00404a20
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xb0]
push 0
push 6
push 0x402
push eax
call esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x94
push 0x410594
call fcn.00404a20
mov dword [esp + 0x24], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str._barrms.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov ecx, dword [esp + 0x10]
push ecx
push 0x8d
push 0x410594
mov ecx, ebp
call fcn.00404a20
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CString::operator_1
push str._bargames.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push 0x8e
push 0x410594
call fcn.00404a20
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str._barads.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 0x123
push 0x410594
call fcn.00404a20
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.images
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x10]
mov byte [esp + 0x454], 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str.xcx_01.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
push 0xad
push 0x410528
call fcn.00404a20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str.xcx_02.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
push 0xaf
push 0x410528
call fcn.00404a20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str.xcx_03.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov ecx, dword [esp + 0x14]
push ecx
push 0xb0
push 0x410528
mov ecx, ebp
call fcn.00404a20
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
push str.xcx_04.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
push 0xb1
push 0x410528
call fcn.00404a20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str.xcx_05.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
push 0xb2
push 0x410528
call fcn.00404a20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str.xcx_06.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov ecx, dword [esp + 0x14]
push ecx
push 0xb3
push 0x410528
mov ecx, ebp
call fcn.00404a20
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
push str.xcx_07.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
push 0xb4
push 0x410528
call fcn.00404a20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str.xcx_08.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
push 0xb5
push 0x410528
call fcn.00404a20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str.xcx_09.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov ecx, dword [esp + 0x14]
push ecx
push 0xb6
push 0x410528
mov ecx, ebp
call fcn.00404a20
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
push str.xcx_10.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
push 0xb7
push 0x410528
call fcn.00404a20
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push str._sep.gif
lea ecx, [esp + 0x18]
call fcn.0040a03e
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
push 0xae
push 0x410528
call fcn.00404a20
mov eax, dword [ebp + 0xb0]
push 0
push 7
push 0x402
push eax
call esi
test edi, edi
je 0x404963
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x30]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x38]
test eax, eax
je 0x404963
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404963
push 0x4104a0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, ebp
call fcn.00404ac0
mov edi, eax
test edi, edi
jg 0x404783
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
push edi
lea ecx, [esp + 0x20]
push 0x410484
push ecx
mov byte [esp + 0x460], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x454], 1
lea ecx, [esp + 0x1c]
jmp 0x4049c4
mov eax, dword [ebp + 0xb0]
push 0
push 8
push 0x402
push eax
call esi
mov ecx, dword [ebp + 0xb0]
xor edi, edi
push edi
push 9
push 0x402
push ecx
call esi
push 0x410470
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push str._barclient.exe
lea ecx, [esp + 0x14]
call fcn.0040a03e
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00404d10
test eax, eax
jne 0x4047ec
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00404dd0
mov dword [esp + 0x18], edi
push 0x4102bc
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x20]
mov byte [esp + 0x45c], 4
call fcn.00408950
test eax, eax
je 0x4048e9
cmp dword [0x410ce0], edi
je 0x404842
push 1
mov ecx, ebp
call fcn.00404fe0
push edi
push str.AllowMultipleTSSessions
lea ecx, [esp + 0x20]
call fcn.00408a20
push edi
push str.LogonType
lea ecx, [esp + 0x20]
call fcn.00408a20
cmp dword [0x410cc8], edi
je 0x4048bd
mov edx, dword [0x410ca0]
lea ecx, [esp + 0x18]
push edx
push str.DefaultUserName
call fcn.004089d0
mov eax, dword [0x410c9c]
cmp dword [eax - 8], edi
je 0x40487a
push eax
push str.DefaultPassword
lea ecx, [esp + 0x20]
call fcn.004089d0
jmp 0x404888
push str.DefaultPassword
lea ecx, [esp + 0x1c]
call fcn.00408af0
mov eax, dword [0x410c98]
cmp dword [eax - 8], edi
je 0x4048a8
push eax
push str.DefaultDomainName
lea ecx, [esp + 0x20]
call fcn.004089d0
push 0x410448
jmp 0x4048c2
push str.DefaultDomainName
lea ecx, [esp + 0x1c]
call fcn.00408af0
push 0x410448
jmp 0x4048c2
push 0x410444
push str.AutoAdminLogon
lea ecx, [esp + 0x20]
call fcn.004089d0
push 1
push str.Disablecad
lea ecx, [esp + 0x20]
call fcn.00408a20
lea ecx, [esp + 0x18]
call fcn.00408b10
mov ecx, ebp
call fcn.00404ec0
mov ecx, ebp
call fcn.00404f50
mov eax, dword [ebp + 0xb0]
push edi
push 0xa
push 0x402
push eax
call esi
push 0x41042c
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x18]
mov dword [0x410ce8], 1
mov byte [esp + 0x454], 1
call fcn.00408b10
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
mov byte [esp + 0x454], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov dword [ebp + 0x114], edi
jmp 0x4049f8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push edi
lea edx, [esp + 0x40]
push 0x4103ec
push edx
mov byte [esp + 0x47c], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x48]
add esp, 0x28
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x454], 1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov dword [ebp + 0x114], 0
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret