Function at 0x409370
Capabilities:
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x41742b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
lea esi, [ebp + 0x358]
push esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x168], 0
test eax, eax
mov dword [esp + 0x1c], 0x41eed8
mov edi, 0x400000
je 0x4093c5
mov edi, 0x4400100
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4093d2
or edi, 0x200000
lea eax, [esp + 0x18]
push 8
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x41eecc
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409409
or edi, 0x800000
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x40964d
mov eax, dword [ebp + 0x10]
push 0
lea edx, [esp + 0x20]
push edi
push edx
push eax
mov eax, dword [esp + 0x180]
push 0x41eec0
push eax
push 0x41eebc
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, eax
test edx, edx
mov dword [ebp + 0x44], edx
je 0x409647
or ebx, 0xffffffff
mov edi, 0x41eeac
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
not ecx
dec ecx
push ecx
push 0x41eeac
push edx
call esi
test eax, eax
jne 0x409481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409658
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
test eax, eax
ja 0x409497
test ecx, ecx
jbe 0x4094e0
push eax
push ecx
lea ecx, [esp + 0x68]
push 0x41ee98
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x70]
mov ecx, ebx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x44]
push 0x10000000
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x4094e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409658
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40950d
push 0x10000000
push ecx
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call esi
test eax, eax
jne 0x40950d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409658
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40953a
mov edx, dword [ebp + 0x44]
push 0x10000000
push ecx
push eax
push edx
call esi
test eax, eax
jne 0x40953a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409658
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409567
push 0x10000000
push ecx
push eax
mov eax, dword [ebp + 0x44]
push eax
call esi
test eax, eax
jne 0x409567
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], ebx
jmp 0x409658
mov ecx, dword [ebp + 0x44]
mov esi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
push 0
push 0
push ecx
call esi
test eax, eax
jne 0x40959e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x40955b
mov edx, dword [ebp + 0x44]
push 0
push 0
push 0
push 0
push edx
call esi
test eax, eax
je 0x40957f
mov eax, dword [esp + 0x180]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
mov dword [esp + 0x14], 0x40
je 0x4095f5
mov edx, dword [ebp + 0x44]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
push 1
push edx
call ebx
test eax, eax
je 0x4095f5
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x180]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x44]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push 0x13
push eax
mov dword [esp + 0x28], 0x40
call ebx
test eax, eax
je 0x409647
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov edx, dword [esp + 0x178]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
mov dword [edx], eax
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x409663
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 0x14