Function at 0x40aa00
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4175db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea edi, [esi + 0x358]
push edi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x168], 0
test eax, eax
mov dword [esp + 0x1c], 0x41eed8
mov ebp, 0x400000
je 0x40aa55
mov ebp, 0x4400100
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40aa62
or ebp, 0x200000
lea eax, [esp + 0x18]
push 8
push eax
mov ecx, edi
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 0x40aa99
or ebp, 0x800000
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x40aabb
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ad46
mov eax, dword [esi + 0x10]
push 0
lea edx, [esp + 0x20]
push ebp
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 [esi + 0x44], edx
jne 0x40ab0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ad46
or ebp, 0xffffffff
mov edi, 0x41eeac
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x80000000
not ecx
dec ecx
push ecx
push 0x41eeac
push edx
call ebx
test eax, eax
je 0x40abd5
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
test eax, eax
ja 0x40ab4d
test ecx, ecx
jbe 0x40ab84
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, ebp
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x44]
push 0x10000000
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x40abd5
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40ab9f
push 0x10000000
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ecx
call ebx
test eax, eax
je 0x40abd5
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40abba
mov edx, dword [esi + 0x44]
push 0x10000000
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x40abd5
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40abf2
push 0x10000000
push ecx
push eax
mov eax, dword [esi + 0x44]
push eax
call ebx
test eax, eax
jne 0x40abf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ad46
mov ecx, dword [esi + 0x44]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
push 0
push 0
push 0
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ac2f
call ebp
cmp eax, 0x2f00
jne 0x40acb9
mov edx, dword [esi + 0x44]
push 0
push 0
push 0
push 0
push edx
call edi
test eax, eax
je 0x40ac10
mov edx, dword [esi + 0x44]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
mov ebx, 0x40
push 0x13
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40ac73
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ad46
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x178]
mov dword [esi + 0x398], eax
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x398]
cmp eax, 0xc8
je 0x40acd1
cmp eax, 0xce
je 0x40acd1
cmp eax, 0x12e
je 0x40acb2
cmp eax, 0x12f
jne 0x40acb9
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40acd1
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40ad46
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 1
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40acf1
call ebp
jmp 0x40ad2d
lea edx, [esp + 0x20]
lea ecx, [esi + 0x39c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x180]
test edx, edx
je 0x40ad2d
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, 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 + 0x10]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 0x14