Function at 0x1000bf60
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x1005a034
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x4b8], ebx
cmp dword [esp + 0x4c4], ebx
je 0x1000c0e2
mov eax, dword [esp + 0x4c0]
xor ecx, ecx
mov word [esp + 0x78], cx
mov edi, 7
mov ecx, eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x1000bfe0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x78]
call fcn.1000b540
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x4bc], 1
mov ecx, esi
lea edx, [esp + 0x94]
mov dword [esp + 0x38], 1
call fcn.1002e380
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0xa4], ebx
je 0x1000c117
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x1000c042
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 0x24], ebx
mov eax, dword [esp + 0x94]
mov esi, 8
cmp dword [esp + 0xa8], esi
jae 0x1000c05e
lea eax, [esp + 0x94]
movzx ecx, byte [ebp + 0x29c]
neg ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push ebx
push eax
push 3
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp + 0x24], eax
cmp eax, ebx
jne 0x1000c117
cmp dword [esp + 0xa8], esi
jb 0x1000c09f
mov edx, dword [esp + 0x94]
push edx
call fcn.1003f2c6
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
cmp dword [esp + 0x8c], esi
jb 0x1000c0cd
mov ecx, dword [esp + 0x78]
push ecx
call fcn.1003f2c6
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
mov dword [esp + 0x4b8], 0xffffffff
mov eax, dword [esp + 0x4c0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x1000c548
mov ecx, dword [ebp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [ebp + 0x278]
lea eax, [esp + 0x4c0]
call fcn.10005550
mov edx, dword [esp + 0x4c4]
mov eax, dword [esp + 0x4c8]
push 0x1005f75c
mov dword [ebp + 0x274], edx
mov dword [ebp + 0x268], ebx
mov dword [ebp + 0x260], ebx
mov dword [ebp + 0x264], ebx
lea esi, [ebp + 0x30]
push pe_nt_image_headers32
push esi
mov byte [esp + 0x23], bl
mov dword [ebp + 0x250], ebx
mov dword [ebp + 0x24c], ebx
mov dword [ebp + 0x254], ebx
mov dword [ebp + 0x27c], ebx
mov dword [ebp + 0x280], eax
call fcn.10040542
add esp, 0xc
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000c1b0
sub eax, edx
sar eax, 1
push eax
lea edi, [ebp + 0x30]
mov eax, edi
lea esi, [esp + 0x1c]
call fcn.1000b540
or esi, 0xffffffff
push esi
mov byte [esp + 0x4bc], 3
push ebx
lea ecx, [ebp + 8]
lea eax, [esp + 0x20]
mov dword [ebp + 4], ebx
call fcn.1000b980
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x30], 8
jb 0x1000c206
mov edx, dword [esp + 0x1c]
push edx
call fcn.1003f2c6
add esp, 4
push 0x3c
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.10042250
lea ecx, [esp + 0x2b8]
push str.WinHttpCrackURL
mov edx, edi
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], pe_nt_image_headers32
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], esi
call fcn.1000d1e0
mov eax, dword [esp + 0x4d0]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1000c3f8
push 0x1005fdc0
mov edx, edi
call fcn.1000d1e0
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp + 0x24]
add esp, 4
push ebx
push ecx
lea edx, [esp + 0x2b4]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 0x28], eax
cmp eax, ebx
je 0x1000c3f8
xor ecx, ecx
cmp dword [esp + 0x44], 2
push 0x1005fde0
setne cl
mov edx, edi
dec ecx
and ecx, 0x800000
mov esi, ecx
call fcn.1000d1e0
add esp, 4
cmp dword [ebp + 0x274], ebx
je 0x1000c2f1
push esi
push ebx
push ebx
push ebx
cmp dword [ebp + 0x2b4], ebx
je 0x1000c2da
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 0x28]
push edx
push str.Post
push eax
jmp 0x1000c2e8
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x28]
push ecx
push 0x1005f9f8
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x2c], ebx
je 0x1000c3f8
mov eax, dword [esp + 0x4cc]
cmp eax, ebx
je 0x1000c315
push eax
mov edi, ebp
call fcn.1000c8d0
test al, al
je 0x1000c3f8
cmp byte [ebp + 0x29c], bl
je 0x1000c34a
push 0x1005fe14
lea edx, [ebp + 0x30]
call fcn.1000d1e0
mov eax, dword [ebp + 0x2c]
add esp, 4
push ebx
push 0x7e4000
push 0x1000c580
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, ebx
jne 0x1000c3f8
lea esi, [ebp + 0x30]
push 0x1005fe48
mov edx, esi
call fcn.1000d1e0
mov eax, dword [ebp + 0x2b4]
add esp, 4
cmp eax, ebx
je 0x1000c393
cmp dword [ebp + 0x2b8], 0x10
jb 0x1000c381
mov ecx, dword [ebp + 0x2a4]
push ebx
push eax
push eax
push ecx
mov ecx, dword [ebp + 0x2c]
push ebx
push ebx
push ecx
jmp 0x1000c39d
push ebx
push eax
push eax
lea ecx, [ebp + 0x2a4]
push ecx
mov ecx, dword [ebp + 0x2c]
push ebx
push ebx
push ecx
jmp 0x1000c39d
mov edx, dword [ebp + 0x2c]
push ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1000c3f8
cmp byte [ebp + 0x29c], bl
jne 0x1000c3e9
push 0x1005fe70
mov edx, esi
call fcn.1000d1e0
mov eax, dword [ebp + 0x2c]
add esp, 4
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000c3f8
mov edi, ebp
call fcn.1000cff0
mov edi, ebp
call fcn.1000cd20
test al, al
jne 0x1000c3d4
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov byte [esp + 0x17], 1
mov edi, 7
jmp 0x1000c4a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x30]
push eax
push str._s_failed_with_error__d
lea edx, [esp + 0xb8]
call fcn.1000d1e0
add esp, 0xc
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0xac]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000c435
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
lea esi, [esp + 0x1c]
call fcn.1000b540
push 0xffffffffffffffff
mov byte [esp + 0x4bc], 4
push ebx
lea ecx, [ebp + 8]
mov eax, esi
mov dword [ebp + 4], 1
call fcn.1000b980
mov byte [esp + 0x4b8], 2
cmp dword [esp + 0x30], 8
jb 0x1000c48d
mov edx, dword [esp + 0x1c]
push edx
call fcn.1003f2c6
add esp, 4
mov edx, dword [ebp]
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, dword [edx + 8]
mov ecx, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
call eax
mov ecx, dword [ebp + 0x270]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 8
cmp dword [esp + 0xa8], esi
jb 0x1000c4d3
mov edx, dword [esp + 0x94]
push edx
call fcn.1003f2c6
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], ax
cmp dword [esp + 0x8c], esi
jb 0x1000c501
mov ecx, dword [esp + 0x78]
push ecx
call fcn.1003f2c6
add esp, 4
mov dword [esp + 0x4b8], 0xffffffff
mov eax, dword [esp + 0x4c0]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x78], dx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c544
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x4a8
ret 0x10