Function at 0x1001c616
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push 0x3c
mov eax, 0x1002f66d
call fcn.10003682
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x17e0000
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp dword [ebx + 4], edi
jne 0x1001cc61
cmp dword [ebx + 8], edi
jne 0x1001cc61
test al, 0x10
je 0x1001c673
mov ecx, eax
or ecx, 1
mov dword [ebp - 0x14], ecx
or dword [ebx + reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c6a4
test byte [eax + 0x1c], 4
je 0x1001c6a4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1000beb8
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fb78
lea esi, [ebx + 0x54]
mov ecx, esi
call fcn.1001a661
cmp dword [ebx], edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x1001c831
push 0x10000000
push 0
push 0
push 1
push 0x1001cc84
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
test eax, eax
jne 0x1001c70c
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c825
test byte [eax + 0x1c], 1
je 0x1001c825
push edi
push 0x1000beb8
push 0x31
jmp 0x1001c81a
mov ecx, 0x7530
push ecx
push ecx
push 0xea60
push 0x1d4c0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1001c75c
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c825
test byte [eax + 0x1c], 1
je 0x1001c825
push edi
push 0x1000beb8
push 0x32
jmp 0x1001c81a
push 4
lea eax, [ebp - 0x20]
push eax
push 0x2d
push dword [ebx]
call edi
test eax, eax
jne 0x1001c79d
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c825
test byte [eax + 0x1c], 1
je 0x1001c825
push edi
push 0x1000beb8
push 0x33
jmp 0x1001c81a
push 4
lea eax, [ebp - 0x10]
push eax
push reloc.KERNEL32.dll_EnterCriticalSection
push dword [ebx]
mov dword [ebp - 0x10], 1
call edi
test eax, eax
jne 0x1001c7dd
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c825
test byte [eax + 0x1c], 1
je 0x1001c825
push edi
push 0x1000beb8
push 0x34
jmp 0x1001c81a
cmp dword [ebx + 0x24], 0
je 0x1001c831
push 4
lea eax, [ebx + 0x18]
push eax
push 0x63
push dword [ebx]
call edi
test eax, eax
jne 0x1001c831
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001c825
test byte [eax + 0x1c], 1
je 0x1001c825
push edi
push 0x1000beb8
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
mov ecx, esi
call fcn.1001a6b4
jmp 0x1001cc66
mov ecx, esi
call fcn.1001a6b4
push dword [ebx + 0x10]
call sub.KERNEL32.dll_ResetEvent
push dword [ebx + 0x18]
call sub.KERNEL32.dll_ResetEvent
xor esi, esi
mov dword [ebx + reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebx + 0xc0], esi
cmp dword [ebp + 0x18], esi
je 0x1001c8a3
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], esi
call dword [ebp + 0x18]
mov edi, eax
test edi, edi
jns 0x1001c8a3
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x1001cc66
push esi
push dword [ebp + 0x20]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebx + 4], eax
test eax, eax
jne 0x1001c8ea
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x37
jmp 0x1001c893
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 0x14]
mov esi, eax
test cl, 2
je 0x1001c900
mov edi, 0x1001cc90
jmp 0x1001c91d
test cl, 4
je 0x1001c90c
mov edi, 0x1001cc98
jmp 0x1001c91d
mov eax, ecx
and al, 8
movzx edi, al
neg edi
sbb edi, edi
and edi, 0x1001cca0
mov eax, ecx
and eax, 1
mov dword [ebp + 0x1c], eax
shl eax, 0x17
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x18], edi
push edi
push dword [ebx + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx + 8], eax
test eax, eax
jne 0x1001c979
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x38
jmp 0x1001c893
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x1001c987
sub eax, esi
dec eax
jmp 0x1001c989
sub eax, esi
test byte [ebp - 0x14], 0x10
mov dword [ebx + 0xc0], eax
je 0x1001c9e5
push 4
lea eax, [ebp - 0x10]
push eax
push 0x4d
push dword [ebx + 8]
mov dword [ebp - 0x10], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1001c9e5
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x39
jmp 0x1001c893
cmp dword [ebp + 0x1c], 0
je 0x1001ca3b
push 4
lea eax, [ebp - 0x10]
push eax
push 0x4f
push dword [ebx + 8]
mov dword [ebp - 0x10], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1001ca3b
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x3a
jmp 0x1001c893
cmp dword [ebp + 0x2c], 0
je 0x1001ca8c
push 0x20000000
push 0xffffffffffffffff
push dword [ebp + 0x2c]
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1001ca8c
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x3b
jmp 0x1001c893
cmp dword [ebx + 0x24], 0
jne 0x1001ca99
mov dword [ebp - 0x18], reloc.ADVAPI32.dll_TraceMessage
mov ecx, ebx
call fcn.1001defb
push 0
push dword [ebp - 0x18]
push 0x1001d37c
push dword [ebx + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov ecx, ebx
mov esi, eax
call fcn.1001df34
cmp esi, reloc.ADVAPI32.dll_TraceMessage
jne 0x1001caf5
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.100033fb
mov edi, eax
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x3c
jmp 0x1001c893
and dword [ebx + 0xbc], 0
test byte [ebp - 0x14], 0x20
jne 0x1001cb6b
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001d9b4
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x1001cb35
sub eax, esi
dec eax
jmp 0x1001cb37
sub eax, esi
mov dword [ebx + 0xbc], eax
test edi, edi
jns 0x1001cb68
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x3d
jmp 0x1001c893
mov edi, dword [ebp + 0x18]
mov eax, dword [0x100320c8]
mov esi, 0x100320c8
cmp eax, esi
je 0x1001cb98
test byte [eax + 0x1c], 4
je 0x1001cb98
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1000beb8
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fc40
push dword [ebp + 0x28]
mov ecx, ebx
push dword [ebp + 0x24]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call fcn.1001d646
mov edi, eax
test edi, edi
jns 0x1001cbde
mov eax, dword [0x100320c8]
cmp eax, esi
je 0x1001cc66
test byte [eax + 0x1c], 1
je 0x1001cc66
push edi
push 0x1000beb8
push 0x3f
jmp 0x1001c893
test byte [ebp + 0x10], 0x40
je 0x1001cc5d
call sub.KERNEL32.dll_GetTickCount
push dword [ebx + 8]
mov esi, eax
call fcn.1001e06f
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
cmp eax, esi
jae 0x1001cc03
sub eax, esi
dec eax
jmp 0x1001cc05
sub eax, esi
mov dword [ebx + reloc.ADVAPI32.dll_TraceMessage], eax
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x1001cc38
test byte [ecx + 0x1c], 8
je 0x1001cc38
push eax
push 0x1000beb8
push 0x40
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1001334b
mov ecx, dword [0x100320c8]
test edi, edi
jns 0x1001cc5d
cmp ecx, 0x100320c8
je 0x1001cc66
test byte [ecx + 0x1c], 2
je 0x1001cc66
push edi
push 0x1000beb8
push 0x41
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x1001c899
xor edi, edi
jmp 0x1001cc66
mov edi, 0x8000000a
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003a06
push 1
lea ecx, [ebp - 0x38]
call fcn.10003a06
mov eax, edi
call fcn.10005952
ret 0x28