Function at 0x407880
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5c0d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [edi + 0x10], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
jne 0x4078c5
xor eax, eax
jmp 0x407abb
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
push 0x4c05f8
mov dword [ebp - 0x34], vtable.CJHHttp.0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40792f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpOpen___failed:_d
jmp 0x40795a
push 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0xaa0
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x407966
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpSetOption___failed:_d
lea eax, [ebp - 0x34]
push eax
call fcn.00433580
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x407972
mov edi, dword [edi]
sub esp, 0x10
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push eax
push edi
call fcn.00434550
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x407a79
test esi, esi
je 0x4079b8
cmp dword [esi + 0x10], 0
je 0x4079b8
cmp dword [ebp - 0x38], 0x10
lea edx, [ebp - 0x4c]
cmovae edx, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 8
jb 0x4079aa
mov esi, dword [esi]
push ecx
mov ecx, esi
call fcn.0041d710
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
push ecx
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a9e0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
call fcn.00417c70
cmp dword [ebx + 0x10], 0
je 0x407a23
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x407a16
mov ebx, dword [ebx]
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.0041d710
add esp, 4
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x407a42
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x407a42
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040a9e0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x407a72
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407a68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ad9
push edx
push ecx
call fcn.0044434d
add esp, 8
mov esi, 1
jmp 0x407a7b
xor esi, esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x407a89
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x407ab9
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407aaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ade
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret 0x10
call fcn.00447297
call fcn.00447297
int3