Function at 0x405c10
Capabilities:
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x407877
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x148]
mov ebp, ecx
push 0x104
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._tempServerItem.xml
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x254], ebx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
push str.http:__www.vvdx.cn_server.xml
mov byte [esp + 0x268], 1
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x405cfa
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
and edx, 0xffff
push ecx
push edx
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x158]
push eax
mov ecx, ebp
call fcn.00406590
test al, al
jne 0x405d25
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], bl
call fcn.00406c02
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], 0xffffffff
call fcn.00406c02
xor eax, eax
jmp 0x4062d7
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x13]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x258], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x258], 5
call fcn.00401ce0
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x148]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x258], 6
call fcn.00401ec0
push str.ServerItem
lea ecx, [esp + 0x24]
call fcn.004021a0
test al, al
je 0x4061a8
push 0x11c
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x47
xor eax, eax
mov edi, ebp
add esp, 4
rep stosd dword es:[edi], eax
push str.ServerName
lea ecx, [esp + 0x24]
call fcn.00402210
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405de9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0xa4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.ServerWeb
lea ecx, [esp + 0x24]
call fcn.00402210
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405e45
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0x104]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.ServerAddr
lea ecx, [esp + 0x24]
call fcn.00402210
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405ea1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0xc4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.ServerPort
lea ecx, [esp + 0x24]
call fcn.00402210
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405efd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0x114]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405f4f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0xe0]
mov dword [ebp], eax
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.ServerEncrypt
lea ecx, [esp + 0x24]
call fcn.00402210
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x20]
push edx
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405f96
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0xf4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x405fe5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [ebp + 0xe0], eax
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.ServerTimeup
lea ecx, [esp + 0x24]
call fcn.00402210
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x20]
push edx
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40602f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0xb8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
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 + 0xd4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push str.UserID
lea ecx, [esp + 0x24]
call fcn.00402210
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40608e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0xe4]
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
mov eax, dword [esp + 0x84]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4060db
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4060d2
cmp al, 0xff
je 0x4060d2
dec al
mov byte [ecx], al
jmp 0x4060db
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push str.UserPWD
lea ecx, [esp + 0x24]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.00402210
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x24]
call fcn.00406410
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40611b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x10c]
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
mov eax, dword [esp + 0x94]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x406168
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40615f
cmp al, 0xff
je 0x40615f
dec al
mov byte [ecx], al
jmp 0x406168
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
add ecx, 0x410
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00404b10
push str.ServerItem
lea ecx, [esp + 0x24]
call fcn.004021a0
test al, al
jne 0x405da4
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebp
call fcn.00405a80
mov ecx, ebp
call fcn.004064d0
lea ecx, [ebp + 0x410]
call fcn.00404b00
xor ecx, ecx
test eax, eax
setg cl
mov edi, ecx
mov edx, dword [esp + 0x6c]
xor esi, esi
dec edx
mov byte [esp + 0x254], 8
sar edx, 0x10
inc edx
test edx, edx
jle 0x40620d
mov eax, dword [esp + 0x68]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x70]
add esp, 4
inc esi
dec ecx
sar ecx, 0x10
inc ecx
cmp esi, ecx
jl 0x4061ef
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x40621e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40624b
xor esi, esi
mov ecx, dword [esi + eax]
cmp ecx, ebx
je 0x40623a
push 3
call fcn.00401c00
mov eax, dword [esp + 0x64]
add esi, 4
cmp esi, 0x1c
jl 0x406228
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ebx
cmp eax, ebx
je 0x406274
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40626b
cmp al, 0xff
je 0x40626b
dec al
mov byte [ecx], al
jmp 0x406274
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x4062a5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40629c
cmp al, 0xff
je 0x40629c
dec al
mov byte [ecx], al
jmp 0x4062a5
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x254], bl
call fcn.00406c02
lea ecx, [esp + 0x18]
mov dword [esp + 0x254], 0xffffffff
call fcn.00406c02
mov eax, edi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x248
ret