Function at 0x4055f0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a39ad
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp + 0xc]
jne 0x40562f
xor eax, eax
jmp 0x4057f9
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
push 0
push 0
push 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
push 0x4bf8b0
mov dword [ebp - 0x38], vtable.CJHHttp.0
mov dword [ebp - 0x30], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x405699
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpOpen___failed:_d
jmp 0x4056c4
push 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xaa0
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4056d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpSetOption___failed:_d
lea eax, [ebp - 0x38]
push eax
call fcn.00431d20
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x4056dc
mov esi, dword [esi]
sub esp, 0x10
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
push eax
push esi
call fcn.00432c80
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4057b7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
push ecx
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00407620
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00417f40
cmp dword [edi + 0x10], 0
je 0x405762
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x405755
mov edi, dword [edi]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0041e820
add esp, 4
test ebx, ebx
je 0x405780
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x405780
cmp dword [ebp - 0x18], 0x10
mov ecx, ebx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00407620
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4057b0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4057a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405817
push edx
push ecx
call fcn.0044235d
add esp, 8
mov esi, 1
jmp 0x4057b9
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4057c7
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x4057f7
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4057ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40581c
push edx
push ecx
call fcn.0044235d
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 - 0x14]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret 0xc
call fcn.004452a7
call fcn.004452a7
int3