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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
add ecx, eax
lea ebx, [esp + 0x40]
mov dword [ebx], 1
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov word [ebx + 0xc], 0
lea edi, [esp + 0x90]
push ebx
push edi
call fcn.10003ad4
add esp, 8
mov eax, dword [edi + 4]
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10004931
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
push 0
push esi
call fcn.1005817c
add esp, 8
mov dword [esp], eax
mov edi, edx
push esi
push dword [ebp + 0xc]
push edx
call fcn.100e9d70
add esp, 0xc
mov eax, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 4], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
push 3
push str.:__src_net.rs
push esi
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.100d8f30
add esp, 0x14
lea edi, [esp + 0x20]
mov ecx, edi
mov edx, ebx
call fcn.100042df
cmp dword [edi], 0
je 0x1000495b
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10004a04
mov ebx, dword [ebp + 0x10]
cmp edi, ebx
mov ecx, dword [esp + 4]
jae 0x10004a19
cmp byte [esi + edi], 0xbf
jle 0x10005332
mov dword [esp], edi
jmp 0x10004a24
call fcn.100c3d80
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], eax
push ebx
call fcn.10042520
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
xor ebx, ebx
jmp 0x100052e9
lea eax, [esp + 0x84]
lea esi, [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], 0x1008cc50
mov dword [esp + 0x40], 0x10102da4
xor eax, eax
inc eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], eax
lea edi, [esp + 0xd8]
push ebx
push edi
call fcn.100cf940
add esp, 8
lea ebx, [esp + 0x30]
push ebx
call fcn.10001480
add esp, 4
push ebx
call fcn.1005a250
add esp, 4
movsd xmm0, qword [edi]
movsd qword [ebx], xmm0
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
push 3
push str.:__src_net.rs
push eax
push dword [ebx + 4]
lea ebx, [esp + 0x50]
push ebx
call fcn.100d8f30
add esp, 0x14
mov ecx, esi
mov edx, ebx
call fcn.100042df
mov edi, dword [esi]
test edi, edi
je 0x100049ee
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, 0x10102d94
mov dword [esp], 5
jmp 0x10004a24
mov dword [esp], 0
mov edi, 3
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 4]
jmp 0x10004a29
jne 0x10005332
mov edi, ebx
mov dword [esp], ebx
add edi, 3
je 0x10004a4c
mov eax, ebx
sub eax, edi
mov dword [esp + 0xc], esi
jbe 0x10004a46
cmp byte [ecx + edi], 0xbf
jg 0x10004a48
push 0x10102dac
push ebx
push edi
push ebx
jmp 0x10005355
jne 0x10004a39
mov ebx, eax
jmp 0x10004a52
mov dword [esp + 0xc], esi
xor edi, edi
add edi, ecx
mov ecx, edi
mov edx, ebx
push 0x3a
call fcn.10003e07
add esp, 4
test eax, eax
mov dword [esp + 0x1c], edi
je 0x10004ab4
mov esi, edx
mov dword [esp + 8], edx
mov ecx, edi
mov edi, ebx
mov edx, ebx
push 0x2f
call fcn.10003e07
add esp, 4
test eax, eax
je 0x10004af1
test esi, esi
mov ecx, dword [esp + 0x1c]
je 0x10004bb6
cmp esi, edi
jae 0x10004bb0
mov eax, dword [esp + 8]
cmp byte [ecx + eax], 0xbf
jg 0x10004bb6
push 0x10102dd0
push dword [esp + 0xc]
jmp 0x10005352
mov dword [esp + 8], ebx
mov eax, dword [esp]
cmp eax, 5
jbe 0x10004b29
push 5
push 0x10102d94
push eax
mov esi, dword [esp + 0x18]
push esi
lea ebx, [esp + 0x50]
push ebx
call fcn.100d8f30
add esp, 0x14
lea ecx, [esp + 0x20]
mov edx, ebx
call fcn.100042df
lea eax, [esp + 0x20]
cmp dword [eax], 0
setne al
jmp 0x10004b3e
test esi, esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
je 0x10004b0f
cmp esi, edi
jae 0x10004c97
cmp byte [ecx + edx], 0xbf
jle 0x1000534c
inc esi
mov eax, edi
sub eax, esi
jbe 0x10004c47
cmp byte [ecx + esi], 0xbf
jg 0x10004c4f
jmp 0x10005341
push eax
mov esi, dword [esp + 0x10]
push esi
push 5
push 0x10102d94
call fcn.1005a98c
add esp, 0x10
test al, al
mov eax, 0x1bb
mov ecx, 0x50
cmovne ecx, eax
mov dword [esp + 4], ecx
mov ecx, edi
mov ebx, dword [esp + 8]
mov edx, ebx
push 0x2f
call fcn.10003e07
add esp, 4
test eax, eax
je 0x10004b9a
test edx, edx
je 0x10004c85
mov eax, dword [esp + 8]
mov ecx, eax
sub ecx, edx
jbe 0x10004cad
cmp byte [edi + edx], 0xbf
jle 0x1000535b
mov eax, edi
add eax, edx
mov dword [esp + 0x10], eax
mov edi, edx
mov dword [esp + 0x18], ecx
jmp 0x10004cc5
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x10102dcc
mov edi, ebx
jmp 0x10004cc5
jne 0x10004aa6
mov eax, edi
test edx, edx
je 0x10004bd6
mov eax, edi
sub eax, edx
jbe 0x10004bd4
cmp byte [ecx + edx], 0xbf
jg 0x10004bd6
push 0x10102de0
push edi
push edx
jmp 0x10005354
jne 0x10004bc8
mov dword [esp + 0x18], eax
inc esi
mov eax, edx
sub eax, esi
jb 0x10004c10
test esi, esi
je 0x10004bf3
cmp esi, edi
jae 0x10004bf1
cmp byte [ecx + esi], 0xc0
jge 0x10004bf3
jmp 0x10004c10
jne 0x10004c10
mov ebx, ecx
add ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, ebx
test edx, edx
je 0x10004c1e
cmp edi, edx
jbe 0x10004c1c
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0xbf
mov ecx, ebx
jg 0x10004c1e
push 0x10102df0
push edx
push esi
jmp 0x10005354
jne 0x10004c10
add ecx, esi
push eax
push ecx
call fcn.100dab60
add esp, 8
mov ecx, eax
shr ecx, 0x10
test al, 1
mov eax, 0x50
cmove eax, ecx
mov dword [esp + 4], eax
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
jmp 0x10004cc5
jne 0x10005341
mov esi, edi
mov edi, edx
add ecx, esi
push eax
push ecx
call fcn.100dab60
add esp, 8
mov ecx, eax
shr ecx, 0x10
test al, 1
mov eax, 0x50
cmove eax, ecx
mov dword [esp + 4], eax
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x10102dcc
mov esi, dword [esp + 0xc]
jmp 0x10004cc5
mov eax, edi
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
jmp 0x10004cc5
jne 0x1000534c
mov esi, edi
inc esi
jne 0x1000516e
xor eax, eax
dec eax
xor esi, esi
jmp 0x10004c51
jne 0x1000535b
mov ecx, edi
add ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov edi, eax
xor eax, eax
push eax
mov ebx, dword [esp + 4]
push ebx
mov dword [esp + 8], ebx
call fcn.1005817c
add esp, 8
mov dword [esp + 8], eax
mov dword [esp + 0xac], edx
push ebx
push esi
push edx
call fcn.100e9d70
add esp, 0xc
xor eax, eax
push eax
push edi
call fcn.1005817c
add esp, 8
mov dword [esp + 0xa8], eax
mov dword [esp + 0xc], edx
push edi
push dword [esp + 0x20]
push edx
call fcn.100e9d70
add esp, 0xc
xor eax, eax
push eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.1005817c
add esp, 8
mov dword [esp + 0x1c], eax
mov ebx, edx
push esi
push dword [esp + 0x14]
push edx
call fcn.100e9d70
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb4], eax
mov eax, dword [esp]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], edi
mov eax, dword [esp + 4]
mov word [esp + 0xd4], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], esi
lea esi, [esp + 0x30]
push esi
call fcn.10001480
add esp, 4
push esi
call fcn.1005a250
add esp, 4
mov eax, dword [esp + 0xc]
add edi, eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov word [esp + 0x4c], 0
lea esi, [esp + 0x9c]
lea ebx, [esp + 0x40]
push ebx
push esi
call fcn.10003ad4
add esp, 8
movzx eax, word [esp + 4]
xor ecx, ecx
push ecx
push eax
push dword [esi + 4]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
je 0x10004efc
mov edi, ebx
xor edx, edx
inc edx
mov dword [esp + 0x40], edx
mov esi, eax
mov eax, 0x10102e20
mov dword [esp + 0x44], eax
lea eax, [0x10102e23]
mov dword [esp + 0x48], eax
xor ebx, ebx
mov word [esp + 0x4c], bx
lea eax, [esp + 0x84]
push edi
push eax
call fcn.10003ad4
add esp, 8
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
add ecx, eax
xor edx, edx
inc edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], bx
push edi
lea eax, [esp + 0x34]
push eax
call fcn.10003ad4
add esp, 8
push 5
push 0x10102d94
push dword [esp + 0xc0]
push dword [esp + 0xc0]
call fcn.1005a98c
add esp, 0x10
movzx eax, al
shl eax, 0x17
or eax, 0x80
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x44]
lea eax, [esp + 0x98]
push dword [eax + 4]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test eax, eax
lea eax, [esp + 0x40]
mov ebx, dword [ebp + 0x1c]
je 0x10004f43
mov dword [esp + 4], esi
cmp dword [ebx], 0x80000000
sete al
mov dword [esp], eax
jne 0x10004f84
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, eax
jmp 0x10005018
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call fcn.100c3d80
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], eax
push ebx
call fcn.10042520
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
mov dword [esp], 0
lea edi, [esp + 0x90]
lea ebx, [esp + 0x9c]
jmp 0x100052c8
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push esi
mov esi, eax
call edi
push dword [esp + 0x14]
call edi
call fcn.100c3d80
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], eax
push esi
call fcn.10042520
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
mov al, 1
mov dword [esp], eax
jmp 0x10005278
mov eax, dword [ebx + 8]
lea ecx, [esp + 0xd8]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebx]
movsd qword [ecx], xmm0
mov ecx, dword [ecx + 4]
add eax, ecx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], 0
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x24]
push esi
call fcn.10003ad4
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub esp, 0x1c
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, eax
push esi
call fcn.10001480
add esp, 4
push esi
call fcn.1005a653
add esp, 4
lea esi, [esp + 0xd8]
push esi
call fcn.10001480
add esp, 4
push esi
call fcn.1005a250
add esp, 4
test ebx, ebx
je 0x100050e6
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100050e6
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x2c]
mov dword [eax], ebx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000512a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10005175
push eax
push ebx
lea eax, [esp + 0x48]
push eax
call fcn.1005a16c
add esp, 0xc
mov dword [esp + 0x80], ebx
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x30]
push dword [esp + 0x4c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000520d
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jb 0x10005326
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x28]
push eax
call fcn.1009b474
add esp, 0xc
lea esi, [esp + 0x40]
push esi
call fcn.10001480
add esp, 4
push esi
call fcn.1005a250
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
jmp 0x10005049
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call ebx
push dword [esp + 4]
call ebx
push dword [esp + 0x14]
call ebx
call fcn.100c3d80
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
call fcn.10042520
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
jmp 0x10005278
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call ebx
push dword [esp + 4]
call ebx
push dword [esp + 0x14]
call ebx
call fcn.100c3d80
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
call fcn.10042520
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
jmp 0x10005262
mov edx, edi
jmp 0x10004b10
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call ebx
push dword [esp + 4]
call ebx
push dword [esp + 0x14]
call ebx
movsd xmm0, qword [esp + 0x20]
mov esi, dword [ebp + 8]
movsd qword [esi], xmm0
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
lea edi, [esp + 0x30]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a653
add esp, 4
lea edi, [esp + 0x84]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a653
add esp, 4
lea edi, [esp + 0x9c]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a653
add esp, 4
lea ecx, [esp + 0xb0]
call fcn.10003da1
lea edi, [esp + 0x90]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a653
jmp 0x10005319
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call ebx
push dword [esp + 4]
call ebx
push dword [esp + 0x14]
call ebx
call fcn.100c3d80
lea ecx, [esp + 0xd8]
mov byte [ecx], 0
mov dword [ecx + 4], eax
push ecx
call fcn.10042520
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi], 0x80000000
lea edi, [esp + 0x40]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a250
add esp, 4
lea edi, [esp + 0x20]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a250
add esp, 4
lea edi, [esp + 0x90]
lea ebx, [esp + 0x9c]
lea eax, [esp + 0x30]
push eax
call fcn.10001480
add esp, 4
lea eax, [esp + 0x30]
push eax
call fcn.1005a653
add esp, 4
lea eax, [esp + 0x84]
push eax
call fcn.10001480
add esp, 4
lea eax, [esp + 0x84]
push eax
call fcn.1005a653
add esp, 4
mov eax, dword [esp]
xor al, 1
mov dword [esp], eax
push ebx
call fcn.10001480
add esp, 4
push ebx
call fcn.1005a653
add esp, 4
lea ecx, [esp + 0xb0]
call fcn.10003da1
mov ebx, dword [esp]
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a653
add esp, 4
test bl, bl
mov edi, dword [ebp + 0x1c]
jne 0x1000531c
cmp dword [edi], 0x80000000
je 0x1000531c
push edi
call fcn.10001480
add esp, 4
push edi
call fcn.1005a250
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10102e24
push ecx
push eax
call fcn.10101620
push 0x10102d84
push edi
push 0
push ebx
push esi
call fcn.10101780
push 0x10102e10
push edi
jmp 0x10004c16
push 0x10102e00
push edx
push 0
push edi
push ecx
call fcn.10101780
push 0x10102dbc
push eax
push edx
push eax
push edi
call fcn.10101780
int3