Function at 0x405171
Capabilities:
Extract http body

Disassembly:
mov eax, 0x407e6c
call fcn.00407910
sub esp, 0x50
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4054be
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax]
push edx
push str._D_3
push eax
call dword [ecx]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x4054ae
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40549d
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0x174]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40548c
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push edx
push 0x40bb20
push eax
call dword [ecx]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x405478
or dword [ebp - 0x28], 0xffffffff
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [ebp - 0x28], ebx
jle 0x405478
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x5c], 3
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x24]
mov word [ebp - 0x4c], 3
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x20]
lea esi, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2c]
sub esp, 0x10
mov byte [ebp - 4], 7
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4c]
push eax
call esi
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
call esi
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40540b
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push edx
push 0x40bb10
push eax
call dword [ecx]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4053fa
cmp dword [ebp + 0x10], ebx
je 0x405346
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0x20]
cmp dword [ebp - 0x18], ebx
je 0x40533a
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40533a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00407940
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
je 0x40533a
mov eax, dword [ebp - 0x14]
push ebx
push 0x40ba40
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0xd], 1
mov dword [eax], ebx
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0xc], ebx
je 0x4053fa
mov dword [ebp + 8], ebx
xor ecx, ecx
cmp eax, ebx
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1c], ecx
je 0x405370
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x40ba40
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x1c]
cmp byte [ebp + 0x18], bl
mov eax, dword [ecx]
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xb
push edx
push ecx
je 0x405388
call dword [eax + 0xe8]
jmp 0x40538e
call dword [eax + 0xf0]
cmp dword [ebp + 8], ebx
je 0x4053dd
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x4053dd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00407940
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
jne 0x40542a
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x4053ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x405408
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x405419
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jl 0x40523c
jmp 0x405478
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ecx], eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 1
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x40544d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x405467
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x405478
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x405489
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x40549a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x4054ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x4054bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4054cc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
lea esp, [ebp - 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14