Function at 0x1004b310
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102dd83b
mov eax, dword fs:[0]
push eax
mov eax, 0x1780
mov dword fs:[0], esp
call fcn.102d97f0
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x1c], eax
push edi
mov edi, edx
mov dword [ebp - 0x18], edi
test eax, eax
je 0x1004b592
cmp byte [eax], 0
je 0x1004b592
lea ecx, [ebp - 0x1388]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1788]
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push eax
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x50], 0x400
mov dword [ebp - 0x34], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x1004b592
movzx eax, word [ebp - 0x4c]
push 0x3c
mov dword [ebp - 0x10], eax
call fcn.102d8574
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
call fcn.100536c0
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 1
call fcn.100536c0
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 2
call fcn.100536c0
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 3
call fcn.100536c0
mov dword [ebx + 0x34], 0
or edx, 0xffffffff
mov dword [ebx + 0x38], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x1c], 0
mov word [ebx + 0x20], 0
mov esi, dword [ebx + 0x38]
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
test esi, esi
je 0x1004b468
mov eax, edx
lock xadd dword [esi + 4], eax
jne 0x1004b468
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or edx, 0xffffffff
mov eax, edx
lock xadd dword [esi + 8], eax
jne 0x1004b468
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
or edx, 0xffffffff
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
je 0x1004b496
lock inc dword [eax + 4]
mov esi, dword [ebx + 0x38]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], ecx
test esi, esi
je 0x1004b4c9
mov eax, edx
lock xadd dword [esi + 4], eax
jne 0x1004b4c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1004b4c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
cmp dword [0x1038f658], 0x10
mov ecx, 0x1038f644
mov dword [ebp - 0x20], 4
cmovae ecx, dword [0x1038f644]
xor edx, edx
test al, al
setne dl
xor esi, esi
test al, al
cmovne esi, dword [ebp - 0x20]
cmp dword [esi + 0x103c05ac], 0
jne 0x1004b53a
push 0x10000000
push 0
push 0
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x103c05ac], eax
test eax, eax
je 0x1004b53a
push 0x1004b140
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackA]
cmp eax, 0xffffffff
jne 0x1004b53a
mov dword [esi + 0x103c05ac], 0
mov eax, dword [esi + 0x103c05ac]
mov dword [ebx], eax
test eax, eax
je 0x1004b580
push ebx
push 0
push 3
push 0
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1388]
mov dword [ebx + 0x1c], 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x1004b5ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1004b5a5
mov dword [ebx + 4], esi
mov ecx, ebx
call fcn.1004abd0
push 0x3c
push ebx
call fcn.102d85a9
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
call fcn.100537d0
mov ecx, dword [ebx + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 2
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
call esi
push 4
lea eax, [ebp - 0x14]
push eax
push 6
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
test eax, eax
je 0x1004b580
xor esi, esi
mov eax, 0x800000
cmp dword [ebp - 0x58], 4
mov dword [ebx + 0x1c], 1
mov ecx, dword [edi]
cmove esi, eax
mov eax, dword [ecx]
call dword [eax + 0x20]
push ebx
or esi, 0x84000200
lea ecx, [ebp - 0x1788]
push esi
push 0
push 0
push 0
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 8], eax
test eax, eax
jne 0x1004b63b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1004b580
lea ecx, [ebx + 0x10]
call fcn.100537d0
push 0x400
lea eax, [ebp - 0x468]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1004b756
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jne 0x1004b68e
push str.Content_Type:_text_html_n_n
lea eax, [ebp - 0xf88]
push 0x400
push eax
call fcn.10056640
add esp, 0xc
jmp 0x1004b6af
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
push str.Content_Type:__s_n_n
lea eax, [ebp - 0xf88]
push 0x400
push eax
call fcn.10056640
add esp, 0x10
lea eax, [ebp - 0x468]
cmp byte [eax], 0
lea ecx, [ebp - 0x69]
je 0x1004b6c4
inc eax
cmp eax, ecx
jbe 0x1004b6b5
jmp 0x1004b6eb
cmp eax, ecx
ja 0x1004b6eb
lea edx, [ebp - 0x69]
lea ecx, [ebp - 0xf88]
cmp eax, edx
jae 0x1004b6e8
mov dl, byte [ecx]
lea ecx, [ecx + 1]
test dl, dl
je 0x1004b6e8
mov byte [eax], dl
inc eax
lea edx, [ebp - 0x69]
cmp eax, edx
jb 0x1004b6d5
mov byte [eax], 0
mov edi, dword [ebp - 0x20]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1004b6f1
sub edi, ecx
lea eax, [ebp - 0xf88]
push edi
push str.Content_Length:__d_n
push 0x400
push eax
call fcn.10056640
add esp, 0x10
lea eax, [ebp - 0x468]
nop word [eax + eax]
cmp byte [eax], 0
lea ecx, [ebp - 0x69]
je 0x1004b72f
inc eax
cmp eax, ecx
jbe 0x1004b720
jmp 0x1004b756
cmp eax, ecx
ja 0x1004b756
lea edx, [ebp - 0x69]
lea ecx, [ebp - 0xf88]
cmp eax, edx
jae 0x1004b753
mov dl, byte [ecx]
lea ecx, [ecx + 1]
test dl, dl
je 0x1004b753
mov byte [eax], dl
inc eax
lea edx, [ebp - 0x69]
cmp eax, edx
jb 0x1004b740
mov byte [eax], 0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [eax + 8]
mov eax, edx
and eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x1004b77c
mov eax, dword [ecx]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1004b7f6
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jg 0x1004b580
jl 0x1004b79a
cmp edx, eax
ja 0x1004b580
push dword [ebp - 0x14]
push eax
push ecx
push edx
push str.Range:_bytes_lld__lld_n
lea eax, [ebp - 0xf88]
push 0x400
push eax
call fcn.10056640
add esp, 0x1c
lea eax, [ebp - 0x468]
nop
cmp byte [eax], 0
lea ecx, [ebp - 0x69]
je 0x1004b7cf
inc eax
cmp eax, ecx
jbe 0x1004b7c0
jmp 0x1004b7f6
cmp eax, ecx
ja 0x1004b7f6
lea edx, [ebp - 0x69]
lea ecx, [ebp - 0xf88]
cmp eax, edx
jae 0x1004b7f3
mov dl, byte [ecx]
lea ecx, [ecx + 1]
test dl, dl
je 0x1004b7f3
mov byte [eax], dl
inc eax
lea edx, [ebp - 0x69]
cmp eax, edx
jb 0x1004b7e0
mov byte [eax], 0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x1004b9dd
cmp byte [ecx], 0
je 0x1004b9dd
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1004b9dd
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b826
sub ecx, edx
lea edx, [ecx + 1]
mov dword [ebp - 0xb88], edx
cmp edx, 0x12c
ja 0x1004b848
lea eax, [ebp - 0xb80]
jmp 0x1004b869
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.102d8db3
mov edx, dword [ebp - 0xb88]
add esp, 4
sub esp, 0xc
mov dword [ebp - 0xb84], eax
mov ecx, eax
push dword [ebp - 0x10]
call fcn.100567f0
add esp, 0x10
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb84]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1004b8ae
mov edx, 1
lea eax, [ebp - 0x6c0]
mov dword [ebp - 0x6c8], edx
jmp 0x1004b8f6
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b8b3
sub ecx, edx
lea edx, [ecx + 1]
mov dword [ebp - 0x6c8], edx
cmp edx, 0x12c
ja 0x1004b8d5
lea eax, [ebp - 0x6c0]
jmp 0x1004b8f6
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.102d8db3
mov edx, dword [ebp - 0x6c8]
add esp, 4
sub esp, 0xc
mov dword [ebp - 0x6c4], eax
mov ecx, eax
push dword [ebp - 0x10]
call fcn.100567f0
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x10], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004b920
sub ecx, edx
lea edx, [ecx + 1]
mov dword [ebp - 0x928], edx
cmp edx, 0x12c
ja 0x1004b942
lea eax, [ebp - 0x920]
jmp 0x1004b963
xor ecx, ecx
mov eax, edx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.102d8db3
mov edx, dword [ebp - 0x928]
add esp, 4
sub esp, 0xc
mov dword [ebp - 0x924], eax
mov ecx, eax
push dword [ebp - 0x1c]
call fcn.100567f0
add esp, 0x10
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x924]
call dword [sym.imp.WININET.dll_InternetSetCookieW]
mov eax, dword [ebp - 0x924]
lea ecx, [ebp - 0x920]
cmp eax, ecx
je 0x1004b9a4
push eax
call fcn.102d8dbc
add esp, 4
mov eax, dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6c0]
cmp eax, ecx
je 0x1004b9bd
push eax
call fcn.102d8dbc
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb80]
mov eax, dword [ebp - 0xb84]
cmp eax, ecx
je 0x1004b9dd
push eax
call fcn.102d8dbc
add esp, 4
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x1004ba9d
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [eax]
mov ecx, dword [ecx]
mov esi, dword [esi]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], esi
call dword [eax + 0x10]
cmp esi, dword [eax]
je 0x1004ba9a
mov ebx, dword [ebp - 0x18]
nop
cmp dword [esi + 0x3c], 0x10
lea eax, [esi + 0x28]
jb 0x1004ba1b
mov eax, dword [eax]
add esi, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x1004ba26
mov esi, dword [esi]
push eax
push esi
push str._s:__s_n
lea eax, [ebp - 0xf88]
push 0x400
push eax
call fcn.10056640
add esp, 0x14
lea eax, [ebp - 0x468]
cmp byte [eax], 0
lea ecx, [ebp - 0x69]
je 0x1004ba56
inc eax
cmp eax, ecx
jbe 0x1004ba47
jmp 0x1004ba7d
cmp eax, ecx
ja 0x1004ba7d
lea edx, [ebp - 0x69]
lea ecx, [ebp - 0xf88]
cmp eax, edx
jae 0x1004ba7a
mov dl, byte [ecx]
lea ecx, [ecx + 1]
test dl, dl
je 0x1004ba7a
mov byte [eax], dl
inc eax
lea edx, [ebp - 0x69]
cmp eax, edx
jb 0x1004ba67
mov byte [eax], 0
lea ecx, [ebp - 0x1c]
call fcn.1001b8d0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x1c]
cmp esi, dword [eax]
jne 0x1004ba10
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x468]
push 0xffffffffffffffff
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1004bac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1004b580
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x1004badc
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret