Function at 0x425550
Capabilities:
Check if file exists
Connect to http server
Create directory
Create http request
Download and write a file
Get file attributes
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576e4c
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x5ef2a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4a4], eax
mov byte [ebp - 0x491], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x425b03
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4255c4
sub ecx, edx
sar ecx, 1
je 0x425b03
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4255f0
push eax
call edi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x425601
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x425612
push eax
call edi
mov dword [esi + 0xc], 0
push 0
push 0
push 0
push 0
push 0x5d35c4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x425647
push 0x5e37b4
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x4e0], 1
push eax
call fcn.0053d5d3
xor eax, eax
mov dword [ebp - 0x498], 0x50
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x460]
mov ecx, ebx
push eax
lea edx, [ebp - 0x448]
call fcn.00423cb0
mov ecx, dword [ebp - 0x498]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x4256bb
mov byte [esi + 8], 1
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push 0
cmovae eax, dword [ebp - 0x448]
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [esi + 0x10], edx
test edx, edx
jne 0x425708
push 0x5e37b4
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4dc], 2
push eax
call fcn.0053d5d3
cmp byte [esi + 8], 0
mov eax, 0x80802000
push 0
mov ecx, SysReAllocString
cmovne ecx, eax
cmp dword [ebp - 0x44c], 8
push ecx
push 0
push 0
push 0x5d35f8
lea eax, [ebp - 0x460]
cmovae eax, dword [ebp - 0x460]
push eax
push 0x5d360c
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x425768
push 0x5e37b4
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4bc], 1
push eax
call fcn.0053d5d3
lea eax, [ebp - 0x490]
push eax
lea ecx, [esi + 0x18]
call fcn.00428370
mov byte [ebp - 4], 3
lea eax, [ebp - 0x490]
cmp dword [ebp - 0x47c], 0x10
push 0xa0000000
push dword [ebp - 0x480]
cmovae eax, dword [ebp - 0x490]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0
push 0
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4257d4
push 0x5e37b4
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], 3
push eax
call fcn.0053d5d3
push 0x400
lea eax, [ebp - 0x417]
mov byte [ebp - 0x418], 0
push 0
push eax
call fcn.0053f0c0
add esp, 0xc
mov dword [ebp - 0x49c], 0x400
mov ecx, esi
call fcn.004261f0
mov dword [esi + 4], eax
cmp eax, 0x194
jne 0x425827
push 0x5e37b4
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4cc], 5
push eax
call fcn.0053d5d3
push 0
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x418]
push eax
push 5
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x425861
push 0x5e37b4
lea eax, [ebp - 0x4d4]
mov dword [ebp - 0x4d4], 4
push eax
call fcn.0053d5d3
mov eax, dword [ebp - 0x49c]
cmp eax, 0x401
jae 0x425afe
mov byte [ebp + eax - 0x418], 0
lea eax, [ebp - 0x418]
push eax
call fcn.005454ed
movsd xmm0, qword [0x5d37f0]
add esp, 4
fstp qword [ebp - 0x4b8]
movsd xmm1, qword [ebp - 0x4b8]
comisd xmm0, xmm1
cvttsd2si eax, xmm1
ja 0x4258ae
mov eax, 0x1000
push eax
mov dword [ebp - 0x498], eax
call fcn.0053f188
add esp, 4
lea ecx, [ebp - 0x478]
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x4ac], ebx
push dword [ebp - 0x4a4]
call fcn.00423870
mov byte [ebp - 4], 4
lea esp, [esp]
push edi
push 0x5d3620
lea ecx, [ebp - 0x478]
call fcn.004238d0
mov edi, eax
cmp edi, 0xffffffff
je 0x425958
push edi
push 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x478]
call fcn.00423c70
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42594a
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
push 0
cmovae eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x430]
inc edi
call fcn.00424b40
jmp 0x4258e0
cmp dword [ebp - 0x464], 8
lea eax, [ebp - 0x478]
push 0x5d3548
cmovae eax, dword [ebp - 0x478]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.0053ebd2
add esp, 0xc
cmp dword [ebp - 0x4a0], 0
jne 0x4259a5
push 0x5e37b4
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b0], 7
push eax
call fcn.0053d5d3
mov edi, dword [ebp - 0x498]
xorps xmm0, xmm0
movsd qword [ebp - 0x4a8], xmm0
lea eax, [ebp - 0x49c]
push eax
push edi
push ebx
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425a68
mov eax, dword [ebp - 0x49c]
test eax, eax
je 0x425a68
push dword [ebp - 0x4a0]
push 1
push eax
push ebx
call fcn.0053fef6
add esp, 0x10
test eax, eax
jne 0x425a0f
push 0x5e37b4
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4d0], 0xf
push eax
call fcn.0053d5d3
mov eax, dword [ebp - 0x49c]
mov ecx, dword [esi + 0x74]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5d3800]
addsd xmm0, qword [ebp - 0x4a8]
movsd qword [ebp - 0x4a8], xmm0
test ecx, ecx
je 0x4259b6
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x4b8]
movsd qword [esp], xmm0
push 0
push dword [esi + 0x70]
call dword [eax]
jmp 0x4259b6
push dword [ebp - 0x4a0]
call fcn.0053ed52
movsd xmm0, qword [ebp - 0x4a8]
add esp, 4
movsd xmm1, qword [ebp - 0x4b8]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x425aab
push 0x5e37b4
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], 8
push eax
call fcn.0053d5d3
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x425ac9
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push 2
push dword [esi + 0x70]
call dword [eax]
lea ecx, [ebp - 0x478]
mov byte [ebp - 0x491], 1
call fcn.00424b40
lea ecx, [ebp - 0x490]
call fcn.00420f60
lea ecx, [ebp - 0x460]
call fcn.00424b40
lea ecx, [ebp - 0x448]
call fcn.00424b40
jmp 0x425b5f
call fcn.00543338
push 0x5e37b4
lea eax, [ebp - 0x4d8]
mov dword [ebp - 0x4d8], 6
push eax
call fcn.0053d5d3
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [edx + 0x74]
mov dword [edx + 0x78], eax
test ecx, ecx
je 0x425b47
mov eax, dword [ecx]
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
push 1
push dword [edx + 0x70]
call dword [eax]
mov eax, 0x425b4d
ret
test ebx, ebx
je 0x425b6c
push ebx
call fcn.0053f150
add esp, 4
mov ecx, dword [ebp - 0x4a0]
test ecx, ecx
je 0x425b7f
push ecx
call fcn.0053ed52
add esp, 4
mov al, byte [ebp - 0x491]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053d5c4
mov esp, ebp
pop ebp
ret 8