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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8358
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea eax, [ebx + 0x20]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x51be1c
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x51bca1
push 3
push 0x5cc160
call fcn.0040c1c0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51bcbd
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51bced
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
push 0x3c
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00559380
mov dword [ebp - 0x8c], 0x3c
mov ecx, 1
mov eax, dword [edi - 8]
add esp, 0xc
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x51bd3f
push 0x104
lea ecx, [ebp - 0x28]
call fcn.0040c110
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x7c], edi
mov ecx, 1
mov dword [ebp - 0x78], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x51bd6d
push 0x400
lea ecx, [ebp - 0x2c]
call fcn.0040c110
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x60], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x5c], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x30], eax
push edi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x51c395
cmp eax, dword [edi - 8]
jg 0x51c395
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x51c395
cmp eax, dword [esi - 8]
jg 0x51c395
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], ecx
jne 0x51be40
mov byte [ebp - 4], cl
add esi, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51bdfe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51be1c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x51be5f
mov byte [ebp - 4], al
jmp 0x51bde2
mov eax, dword [ebx + 0x1c]
cmp dword [eax - 0xc], 0
je 0x51bede
push 0xc
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0x26
push ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 3
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x51bedb
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51beac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51beca
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
jmp 0x51be1c
mov ecx, dword [ebp - 0x1c]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x74]
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x51be8c
push 1
push 0x680000
push 0
push 0
push 0
push esi
push dword [ebx + 0x24]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x51bf6d
add esi, 0xfffffff0
mov byte [ebp - 4], al
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51bf38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51bf56
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
jmp 0x51be1c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x28]
call fcn.0051b650
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x30]
je 0x51bf8a
mov edx, dword [ebx + 0x30]
jmp 0x51bf8c
xor edx, edx
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push dword [eax - 0xc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
or ebx, 0xffffffff
test eax, eax
jne 0x51bfc6
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x51c334
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3c], 0
je 0x51c0d0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51bfef
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x34], 0x100
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x100
or eax, ecx
jge 0x51c02b
push 0x100
lea ecx, [ebp - 0x30]
call fcn.0040c110
mov ebx, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x13
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [ebx - 8]
mov dword [ebp - 0x10], eax
push ebx
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x51c395
cmp eax, dword [ebx - 8]
jg 0x51c395
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x10], ecx
jne 0x51c086
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x51c314
push ebx
call fcn.00553b32
add esp, 4
cmp eax, 0x12d
je 0x51c14b
cmp eax, 0x12e
je 0x51c14b
cmp eax, 0x12f
je 0x51c14b
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c0d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c0f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c10d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51c12b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 4
mov byte [ebp - 0x40], 0
call fcn.00551c81
add esp, 4
test eax, eax
je 0x51c39f
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x51c3a1
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51c167
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov edx, 1
mov dword [ebp - 0x38], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x51c1a4
push 0x400
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0x21
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
push dword [ecx - 8]
push ecx
call fcn.00551cd2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x51c395
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x51c395
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x3c], edx
je 0x51c2e0
cmp dword [eax - 0xc], edx
je 0x51c2e0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b7d0
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.0051bc40
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51c24e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c26e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c28e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c2ab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51c2c9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51c2fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c31e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c33e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c35b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51c379
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
jmp 0x51be1c
push 0x80070057
call fcn.0040c390
xor eax, eax
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0051c4d0
push 4
mov byte [ebp - 0x40], 0
call fcn.00551c81
add esp, 4
test eax, eax
je 0x51c3c8
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x51c3ca
xor eax, eax
push dword [ebp - 0x40]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.0051c4d0
push 4
mov byte [ebp - 0x40], 0
call fcn.00551c81
add esp, 4
test eax, eax
je 0x51c3f1
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x51c3f3
xor eax, eax
push dword [ebp - 0x40]
lea esi, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.0051c4d0
sub esp, 8
mov ecx, esp
push esi
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.0040ac70
sub esp, 8
mov ecx, esp
push edi
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.0040ac70
sub esp, 8
mov ecx, esp
push ebx
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.0040ac70
mov ecx, dword [ebp + 8]
call fcn.0051afc0
mov eax, dword [ebp + 8]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4