Function at 0x408e00
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acc0d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d500c]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
jne 0x408e45
xor eax, eax
jmp 0x409012
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 0x4c8618
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 0x408eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push str._s:WinHttpOpen___failed:_d
jmp 0x408eda
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 0x408ee6
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.0043ac90
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x408ef2
mov esi, dword [esi]
sub esp, 0xc
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x58]
push eax
push esi
call fcn.0043bbf0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x408fd0
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.00404570
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0041b500
cmp dword [edi + 0x10], 0
je 0x408f7b
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x408f6e
mov edi, dword [edi]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00422060
add esp, 4
test ebx, ebx
je 0x408f99
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x408f99
cmp dword [ebp - 0x18], 0x10
mov ecx, ebx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00404570
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x408fc9
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409030
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov esi, 1
jmp 0x408fd2
xor esi, esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x408fe0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x409010
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409006
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409035
push edx
push ecx
call fcn.0044b3bd
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.0044ae26
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047aa50
call fcn.0047aa50
int3