Function at 0x40a3b0
Capabilities:
Extract http body

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412d6d
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
sub esp, 0x430
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x40a416
mov esi, dword [0x41a764]
cmp esi, edi
je 0x40a40e
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi + 4]
test eax, eax
je 0x40a3fe
push eax
push 0
call ebp
push eax
call ebx
mov edi, dword [esi]
push esi
push 0
call ebp
push eax
call ebx
test edi, edi
mov esi, edi
jne 0x40a3ef
xor edi, edi
mov dword [0x41a764], edi
mov dword [esp + 0x18], edi
lea eax, [esp + 0x18]
mov dword [esp + 0x448], edi
push eax
push 0x416a98
push 7
push edi
push 0x416a88
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40a45e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x448], 0xffffffff
cmp eax, edi
je 0x40a456
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or eax, 0xffffffff
jmp 0x40a710
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x28], eax
jle 0x40a6f2
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], edi
mov word [esp + 0x30], 3
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x14]
push esi
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov byte [esp + 0x45c], 2
mov esi, esp
mov edx, dword [ecx]
push ecx
mov dword [esi], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], eax
call dword [edx + 0x20]
lea ecx, [esp + 0x30]
mov byte [esp + 0x448], 1
test eax, eax
push ecx
setl bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x40a4fc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x448], 0
cmp eax, edi
je 0x40a6dd
jmp 0x40a6d7
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x10], ecx
je 0x40a521
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x416468
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
jne 0x40a540
cmp eax, edi
mov byte [esp + 0x448], 0
je 0x40a6dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a6dd
mov dword [esp + 0x24], edi
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x450], 4
call dword [edx + 0x78]
test eax, eax
jl 0x40a6a4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x40]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
push ebx
push ebx
lea ecx, [esp + 0x48]
push 0x3ff
push ecx
push eax
mov esi, eax
call fcn.0040afef
add esp, 4
push eax
push esi
push ebx
push ebx
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
mov byte [esp + 0x450], 5
call dword [edx + 0x48]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x40a5c5
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push str._D_3
push eax
call dword [edx]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x448], 6
cmp eax, ebx
je 0x40a678
mov eax, dword [esp + 0x450]
cmp eax, 1
jne 0x40a648
mov esi, dword [0x41a764]
xor edi, edi
cmp esi, ebx
je 0x40a613
mov eax, dword [esi + 4]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a609
mov edi, 1
mov esi, dword [esi]
cmp esi, ebx
jne 0x40a5f1
cmp edi, ebx
jne 0x40a678
mov eax, dword [esp + 0x454]
cmp eax, ebx
mov eax, dword [esp + 0x10]
je 0x40a62d
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
jmp 0x40a678
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0xa4]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
jmp 0x40a678
cmp eax, ebx
jne 0x40a678
push 0x10
push 0x41a764
call fcn.00405590
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40a678
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x448], 5
cmp eax, ebx
je 0x40a68e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x448], 4
cmp eax, ebx
je 0x40a6a4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x448], 1
je 0x40a6c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x448], 0
cmp eax, edi
je 0x40a6dd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x40a485
mov eax, dword [esp + 0x18]
mov dword [esp + 0x448], 0xffffffff
cmp eax, edi
je 0x40a70b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x43c
ret