Function at 0x4053d0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x408218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x48], esi
push 0x40c988
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], 3
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
lea edx, [esp + 0x80]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x84], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00404fa0
xor ebx, ebx
cmp eax, ebx
je 0x4058da
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00406350
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, esi
call fcn.00406350
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.00406350
mov dword [esp + 0x1c], 0x409a20
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x80], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call fcn.00407280
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 9
call fcn.00407534
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 8
call fcn.004074ce
mov edx, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
call fcn.00407280
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0xa
call fcn.00407534
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 8
call fcn.004074ce
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
call fcn.00407280
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 0xb
call fcn.00407534
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 8
call fcn.004074ce
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x405585
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40559a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4055af
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
push str.FirstName
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.LastName
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push str.EmailAddress
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
cmp dword [esp + 0x90], ebx
je 0x405613
push str.rec_letter1
jmp 0x405618
push str.rec_letter0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x94], ebx
je 0x405631
push str.rec_promotion1
jmp 0x405636
push str.rec_promotion0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
cmp dword [esp + 0x9c], ebx
je 0x40564f
push str.SendMail1
jmp 0x405654
push str.SendMail0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x40c988
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 0xc
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
push ebx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x44]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push edi
add eax, 0x76c
push esi
push eax
lea edx, [esp + 0x30]
push str.RegDate_04d__02d__02d
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x40c988
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x40c988
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0xd
call sub.MFC42.DLL_CString::CString_2
push 0x40c988
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0xe
call sub.MFC42.DLL_CString::CString_2
mov bl, 0xf
push 8
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::Find_2
mov ecx, dword [esp + 0x10]
push 8
push 0x3f
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
lea edx, [esp + 0x90]
push edi
push edx
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 0x10
call fcn.00407534
lea ecx, [esp + 0x90]
mov byte [esp + 0x78], bl
call fcn.004074ce
mov eax, dword [esp + 0x14]
push 0x2f
lea ecx, [esp + 0x18]
mov edi, dword [eax - 8]
call sub.MFC42.DLL_CString::Find
sub edi, eax
lea ecx, [esp + 0x90]
sub edi, 2
push edi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 0x11
call fcn.00407534
lea ecx, [esp + 0x90]
mov byte [esp + 0x78], bl
call fcn.004074ce
lea edx, [esp + 0x90]
push ebp
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0x12
call fcn.00407534
lea ecx, [esp + 0x90]
mov byte [esp + 0x78], bl
call fcn.004074ce
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
mov eax, dword [eax - 8]
mov edi, dword [ecx - 8]
sub eax, edi
lea ecx, [esp + 0x18]
sub eax, 7
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0x13
call fcn.00407534
lea ecx, [esp + 0x90]
mov byte [esp + 0x78], bl
call fcn.004074ce
sub esi, ebp
lea eax, [esp + 0x90]
dec esi
lea ecx, [esp + 0x10]
push esi
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0x14
call fcn.00407534
lea ecx, [esp + 0x90]
mov byte [esp + 0x78], bl
call fcn.004074ce
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [esp + 0x48]
test eax, eax
mov dword [esi + 4], eax
jne 0x405903
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0xe
call fcn.004074ce
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xd
call fcn.004074ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xc
call fcn.004074ce
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 8
call fcn.004074ce
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call fcn.004074ce
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call fcn.004074ce
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.004074ce
mov dword [esp + 0x1c], 0x409a20
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 3
call fcn.004074ce
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call fcn.004074ce
mov byte [esp + 0x78], 1
jmp 0x405c00
mov ecx, dword [esp + 0x14]
mov ebx, 1
push ebx
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 8], eax
je 0x405b73
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x4c]
push 0
push edx
push 0
push str.HTTP_1.0
push ecx
push str.POST
push eax
mov dword [esp + 0x68], 0x40c774
mov dword [esp + 0x6c], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
test edx, edx
mov dword [esi + 0xc], edx
je 0x405b73
mov eax, dword [esp + 0x20]
or ebp, 0xffffffff
mov edi, str.Content_Type:_application_x_www_form_urlencoded
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_application_x_www_form_urlencoded
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405ac0
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x54]
push 0x1f
push eax
push ecx
mov dword [esp + 0xa0], 0
call edi
test eax, eax
mov eax, dword [esp + 0x90]
jne 0x4059d1
test eax, eax
je 0x405ac0
jmp 0x40599c
test eax, eax
je 0x405ac0
mov esi, dword [esp + 0x98]
lea edx, [esp + 0x50]
push edx
push 0x40c6bc
push esi
mov byte [esp + eax + 0x5c], 0
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0xe
call fcn.004074ce
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xd
call fcn.004074ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xc
call fcn.004074ce
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 8
call fcn.004074ce
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call fcn.004074ce
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call fcn.004074ce
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.004074ce
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x409a20
mov byte [esp + 0x78], 3
call fcn.004074ce
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call fcn.004074ce
lea ecx, [esp + 0x84]
mov byte [esp + 0x78], bl
call fcn.004074ce
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 0
call fcn.004074ce
lea ecx, [esp + 0x8c]
mov dword [esp + 0x78], ebp
call fcn.004074ce
mov eax, ebx
jmp 0x405c33
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0xe
call fcn.004074ce
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xd
call fcn.004074ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xc
call fcn.004074ce
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 8
call fcn.004074ce
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call fcn.004074ce
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call fcn.004074ce
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.004074ce
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x409a20
mov byte [esp + 0x78], 3
call fcn.004074ce
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call fcn.004074ce
lea ecx, [esp + 0x84]
mov byte [esp + 0x78], bl
call fcn.004074ce
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 0
call fcn.004074ce
mov dword [esp + 0x78], ebp
jmp 0x405c25
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0xe
call fcn.004074ce
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xd
call fcn.004074ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xc
call fcn.004074ce
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 8
call fcn.004074ce
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 7
call fcn.004074ce
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call fcn.004074ce
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 5
call fcn.004074ce
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x409a20
mov byte [esp + 0x78], 3
call fcn.004074ce
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call fcn.004074ce
mov byte [esp + 0x78], bl
lea ecx, [esp + 0x84]
call fcn.004074ce
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 0
call fcn.004074ce
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x8c]
call fcn.004074ce
xor eax, eax
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 0x20