Function at 0x433100
Capabilities:
Check for time delay via gettickcount
Check http status code
Check if file exists
Create http request
Download and write a file
Get file size
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x450c5d
mov eax, dword fs:[0]
push eax
sub esp, 0x8d4
mov eax, dword [0x464630]
xor eax, esp
mov dword [esp + 0x8d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464630]
xor eax, esp
push eax
lea eax, [esp + 0x8e8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x10]
xor ebp, ebp
cmp esi, ebp
jne 0x43314d
xor al, al
jmp 0x433c71
push 0x7fe
lea ecx, [esp + 0xea]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov word [esp + 0xf0], ax
call fcn.0043ae00
xor eax, eax
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x94], 0
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov word [esp + 0xa1], ax
mov byte [esp + 0xa3], al
mov dword [esp + 0x40], ebp
mov dword [esp + 0x54], ebp
call fcn.00424e40
mov esi, 8
test al, al
jne 0x4331d9
mov esi, 1
jmp 0x4335e8
cmp dword [edi + 0x18], ebp
je 0x4331f7
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431ea0
test eax, eax
je 0x4331f7
mov esi, 0xe
jmp 0x4335e8
mov ecx, dword [edi + 0x10]
call fcn.004252c0
cmp dword [eax + 0x18], esi
jb 0x43320d
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
jmp 0x433214
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x10]
call fcn.004252d0
cmp dword [eax + 0x18], esi
jb 0x433226
mov eax, dword [eax + 4]
jmp 0x433229
add eax, 4
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x18], eax
call fcn.00423570
test al, 8
je 0x43324f
mov ecx, dword [edi + 0x10]
call fcn.00423ed0
mov ecx, dword [edi + 0x10]
or eax, 0x200000
push eax
call fcn.004252e0
cmp dword [edi + 0x18], ebp
je 0x43326d
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431ea0
test eax, eax
je 0x43326d
mov esi, 0xe
jmp 0x4335e8
mov ecx, dword [edi + 0x10]
call fcn.004252b0
cmp dword [eax + 0x18], esi
jb 0x43327f
mov eax, dword [eax + 4]
jmp 0x433282
add eax, 4
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x4332a3
lea esi, [eax + 4]
jmp 0x4335c9
mov ecx, dword [edi + 0x10]
call fcn.00423570
test al, 0x10
je 0x43330f
mov ecx, dword [edi + 0x10]
call fcn.00425290
test eax, eax
jle 0x43330f
mov ecx, dword [edi + 0x10]
call fcn.00425290
imul eax, eax, 0x3e8
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0x20]
push ecx
push 2
push ebx
mov dword [esp + 0x2c], eax
call esi
push 4
lea edx, [esp + 0x20]
push edx
push 5
push ebx
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 6
push ebx
call esi
push 4
lea ecx, [esp + 0x20]
push ecx
push 7
push ebx
call esi
push 4
lea edx, [esp + 0x20]
push edx
push 8
push ebx
call esi
mov ecx, dword [edi + 0x10]
call fcn.00423570
test al, 2
je 0x43338d
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43338d
mov ecx, dword [edi + 0x10]
call fcn.00423570
test al, 4
je 0x433353
mov ecx, dword [edi + 0x10]
call fcn.004252a0
push eax
push esi
call fcn.00421ed0
add esp, 8
test al, al
je 0x433353
xor esi, esi
jmp 0x4335c9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x43338d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x43338d
xor ebp, ebp
cmp dword [edi + 0x18], 0
je 0x4333ac
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431ea0
test eax, eax
je 0x4333ac
mov esi, 0xe
jmp 0x4335c9
test ebp, ebp
jbe 0x433409
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0xae]
push ecx
mov word [esp + 0xb0], ax
call fcn.0043ae00
push ebp
push str.Range:bytes_d_
lea edx, [esp + 0xb8]
push 0x20
push edx
call fcn.0043b49a
mov ecx, dword [esp + 0x48]
add esp, 0x1c
push 0
push accept
push 0xffffffffffffffff
lea eax, [esp + 0xb0]
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x433409
xor ebp, ebp
mov byte [esp + 0x17], 0
mov edi, edi
cmp dword [edi + 0x18], 0
je 0x433429
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431ea0
test eax, eax
jne 0x43358d
xor bl, bl
mov dword [esp + 0x44], 4
test ebp, ebp
jne 0x43350e
mov ecx, dword [edi + 0x10]
push ebp
call fcn.00423ed0
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x54]
push ebp
push ebp
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x24], eax
call fcn.00423ed0
test eax, 0x200000
je 0x43350e
mov ecx, dword [edi + 0x10]
call fcn.004252c0
push 0xffffffffffffffff
xor esi, esi
xor ecx, ecx
push esi
mov word [esp + 0x84], cx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
call fcn.004017f0
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x8f0], esi
call fcn.00423ed0
push eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x84]
call fcn.00433050
add esp, 0xc
test al, al
je 0x433594
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edi + 0x10]
call fcn.004252f0
cmp dword [esp + 0x90], 8
mov bl, 1
mov dword [esp + 0x8f0], 0xffffffff
jb 0x43350e
mov edx, dword [esp + 0x7c]
push edx
call fcn.0043a3dd
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x433642
test bl, bl
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
jne 0x43365e
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0x20000013
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0x40]
je 0x433560
test ebp, ebp
jne 0x43354f
cmp eax, 0xc8
jmp 0x43355a
jbe 0x43365e
cmp eax, 0xce
je 0x43365e
cmp eax, 0x1a0
jne 0x433649
cmp byte [esp + 0x17], 0
jne 0x433649
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x17], 1
jmp 0x433410
mov esi, 0xe
jmp 0x4335ba
cmp dword [esp + 0x90], 8
mov dword [esp + 0x8f0], 0xffffffff
jb 0x4335b6
mov edx, dword [esp + 0x7c]
push edx
call fcn.0043a3dd
add esp, 4
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4335c9
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4335d8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4335e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xe4]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
push esi
mov ecx, edi
call fcn.004321a0
cmp dword [edi + 0x14], 0
je 0x433a59
push 0x14
call fcn.0043a403
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x8f0], 2
test eax, eax
je 0x4339fe
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, eax
call fcn.00434ad0
jmp 0x433a00
mov esi, 5
jmp 0x4335c9
test ebp, ebp
jbe 0x4336d9
cmp eax, 0xc8
jne 0x4336d9
xor ebp, ebp
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x20000005
push esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x6c], 4
call ebx
test eax, eax
jne 0x43368a
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x10]
call fcn.00423570
test al, 0x20
je 0x4336b2
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xec]
push eax
push 0x16
push esi
mov dword [esp + 0x34], 0x3ff
call ebx
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4336eb
mov eax, 0x51eb851f
mul ecx
mov esi, edx
shr esi, 4
mov dword [esp + 0x1c], esi
cmp esi, 0x400
jae 0x4336e3
mov esi, 0x400
jmp 0x4336f0
mov esi, 6
jmp 0x4335ba
cmp esi, 0x20000
jbe 0x4336f4
mov esi, 0x20000
mov dword [esp + 0x1c], esi
mov ecx, dword [edi + 0x10]
call fcn.00423570
test al, 8
je 0x433802
mov ecx, dword [edi + 0x10]
call fcn.004252d0
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x84], cx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
call fcn.004017f0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8f4], 1
call fcn.00431fb0
add esp, 4
test al, al
jne 0x43379d
cmp dword [esp + 0x90], 8
lea esi, [ebx + 2]
mov dword [esp + 0x8f0], 0xffffffff
jb 0x43377f
mov eax, dword [esp + 0x7c]
push eax
call fcn.0043a3dd
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
jmp 0x4335ba
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x78]
push edx
call fcn.00425310
mov ecx, dword [edi + 0x10]
call fcn.004252d0
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x4337c1
mov eax, dword [eax + 4]
jmp 0x4337c4
add eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x8f0], 0xffffffff
cmp dword [esp + 0x90], ecx
jb 0x4337e9
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0043a3dd
add esp, 4
xor edx, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
mov ebx, dword [esp + 0x28]
cmp ebx, 0xffffffff
jne 0x43383c
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x43383a
mov esi, 3
jmp 0x4335ba
xor ebp, ebp
mov ecx, dword [esp + 0x34]
push ebp
push ecx
mov ecx, edi
call fcn.00431a60
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push esi
push ebp
push ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x20], esi
mov byte [esp + 0x17], 1
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x2c], esi
cmp dword [edi + 0x18], 0
je 0x43389f
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431ea0
test eax, eax
jne 0x4339df
cmp byte [esp + 0x17], 0
je 0x4338b5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
test esi, esi
je 0x4339e6
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x433952
mov edx, dword [esp + 0x48]
add dword [esp + 0x38], eax
push 0
lea ecx, [esp + 0x48]
push ecx
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x44]
cmp esi, dword [esp + 0x30]
jne 0x4339f0
add dword [esp + 0x2c], esi
mov ecx, ebx
sub ecx, dword [esp + 0x20]
cmp ecx, 0x64
jb 0x433941
mov eax, dword [esp + 0x2c]
xor edx, edx
div ecx
add esi, ebp
mov ecx, edi
push eax
push esi
call fcn.00431b10
xor ebp, ebp
jmp 0x433943
add ebp, esi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x50], ebp
ja 0x433886
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00423570
test al, 4
je 0x4339b6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x94]
push edx
push eax
call fcn.00421f50
add esp, 8
test al, al
je 0x4339f7
mov ecx, dword [edi + 0x10]
mov ebp, 0x10
lea ebx, [esp + 0x94]
call fcn.004252a0
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x4339f7
sub ebp, 4
add ebx, 4
add eax, 4
cmp ebp, 4
jae 0x4339a2
mov dword [esp + 0x54], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4335ba
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4335ba
mov esi, 0xe
jmp 0x4339be
mov esi, 7
jmp 0x433956
mov esi, 8
jmp 0x4339be
mov esi, 0xb
jmp 0x4339be
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x8f0], esi
test eax, eax
je 0x433a19
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
push 0x14
call fcn.0043a403
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x8f0], 3
test eax, eax
je 0x433a43
mov ecx, dword [edi + 0x14]
push ecx
mov ecx, eax
call fcn.004349b0
jmp 0x433a45
xor eax, eax
mov dword [esp + 0x8f0], esi
test eax, eax
je 0x433a59
mov ecx, dword [edi + 0x14]
push eax
call fcn.00430940
cmp dword [esp + 0x54], 0
je 0x433c6f
mov ecx, dword [edi + 0x10]
call fcn.00425330
test al, al
je 0x433c6f
mov ecx, dword [edi + 0x10]
call fcn.00425340
test eax, eax
je 0x433c6f
cmp dword [esp + 0x18], 0
je 0x433c6f
mov edx, dword [esp + 0x18]
push 0
push 0
push 3
push 0
push 1
push accept
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x433c6f
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x433c6f
mov ecx, dword [esp + 0x20]
push 1
push 0
push 0
push ecx
call fcn.0043b4c0
mov esi, eax
mov ebp, edx
xor edx, edx
add esi, ebx
adc ebp, edx
xor eax, eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov dword [esp + 0xb9], eax
mov dword [esp + 0xbd], eax
mov dword [esp + 0xc1], eax
push 0x10
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xac]
push 0x21
push ecx
mov byte [esp + 0xb4], dl
call fcn.00422060
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.004252c0
cmp dword [eax + 0x18], 8
jb 0x433b64
mov eax, dword [eax + 4]
jmp 0x433b67
add eax, 4
xor ebx, ebx
push ebx
lea edx, [esp + 0xa8]
push edx
push ebp
push esi
push eax
call fcn.00401581
mov ecx, dword [edi + 0x10]
add esp, 0x14
call fcn.004252c0
cmp dword [eax + 0x18], 8
jb 0x433b90
mov eax, dword [eax + 4]
jmp 0x433b93
add eax, 4
mov esi, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0xa8]
push ecx
push esi
push eax
call fcn.0040143a
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.00423570
test al, 0x40
je 0x433c4d
xor edx, edx
mov eax, esi
mov word [esp + 0x60], dx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x433bd2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.00401a4b
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x8f4], 4
call fcn.00425340
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x18]
add ebp, eax
push ebp
push esi
call fcn.0042dc80
cmp dword [esp + 0x74], 8
mov dword [esp + 0x8f0], 0xffffffff
jb 0x433c3a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0043a3dd
add esp, 4
xor edx, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov ecx, dword [edi + 0x10]
call fcn.00425350
push eax
call fcn.00401615
mov ecx, dword [edi + 0x10]
add esp, 4
call fcn.00425340
mov ecx, dword [edi + 0x18]
push eax
call fcn.0042d0b0
mov al, 1
mov ecx, dword [esp + 0x8e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0043a84e
add esp, 0x8e0
ret