Function at 0x10001930
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x10014c28
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001b030]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x70], 0
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x70], 1
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x70], 2
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
add eax, 0x10
mov dword [esp + 0x78], eax
mov byte [esp + 0x70], 3
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x70], 4
mov eax, dword [0x1001c28c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1001c28c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x38
lea eax, [esp + 0x34]
push 0
push eax
mov byte [esp + 0x7c], 5
call fcn.1000a450
mov dword [esp + 0x38], 0x3c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
add esp, 0xc
or eax, ecx
jge 0x10001a3f
mov ecx, 0x400
lea eax, [esp + 0x24]
call fcn.10001260
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x400
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x10001a75
mov ecx, 0x400
lea eax, [esp + 0x18]
call fcn.10001260
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x40], 0x400
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x10001aab
mov ecx, 0x400
lea eax, [esp + 0x14]
call fcn.10001260
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], 0x400
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x10001ae1
mov ecx, 0x400
lea eax, [esp + 0x78]
call fcn.10001260
mov edx, dword [esp + 0x78]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x400
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x400
or eax, ecx
jge 0x10001b13
mov ecx, 0x400
lea eax, [esp + 0x20]
call fcn.10001260
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0x400
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x10001b45
mov ecx, 0x400
lea eax, [esp + 0x1c]
call fcn.10001260
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [esp + 0x7c], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
cmp eax, dword [esi - 8]
jg 0x10001f4d
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x10001f4d
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x10001f4d
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
mov ecx, dword [esp + 0x78]
cmp eax, dword [ecx - 8]
jg 0x10001f4d
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
cmp eax, dword [ebx - 8]
jg 0x10001f4d
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.10008e5d
add esp, 8
test eax, eax
jl 0x10001f4d
cmp eax, dword [edi - 8]
jg 0x10001f4d
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
cmp dword [esp + 0x7c], edx
je 0x10001e71
cmp dword [esp + 0x38], 3
jne 0x10001e71
cmp dword [ebp + 0x1c], edx
jne 0x10001cbe
push 0x10000000
push edx
push edx
push edx
push str.yewj_http_async
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x10001e71
push ebp
mov esi, eax
call fcn.10001450
mov eax, dword [ebp + 0x1c]
push 0x10001410
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov esi, dword [esp + 0x24]
cmp dword [ebp + 0x1c], 0
je 0x10001e71
mov esi, ebp
call fcn.10001900
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [ebp + 0x10]
push edx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x10001cf6
mov ecx, dword [esp + 0x78]
cmp dword [ecx - 0xc], 0
jne 0x10001cf8
xor ecx, ecx
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x1c]
push 0
push 3
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
je 0x10001d23
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10001d4f
call ebx
cmp eax, 0x3e5
jne 0x10001dd4
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
cmp eax, 2
jne 0x10001dd4
mov esi, dword [ebp + 0x20]
push ebp
call fcn.10001450
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.10002060
add esp, 0xc
mov byte [esp + 0x70], 6
mov eax, dword [ebp + 0xc]
push eax
call edi
mov ecx, dword [ebp + 0x10]
push ecx
call edi
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x20]
push edx
push 0x84000000
push 0x1001c050
push 0
push 0
push eax
push 0x10017e38
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
je 0x10001dad
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x24], 0
jne 0x10001e0e
call ebx
cmp eax, 0x3e5
jne 0x10001dcb
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
cmp eax, 2
je 0x10001e0e
lea eax, [esp + 0x28]
call fcn.10001240
lea eax, [esp + 0x1c]
call fcn.10001240
lea eax, [esp + 0x20]
call fcn.10001240
lea eax, [esp + 0x78]
call fcn.10001240
lea eax, [esp + 0x14]
call fcn.10001240
lea eax, [esp + 0x18]
call fcn.10001240
lea eax, [esp + 0x24]
call fcn.10001240
xor eax, eax
jmp 0x10001e5b
mov esi, dword [ebp + 0x24]
push ebp
call fcn.10001450
lea eax, [esp + 0x28]
call fcn.10001240
lea eax, [esp + 0x1c]
call fcn.10001240
lea eax, [esp + 0x20]
call fcn.10001240
lea eax, [esp + 0x78]
call fcn.10001240
lea eax, [esp + 0x14]
call fcn.10001240
lea eax, [esp + 0x18]
call fcn.10001240
lea eax, [esp + 0x24]
call fcn.10001240
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
add edi, 0xfffffff0
mov byte [esp + 0x70], 4
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001e92
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x70], 3
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10001eb3
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001f22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001f46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x10001e5b
push 0x80070057
call fcn.100013f0
int3