Function at 0x4429d0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2144
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x4d411c]
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 esi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], eax
mov word [ebp - 0xec], ax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.0040bc70
push 1
push 0x4b818c
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.0040d620
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x17c]
cmp eax, 2
jne 0x442a6a
lea ebx, [eax - 1]
jmp 0x442ba2
test eax, eax
je 0x442ba0
cmp eax, 1
je 0x442ba0
lea edi, [esi + 0xd0]
mov ebx, 3
lea eax, [ebp - 0xec]
cmp eax, edi
je 0x442aab
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0040d110
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004339c0
lea ecx, [ebp - 0xec]
call fcn.00447a80
test al, al
je 0x442ad3
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
jmp 0x442ba4
cmp dword [ebp - 0x44], 0
jle 0x442b80
sub esp, 8
lea ecx, [ebp - 0x18c]
call fcn.00407850
mov byte [ebp - 4], 4
call fcn.00466c0e
push eax
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x18c]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00409100
lea ecx, [ebp - 0xf4]
call fcn.0040b5c0
push dword [ebp - 0x44]
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x18c]
call fcn.0042c290
mov edx, 0x4b8298
mov ecx, eax
call fcn.004148a0
mov ecx, eax
call fcn.004049f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18c]
call fcn.004075e0
push eax
lea ecx, [ebp - 0x40]
call fcn.00406c90
lea ecx, [ebp - 0x28]
call fcn.0040d020
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 3
call fcn.004076c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x442ba4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040d110
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x442ba4
xor ebx, ebx
xor eax, eax
push 0x10000000
push 0
push eax
push ebx
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esi + 0x268], edi
test edi, edi
jne 0x442bc8
push str.Error_opening_session
jmp 0x442bfd
lea edx, [esi + 0x1d8]
lea ecx, [ebp - 0xf4]
call fcn.00445e10
mov eax, dword [ebp - 0xf4]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x442c2b
push str.Error_setting_timeouts
lea ecx, [ebp - 0x28]
call fcn.0040bc10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x442cf2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d4d0
jmp 0x442cf2
cmp byte [esi + 0x1d0], 0
je 0x442c60
push 4
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf0], 1
push eax
push 0x49
push dword [esi + 0x268]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x442c60
push str.Error_setting_options
jmp 0x442cd6
push 0
push 0x17e0c00
push 0x4446d0
push dword [esi + 0x268]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x442c84
push str.Error_registering_callback
jmp 0x442cd6
lea ecx, [esi + 0x14]
call fcn.00447a80
test al, al
je 0x442ca6
cmp byte [esi + 0x270], 0
mov eax, 0x50
mov ecx, 0x1bb
cmovne eax, ecx
jmp 0x442cac
mov eax, dword [esi + 0xbc]
cmp dword [esi + 0x58], 8
lea ecx, [esi + 0x44]
jb 0x442cb7
mov ecx, dword [ecx]
push 0
push eax
push ecx
push dword [esi + 0x268]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x26c], eax
test eax, eax
jne 0x442cf0
push str.Error_opening_connection
lea ecx, [ebp - 0x28]
call fcn.0040bc10
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040d020
jmp 0x442cf2
xor esi, esi
lea ecx, [ebp - 0xd4]
call fcn.0040ca60
mov eax, dword [ebp - 0xd8]
cmp eax, 8
jb 0x442d1b
inc eax
lea ecx, [ebp - 0xec]
push eax
push dword [ebp - 0xec]
call fcn.0040d4d0
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0xd8], 7
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xec], ax
cmp ecx, 8
jb 0x442d4d
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040d4d0
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.0047e3fa
mov esp, ebp
pop ebp
ret