Function at 0x10006b30
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1006c3ac]
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 dword [ebp - 0x10], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], esi
test esi, esi
jne 0x10006b73
xor eax, eax
jmp 0x10006dff
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
mov byte [esi + 0x29c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x24], eax
test eax, eax
je 0x10006b6c
mov dword [ebp - 4], 0
cmp byte [ebx + 0x9c], 0
je 0x10006dfa
mov eax, dword [ebx + 0xa0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10006bc3
mov ebx, dword [ebp - 0x3c]
cmp byte [ebx + 0x9c], 0
je 0x10006dfa
lea ecx, [ebp - 0x34]
push ecx
mov ecx, 0x1005f75c
call fcn.10001cd0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edi, [ebx + 0x3c]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
test edi, edi
je 0x10006c0f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x40], 1
lea esi, [ebx + 0x54]
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10006d93
mov eax, esi
call fcn.10008050
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x34]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x10006c90
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x10006c81
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x10006c81
call fcn.10002fe0
mov dword [ebp - 0x38], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10006c76
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
mov dword [ebp - 0x34], ecx
jmp 0x10006c8d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x34]
call fcn.10002f40
mov edi, dword [ebp - 0x44]
mov eax, esi
call fcn.10008050
push 0xffffffffffffffff
xor ebx, ebx
add eax, 4
push ebx
push eax
lea ecx, [ebp - 0x30]
call fcn.10002800
mov ecx, dword [esi + 0x10]
mov edx, ecx
sub edx, dword [esi + 0xc]
mov eax, 0x38e38e39
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10006cd7
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ecx - 0x24]
push ecx
call fcn.1000a680
add esp, 8
add dword [esi + 0x10], 0xffffffdc
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x10006ceb
cmp dword [ebp - 0x40], ebx
je 0x10006ceb
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], ebx
je 0x10006d47
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x30]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], 0
call fcn.10002800
mov edi, dword [ebp - 0x48]
push edi
call fcn.1000b310
mov eax, dword [ebp - 0x3c]
push 0xea60
push ebx
push eax
mov eax, dword [ebp - 0x34]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov esi, esp
call fcn.10002fe0
add eax, 0x10
mov dword [esi], eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
cmp dword [ebp - 0x18], 0x10
jb 0x10006d59
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003f2c6
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10006bc0
test edi, edi
je 0x10006da4
cmp dword [ebp - 0x40], 0
je 0x10006da4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0x10
jb 0x10006db6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003f2c6
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006b9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10006b9b
mov eax, 1
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.1003f2d1
mov esp, ebp
pop ebp
ret