Function at 0x406790
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ed766
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_4
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], esi
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x148], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
lea eax, [esp + 0x20]
push eax
call fcn.0040bd10
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push esi
push 0x5233f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
lea ecx, [esp + 0x1c]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40688f
lea edx, [esp + 0x10]
push edx
call fcn.0040bd10
add esp, 4
push str.VerifyCode
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x150], 2
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
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 + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
fild qword [esp + 0x28]
sub esp, 8
lea ecx, [esp + 0x28]
fmul dword [0x503f20]
fstp qword [esp]
push str.http:__ptlogin2.qq.com_getimage_aid353e_f
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
mov bl, 6
push 1
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x5307a8
call sub.MFC42.DLL_CString::CString_2
push 0
push 0
push 0
push 0
push ecx
mov byte [esp + 0x168], 3
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x5307a8
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x170], 4
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x174], 5
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x170], 1
call fcn.0040ae30
add esp, 0x28
test eax, eax
je 0x4069dc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
call esi
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov ecx, 0x5307f8
push eax
call fcn.0040a1c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 8]
push ecx
call edi
mov edx, dword [esp + 0x18]
cmp dword [edx - 8], 4
jne 0x4069c3
xor ecx, ecx
mov al, byte [ecx + edx]
cmp al, 0x5a
jg 0x4069be
cmp al, 0x41
jl 0x4069be
inc ecx
cmp ecx, 4
jl 0x4069ad
cmp ecx, 4
je 0x4069d5
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xf
mov dword [esp + 0x1c], eax
jl 0x4068d1
cmp dword [esp + 0x1c], 0xf
jne 0x406a08
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x406d50
mov esi, dword [esp + 0x150]
lea ecx, [esp + 0x20]
push esi
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 7
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x14]
mov bl, 8
test eax, eax
mov byte [esp + 0x148], bl
je 0x406ab8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x406a85
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.validatemsg
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 9
call fcn.004e96da
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x10]
jmp 0x406af2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x5234b4
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0xa
call sub.MFC42.DLL_CString::operator_2
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x10]
jmp 0x406af2
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00406dc0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 0xb
call sub.MFC42.DLL_CString::operator_2
mov byte [esp + 0x148], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.errorType
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x406b21
mov edi, dword [esp + 0x154]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
jmp 0x406bb2
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404830
push eax
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ecx
lea edx, [esi + 4]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x168], 0xc
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], bl
push ecx
call fcn.0040b4c0
add esp, 0x20
mov edi, dword [esp + 0x154]
push eax
mov ecx, edi
mov byte [esp + 0x14c], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5234a4
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x150], 0xe
mov ecx, esp
mov dword [esp + 0x38], esp
push str._errorType_:_
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x154], 0xf
mov ecx, esp
mov dword [esp + 0x40], esp
push edi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x536d10]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x158], bl
lea ecx, [eax + 0x17c]
call fcn.00443080
mov eax, dword [eax]
push str.validateCode
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
setne cl
and ecx, 0xff
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x10]
test eax, eax
mov eax, 0x523324
jne 0x406c45
mov eax, 0x52332c
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push 0x52395c
push eax
call sub.MFC42.DLL_operator_3
push 0x5236a4
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x154], 0x10
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 0x11
call fcn.004e96da
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x406cb9
push 0x523698
jmp 0x406cbe
push 0x523950
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406cec
mov edx, dword [0x536d10]
mov eax, dword [edx + 0xd74]
lea ecx, [edx + 0xd74]
mov edx, dword [esp + 0x14]
push edx
push 4
call dword [eax + 4]
jmp 0x406d07
mov eax, dword [0x536d10]
mov edx, dword [eax + 0x17c]
lea ecx, [eax + 0x17c]
mov eax, dword [esp + 0x14]
push eax
push 4
call dword [edx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret 8