Function at 0x45c660
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4dc418
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.004c4260
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x1048], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x1060]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1074]
mov ebx, dword [esp + 0x1070]
mov ebp, dword [esp + 0x1078]
mov esi, edx
push str.____________________Entrance____________________
lea edx, [esp + 0x28]
lea edi, [esi + 4]
push edx
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], str.GetSync
call fcn.00471a00
add esp, 0xc
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x1070], 0
mov edx, dword [ebp]
mov eax, dword [ebx]
push edx
push eax
push str.strRequestURL_s__bStop_d__parResponse_d__bSaveToFile_d
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.004719c0
add esp, 0x1c
push 0
push ebp
mov ecx, esi
call fcn.0045e280
mov edi, eax
test edi, edi
jne 0x45c807
cmp dword [ebp], eax
jne 0x45c79e
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4f23a8
call fcn.00405a00
lea ecx, [esi + 0x54]
push ecx
mov ecx, 0x4e7868
mov byte [esp + 0x106c], 1
call fcn.004606b0
add esp, 4
test al, al
jne 0x45c75d
cmp dword [esi + 0x48], 0
je 0x45c76b
mov edx, str.POST
lea edi, [esp + 0x1c]
call fcn.00405c20
call fcn.0045dd30
cmp dword [ebp], 0
je 0x45c7c5
mov byte [esp + 0x1068], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45c79e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x28]
mov dword [esp + 0x106c], 0xffffffff
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
jmp 0x45cae0
mov dword [esp + 0x18], 0
push 0
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
mov byte [esp + 0x1080], 2
call fcn.0045e500
mov edi, eax
test edi, edi
je 0x45c830
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45c7fe
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x1c]
call fcn.00405f50
push str.______________________Exit______________________
lea edx, [esp + 0x28]
mov dword [esp + 0x106c], 0xffffffff
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov eax, edi
jmp 0x45cae2
cmp dword [ebp], 0
jne 0x45caba
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x24], ecx
push eax
mov ecx, esi
call fcn.0045cbb0
lea ebx, [esi + 0x58]
mov edi, ebx
mov byte [esp + 0x1068], 3
call fcn.004082a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1068], 2
call fcn.00405f50
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], edi
call fcn.0045dab0
test al, al
jne 0x45c8bc
lea esi, [esp + 0x18]
call fcn.0047e3d0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea eax, [esp + 0x24]
mov dword [esp + 0x1068], 0xffffffff
call fcn.0042e9b0
mov eax, 0xb
jmp 0x45cae2
lea edx, [esp + 0x34]
mov dword [esp + 0x34], edi
push edx
mov edi, esi
call fcn.0045ce20
xor esi, esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x1068], 4
cmp dword [ebp], esi
jne 0x45cab1
cmp dword [esp + 0x107c], esi
je 0x45c957
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x45c957
mov edx, 0x4ed124
mov edi, ebx
call fcn.00405c20
lea esi, [esp + 0x20]
call fcn.0045b880
lea esi, [esp + 0x18]
call fcn.0047e3d0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea eax, [esp + 0x24]
mov dword [esp + 0x1068], 0xffffffff
call fcn.0042e9b0
mov eax, 0xd
jmp 0x45cae2
push 0x1000
lea ecx, [esp + 0x59]
push esi
push ecx
mov dword [esp + 0x38], esi
mov byte [esp + 0x60], 0
call fcn.004ab3f0
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov ecx, 0x4ed100
call fcn.00460540
mov edi, dword [esp + 0x38]
mov edx, 0x4e7868
mov byte [esp + 0x1068], 5
call fcn.00405c20
jmp 0x45c9a0
cmp dword [ebp], esi
jne 0x45caa8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push 0x1000
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x45cb6d
mov eax, dword [esp + 0x2c]
cmp eax, esi
jbe 0x45ca77
cmp eax, 0x1000
jbe 0x45c9e4
xor eax, eax
mov dword [esp + 0x2c], eax
mov byte [esp + eax + 0x54], 0
cmp dword [ebp], esi
jne 0x45caa8
lea edx, [esp + 0x54]
cmp dword [esp + 0x107c], esi
jne 0x45cb0c
lea eax, [esp + 0x30]
push eax
call fcn.00462060
mov ebx, dword [esp + 0x3c]
cmp ebx, esi
je 0x45ca71
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov byte [esp + 0x1068], 6
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x44]
call fcn.00461da0
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
call fcn.004adad0
add esp, 0xc
lea eax, [esp + 0x44]
call fcn.00461af0
mov byte [esp + 0x1068], 5
test edi, edi
je 0x45ca6f
push edi
call fcn.004a594c
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x45c9a0
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
call fcn.00477160
add esp, 4
mov edi, dword [esp + 0x38]
mov byte [esp + 0x1068], 7
call fcn.004082a0
lea ecx, [esp + 0x40]
call fcn.00405f50
lea eax, [esp + 0x30]
call fcn.00452320
lea esi, [esp + 0x20]
call fcn.0045b880
lea esi, [esp + 0x18]
call fcn.0047e3d0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea eax, [esp + 0x24]
mov dword [esp + 0x1068], 0xffffffff
call fcn.0042e9b0
xor eax, eax
mov ecx, dword [esp + 0x1060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1048]
xor ecx, esp
call fcn.004a52a5
add esp, 0x1058
ret 0x10
push esi
lea ecx, [esp + 0x38]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45ca71
lea eax, [esp + 0x30]
call fcn.00452320
lea esi, [esp + 0x20]
call fcn.0045b880
lea esi, [esp + 0x18]
call fcn.0047e3d0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea eax, [esp + 0x24]
mov dword [esp + 0x1068], 0xffffffff
call fcn.0042e9b0
mov eax, 0xe
jmp 0x45cae2
lea eax, [esp + 0x30]
call fcn.00452320
lea esi, [esp + 0x20]
call fcn.0045b880
lea esi, [esp + 0x18]
call fcn.0047e3d0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea eax, [esp + 0x24]
mov dword [esp + 0x1068], 0xffffffff
call fcn.0042e9b0
mov eax, 0xc
jmp 0x45cae2