Function at 0x4042b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e58d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c400c]
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 0x4042ef
xor eax, eax
jmp 0x4044b9
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 0x4b7ec0
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 0x404359
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpOpen___failed:_d
jmp 0x404384
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 0x404390
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.0042ca70
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40439c
mov esi, dword [esi]
sub esp, 0x10
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
push eax
push esi
call fcn.0042d9d0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x404477
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.004060e0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00412f50
cmp dword [edi + 0x10], 0
je 0x404422
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x404415
mov edi, dword [edi]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00419ae0
add esp, 4
test ebx, ebx
je 0x404440
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x404440
cmp dword [ebp - 0x18], 0x10
mov ecx, ebx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004060e0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x404470
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044d7
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov esi, 1
jmp 0x404479
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x404487
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x4044b7
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4044ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044dc
push edx
push ecx
call fcn.0043d19d
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.0043cc06
mov esp, ebp
pop ebp
ret 0xc
call fcn.00446380
call fcn.00446380
int3