Function at 0x4081c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b1e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
push 0x4e28c0
mov ecx, edi
call fcn.004b0454
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov byte [ebp], 0
mov byte [ebx], 0
mov byte [eax], 0
push 0x4e2a00
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
xor esi, esi
mov edx, esp
mov dword [esp + 0x78], esp
push 0x4d00dc
push 0x1404c10
push edx
mov word [esp + 0x22], si
mov word [esp + 0x20], 1
call sub.MFC42u.DLL_operator_4
lea eax, [esp + 0x1c]
push eax
call fcn.00427c70
add esp, 8
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], esi
call fcn.004b0208
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
mov byte [esp + 0x70], 1
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
mov byte [esp + 0x74], 2
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x70], 1
call fcn.004224e0
mov eax, dword [esp + 0x5c]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0xc
cmp eax, 5
jl 0x40856d
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x50]
call fcn.00401460
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 3
call fcn.004b0208
lea edx, [esp + 0x34]
mov byte [esp + 0x64], 4
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0x4d00d8
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x74], 5
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x70], 4
call fcn.004224e0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 8
jl 0x408367
lea ecx, [esp + 0x74]
push 5
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401460
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__wtoi]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x74]
test eax, eax
setg dl
mov byte [ebx], dl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x74]
push 6
push eax
lea ecx, [esp + 0x3c]
call fcn.00401460
mov eax, dword [eax]
push eax
call edi
add esp, 4
test eax, eax
setg cl
mov byte [ebp], cl
lea ecx, [esp + 0x74]
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x50]
call fcn.00401460
push 0x4d00d8
push eax
lea eax, [esp + 0x78]
mov byte [esp + 0x6c], 6
push eax
call sub.MFC42u.DLL_operator_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
call fcn.004b0208
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x64], 9
mov eax, dword [ecx - 8]
test eax, eax
jle 0x4083ca
push str.decrypt_all
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4083ca
mov byte [ebx], 0
mov byte [ebp], 0
lea ecx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 0x4d00d8
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
mov byte [esp + 0x74], 0xa
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x70], 9
call fcn.004224e0
mov eax, dword [esp + 0x34]
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x408535
mov bl, 0xb
lea eax, [esp + 0x6c]
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00401460
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x64], bl
mov eax, dword [ecx - 8]
test eax, eax
jle 0x40851a
push 0x2e
lea ecx, [esp + 0x70]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40851a
mov ecx, dword [esp + 0x28]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x40851a
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401460
push 0x2e
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 0xc
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40850d
mov eax, dword [esp + 0x6c]
push 0x4d0144
push eax
call esi
add esp, 8
test eax, eax
je 0x40850d
mov ecx, dword [esp + 0x6c]
push 0x4d013c
push ecx
call esi
add esp, 8
test eax, eax
je 0x40850d
mov edx, dword [esp + 0x6c]
push 0x4d0134
push edx
call esi
add esp, 8
test eax, eax
je 0x40850d
mov eax, dword [esp + 0x6c]
push 0x4d012c
push eax
call esi
add esp, 8
test eax, eax
je 0x40850d
mov ecx, dword [esp + 0x6c]
push str.crdownload
push ecx
call esi
add esp, 8
test eax, eax
je 0x40850d
mov edx, dword [esp + 0x6c]
push str.decrypt_all
push edx
call esi
add esp, 8
test eax, eax
je 0x40850d
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.004b0394
push 0x4d00d8
mov ecx, edi
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 9
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x408416
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 8
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x70]
mov byte [esp + 0x64], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call sub.MFC42u.DLL_CString::CString
push 0x4cf268
lea ecx, [esp + 0x70]
call sub.MFC42u.DLL_CString::CString_4
push ecx
mov byte [esp + 0x68], 0xd
mov ecx, esp
mov dword [esp + 0x78], esp
push 0x4cf278
push 0x1404c10
push ecx
call sub.MFC42u.DLL_operator_4
push 0x4cf268
lea edx, [esp + 0x78]
push str.is_backup
push edx
call fcn.004250b0
mov ecx, dword [esp + 0x7c]
mov edx, dword [eax]
push ecx
push edx
call esi
mov ecx, dword [esp + 0x90]
add esp, 0x18
test eax, eax
setne al
mov byte [ecx], al
lea ecx, [esp + 0x70]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 1
call sub.MFC42u.DLL_CString::CString
push 0x4cf268
lea ecx, [esp + 0x7c]
call sub.MFC42u.DLL_CString::CString_4
mov bl, 0xe
push str.agentsettings.cfg
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], bl
call sub.MFC42u.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x70]
mov edx, esp
mov dword [esp + 0x78], esp
push eax
push 0x1404c10
push edx
mov byte [esp + 0x74], 0xf
call sub.MFC42u.DLL_operator
push 0x4cf268
lea ecx, [esp + 0x78]
push str.is_backuphidden
push ecx
call fcn.004250b0
mov edx, dword [esp + 0x88]
mov eax, dword [eax]
push edx
push eax
call esi
mov edx, dword [esp + 0x94]
add esp, 0x18
test eax, eax
setne cl
mov byte [edx], cl
lea ecx, [esp + 0x70]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x64], 1
call sub.MFC42u.DLL_CString::CString
push 0x4e2a00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 0
call sub.MFC42u.DLL_CStringArray::CStringArray
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret