Function at 0x402d40
Capabilities:
Get common file path
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40de47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
call fcn.004029a0
mov ecx, edi
call fcn.004029e0
lea eax, [esp + 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x214]
lea edx, [esp + 0x90]
push ecx
push str._s_autoupdate.ini
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
lea eax, [esp + 0x90]
push eax
push 0
push str.URLNum
push str.ADServer
call esi
lea ecx, [esp + 0x90]
mov ebx, eax
push ecx
push 0xf
push str.ADDelay
push str.Time
mov dword [esp + 0x7c], ebx
call esi
mov dword [edi + 0x108], eax
xor eax, eax
test ebx, ebx
jle 0x40366f
push ebp
jmp 0x402df0
mov edi, dword [esp + 0x2c]
inc eax
lea edx, [esp + 0x84]
push eax
push str.URL_d
push edx
mov dword [esp + 0x74], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x198]
lea edx, [esp + 0x84]
push eax
push 0x80
push ecx
push 0x4131b0
push edx
push str.ADServer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x198]
lea ecx, [esp + 0x10]
push eax
call fcn.0040d498
lea ecx, [esp + 0x10]
mov dword [esp + 0x324], 0
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x403644
push 0x4121f0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
je 0x403644
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
mov byte [esp + 0x324], 1
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [edi + 0x114]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
mov eax, dword [esp + 0x18]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x403633
push 0x64
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x19
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esi + 3]
lea edx, [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x328], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x54]
mov byte [esp + 0x324], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x14]
push str.ftp:__
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4032d3
mov dword [ebp], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x7c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
sub eax, 3
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x324], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x324], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x324], 5
call sub.MFC42.DLL_CString::CString_3
push 0x2f
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 6
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403056
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x44]
mov eax, dword [eax - 8]
sub eax, ebx
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x328], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x324], 6
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 + 0x70]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x324], 6
call sub.MFC42.DLL_CString::CString
push 0x40
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x403168
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40315a
test ebx, ebx
je 0x40315a
dec esi
cmp ebx, esi
jge 0x40315a
lea edx, [esp + 0x4c]
push ebx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
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, [ebp + 0x2c]
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 + 0x4c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x78]
sub ecx, ebx
dec ecx
inc ebx
push ecx
push ebx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
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, [ebp + 0x38]
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 + 0x78]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 0x20]
sub eax, ecx
lea ecx, [esp + 0x10]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x324], 6
call sub.MFC42.DLL_CString::CString
jmp 0x4031b2
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4032a0
mov edi, str.anonymous
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.111_msn.com
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]
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
je 0x403232
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x74]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x328], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x74]
mov byte [esp + 0x324], 6
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x5c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x324], 6
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4131b0
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]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40327b
push 0x4121cc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
add esp, 4
lea ecx, [eax + 0x530]
push ebp
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
lea ecx, [esp + 0x24]
mov byte [esp + 0x324], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x324], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x324], 1
lea ecx, [esp + 0x30]
jmp 0x40362e
mov ecx, dword [esp + 0x14]
push str.http:__
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x403633
mov dword [ebp], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
sub eax, 3
push eax
lea eax, [esp + 0x84]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x80]
mov byte [esp + 0x324], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x324], 0xd
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x324], 0xe
call sub.MFC42.DLL_CString::CString_3
push 0x2f
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0xf
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403410
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x64]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, ebx
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x328], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x64]
mov byte [esp + 0x324], 0xf
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x324], 0xf
call sub.MFC42.DLL_CString::CString
push 0x40
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x403512
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4036bb
test ebx, ebx
je 0x4036bb
dec esi
cmp ebx, esi
jge 0x4036bb
lea edx, [esp + 0x40]
push ebx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
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, [ebp + 0x2c]
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 + 0x40]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x48]
sub ecx, ebx
dec ecx
inc ebx
push ecx
push ebx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
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, [ebp + 0x38]
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 + 0x48]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x50]
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 0x20]
sub eax, ecx
lea ecx, [esp + 0x10]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0x324], 0xf
call sub.MFC42.DLL_CString::CString
push 0x3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
cmp esi, 0xffffffff
je 0x403592
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x58]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x328], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x58]
mov byte [esp + 0x324], 0xf
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x60]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0x14
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x60]
mov byte [esp + 0x324], 0xf
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4131b0
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]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4035db
push 0x4121c0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
add esp, 4
lea ecx, [eax + 0x530]
push ebp
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
lea ecx, [esp + 0x28]
mov byte [esp + 0x324], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x324], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x324], 1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x324], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x324], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jl 0x402dec
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop ebp
lea ecx, [esp + 0x214]
lea edx, [esp + 0x90]
push ecx
push str._shypwise.ini
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x90]
push eax
push 0
push str.Status
push str.UPDATE
call esi
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x318
ret
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x403600