Function at 0x603d40
Capabilities:
Check if file exists
Create http request
Delete file
Download and write a file
Get http content length
Move file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7c1396
mov eax, dword fs:[0]
push eax
mov eax, 0xa10c
call fcn.00725f60
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0xa108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0xa120]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa130]
mov eax, dword [esp + 0xa140]
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
push ebp
push ebp
push ebp
push ebp
push str.Download_From_HTTP
mov dword [esp + 0xa13c], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp ebx, ebp
jne 0x603e2d
push 0x830150
mov ecx, esi
call fcn.004068d0
mov eax, dword [esp + 0xa134]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa128], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x603df6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa138]
add eax, 0xfffffff0
mov dword [esp + 0xa128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x604105
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x604105
mov ecx, 8
mov esi, str.Accept:___r_n_r_n
lea edi, [esp + 0x34]
lea eax, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x603e44
push ebp
sub eax, edx
mov edx, dword [esp + 0xa138]
push SysReAllocString
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebp
jne 0x603e84
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x18]
jmp 0x603dbf
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebp
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x20000005
push esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 4
mov dword [esp + 0x34], ebp
call edi
cmp eax, ebp
jne 0x603eb5
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x14], ebp
je 0x603f07
push 0xc6
lea ecx, [esp + 0x5a]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x60], ax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 1
push esi
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x44], ebp
call edi
cmp eax, ebp
je 0x603f07
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x54]
push edx
call fcn.00406890
mov eax, dword [esp + 0xa138]
add eax, 0xfffffff0
push eax
call fcn.00405cc0
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], ebp
cmp dword [esp + 0xa13c], 0
mov byte [esp + 0xa128], 2
je 0x603fbc
lea eax, [esp + 0x1c]
push eax
call fcn.00603c90
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa12c], 3
call fcn.00404210
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xa128], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x603f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x603fb8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x603fb8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x18]
push 0x830150
mov ecx, esi
call fcn.004068d0
jmp 0x6040e4
mov ebp, dword [esp + 0x14]
push 0x8090e8
push ebp
call fcn.0072b299
mov edi, eax
add esp, 8
test edi, edi
jne 0x60400d
mov esi, dword [esp + 0x18]
push 0x830150
mov ecx, esi
call fcn.004068d0
lea eax, [ebp - 0x10]
mov byte [esp + 0xa128], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x603dcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x603dcb
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x20]
push ecx
push 0xa000
lea edx, [esp + 0x124]
push edx
push esi
call ebp
test eax, eax
je 0x60406f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push edi
test eax, eax
je 0x60408d
push eax
lea eax, [esp + 0x124]
push 1
push eax
call fcn.0072b81c
add esp, 0x10
push 1
call ebx
lea ecx, [esp + 0x20]
push ecx
push 0xa000
lea edx, [esp + 0x124]
push edx
push esi
call ebp
test eax, eax
jne 0x604032
mov ebx, dword [esp + 0x24]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov esi, dword [esp + 0x18]
push 0x830150
mov ecx, esi
call fcn.004068d0
jmp 0x6040e4
call fcn.0072ab63
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
cmp dword [esp + 0xa13c], 0
je 0x6040d1
mov ecx, dword [esp + 0xa138]
mov esi, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x603fa3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xa138]
push edx
mov ecx, esi
call fcn.00405d50
lea ecx, [esp + 0x14]
call fcn.00405ef0
lea ecx, [esp + 0xa134]
call fcn.00405ef0
lea ecx, [esp + 0xa138]
call fcn.00405ef0
mov eax, esi
mov ecx, dword [esp + 0xa120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa108]
xor ecx, esp
call fcn.0071fe0b
add esp, 0xa118
ret