Function at 0x401c70
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452080
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [edi + 0x24], ebx
je 0x401edf
cmp dword [edi + 0x20], ebx
je 0x401edf
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e740
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x3c]
xor ecx, ecx
lea eax, [eax + eax - 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e740
add esp, 8
push 0x800000
push ebx
push ebx
push ebx
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [esi], ebx
push 8
mov byte [ebp - 4], 2
call fcn.00420770
add esp, 4
cmp eax, ebx
je 0x401ebb
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp + 0x28]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015e0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00407a50
add esp, 0x20
push eax
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x18], esi
mov dword [esi], ebx
push 8
mov byte [ebp - 4], 4
call fcn.00420770
add esp, 4
cmp eax, ebx
je 0x401e97
mov dword [esi], eax
xor edx, edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esi]
mov dword [edx], esi
push 0xffffffffffffffff
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004015e0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00407a50
mov ecx, dword [edi + 0x24]
add esp, 0x20
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edx, esi
push edx
mov dword [edi + 0x28], eax
call fcn.004207f0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004207f0
add esp, 8
mov byte [ebp - 4], bl
lea esi, [ebx + 0x10]
cmp dword [edi + 0x28], ebx
jne 0x401e2e
cmp dword [ebp + 0x20], esi
jb 0x401dff
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004205f0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.00401380
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], esi
jb 0x401f26
mov edx, dword [ebp + 0x2c]
push edx
jmp 0x401f1e
cmp dword [ebp + 0x20], esi
jb 0x401e3f
mov eax, dword [ebp + 0xc]
push eax
call fcn.004205f0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.00401380
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], esi
jb 0x401e6d
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.004205f0
add esp, 4
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x3c], ebx
mov byte [ebp + 0x2c], bl
call fcn.00401380
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
call fcn.0041fd80
push 0x467ba8
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], vtable.std::bad_alloc.0
call fcn.004287b0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
call fcn.0041fd80
push 0x467ba8
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], vtable.std::bad_alloc.0
call fcn.004287b0
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], esi
jb 0x401ef8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004205f0
add esp, 4
mov edi, 0xf
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.00401380
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], esi
jb 0x401f26
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.004205f0
add esp, 4
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x3c], ebx
mov byte [ebp + 0x2c], bl
call fcn.00401380
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40