Function at 0x433050
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 0x4509bd
mov eax, dword fs:[0]
push eax
sub esp, 0x8d4
mov eax, dword [0x463630]
xor eax, esp
mov dword [esp + 0x8d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463630]
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 0x43309d
xor al, al
jmp 0x433bc1
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.0043ab70
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.00424e50
mov esi, 8
test al, al
jne 0x433129
mov esi, 1
jmp 0x433538
cmp dword [edi + 0x18], ebp
je 0x433147
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431e00
test eax, eax
je 0x433147
mov esi, 0xe
jmp 0x433538
mov ecx, dword [edi + 0x10]
call fcn.00425300
cmp dword [eax + 0x18], esi
jb 0x43315d
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
jmp 0x433164
add eax, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x10]
call fcn.00425310
cmp dword [eax + 0x18], esi
jb 0x433176
mov eax, dword [eax + 4]
jmp 0x433179
add eax, 4
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x18], eax
call fcn.004252b0
test al, 8
je 0x43319f
mov ecx, dword [edi + 0x10]
call fcn.004252c0
mov ecx, dword [edi + 0x10]
or eax, 0x200000
push eax
call fcn.00425320
cmp dword [edi + 0x18], ebp
je 0x4331bd
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431e00
test eax, eax
je 0x4331bd
mov esi, 0xe
jmp 0x433538
mov ecx, dword [edi + 0x10]
call fcn.004252f0
cmp dword [eax + 0x18], esi
jb 0x4331cf
mov eax, dword [eax + 4]
jmp 0x4331d2
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 0x4331f3
lea esi, [eax + 4]
jmp 0x433519
mov ecx, dword [edi + 0x10]
call fcn.004252b0
test al, 0x10
je 0x43325f
mov ecx, dword [edi + 0x10]
call fcn.004252d0
test eax, eax
jle 0x43325f
mov ecx, dword [edi + 0x10]
call fcn.004252d0
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.004252b0
test al, 2
je 0x4332dd
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4332dd
mov ecx, dword [edi + 0x10]
call fcn.004252b0
test al, 4
je 0x4332a3
mov ecx, dword [edi + 0x10]
call fcn.004252e0
push eax
push esi
call fcn.00421e90
add esp, 8
test al, al
je 0x4332a3
xor esi, esi
jmp 0x433519
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 0x4332dd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4332dd
xor ebp, ebp
cmp dword [edi + 0x18], 0
je 0x4332fc
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431e00
test eax, eax
je 0x4332fc
mov esi, 0xe
jmp 0x433519
test ebp, ebp
jbe 0x433359
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0xae]
push ecx
mov word [esp + 0xb0], ax
call fcn.0043ab70
push ebp
push str.Range:bytes_d_
lea edx, [esp + 0xb8]
push 0x20
push edx
call fcn.0043b20a
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 0x433359
xor ebp, ebp
mov byte [esp + 0x17], 0
mov edi, edi
cmp dword [edi + 0x18], 0
je 0x433379
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431e00
test eax, eax
jne 0x4334dd
xor bl, bl
mov dword [esp + 0x44], 4
test ebp, ebp
jne 0x43345e
mov ecx, dword [edi + 0x10]
push ebp
call fcn.004252c0
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.004252c0
test eax, 0x200000
je 0x43345e
mov ecx, dword [edi + 0x10]
call fcn.00425300
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.004017f2
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x8f0], esi
call fcn.004252c0
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.00432fa0
add esp, 0xc
test al, al
je 0x4334e4
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edi + 0x10]
call fcn.00425330
cmp dword [esp + 0x90], 8
mov bl, 1
mov dword [esp + 0x8f0], 0xffffffff
jb 0x43345e
mov edx, dword [esp + 0x7c]
push edx
call fcn.0043a14d
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x433592
test bl, bl
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
jne 0x4335ae
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 0x4334b0
test ebp, ebp
jne 0x43349f
cmp eax, 0xc8
jmp 0x4334aa
jbe 0x4335ae
cmp eax, 0xce
je 0x4335ae
cmp eax, 0x1a0
jne 0x433599
cmp byte [esp + 0x17], 0
jne 0x433599
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x17], 1
jmp 0x433360
mov esi, 0xe
jmp 0x43350a
cmp dword [esp + 0x90], 8
mov dword [esp + 0x8f0], 0xffffffff
jb 0x433506
mov edx, dword [esp + 0x7c]
push edx
call fcn.0043a14d
add esp, 4
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x433519
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x433528
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x433538
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.00432100
cmp dword [edi + 0x14], 0
je 0x4339a9
push 0x14
call fcn.0043a173
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x8f0], 2
test eax, eax
je 0x43394e
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, eax
call fcn.00434a50
jmp 0x433950
mov esi, 5
jmp 0x433519
test ebp, ebp
jbe 0x433629
cmp eax, 0xc8
jne 0x433629
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 0x4335da
mov dword [esp + 0x34], eax
mov ecx, dword [edi + 0x10]
call fcn.004252b0
test al, 0x20
je 0x433602
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 0x43363b
mov eax, 0x51eb851f
mul ecx
mov esi, edx
shr esi, 4
mov dword [esp + 0x1c], esi
cmp esi, 0x400
jae 0x433633
mov esi, 0x400
jmp 0x433640
mov esi, 6
jmp 0x43350a
cmp esi, 0x20000
jbe 0x433644
mov esi, 0x20000
mov dword [esp + 0x1c], esi
mov ecx, dword [edi + 0x10]
call fcn.004252b0
test al, 8
je 0x433752
mov ecx, dword [edi + 0x10]
call fcn.00425310
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.004017f2
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8f4], 1
call fcn.00431f10
add esp, 4
test al, al
jne 0x4336ed
cmp dword [esp + 0x90], 8
lea esi, [ebx + 2]
mov dword [esp + 0x8f0], 0xffffffff
jb 0x4336cf
mov eax, dword [esp + 0x7c]
push eax
call fcn.0043a14d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
jmp 0x43350a
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x78]
push edx
call fcn.00425350
mov ecx, dword [edi + 0x10]
call fcn.00425310
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x433711
mov eax, dword [eax + 4]
jmp 0x433714
add eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x8f0], 0xffffffff
cmp dword [esp + 0x90], ecx
jb 0x433739
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0043a14d
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 0x43378c
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 0x43378a
mov esi, 3
jmp 0x43350a
xor ebp, ebp
mov ecx, dword [esp + 0x34]
push ebp
push ecx
mov ecx, edi
call fcn.00431a20
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 0x4337ef
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call fcn.00431e00
test eax, eax
jne 0x43392f
cmp byte [esp + 0x17], 0
je 0x433805
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 0x433936
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x4338a2
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 0x433940
add dword [esp + 0x2c], esi
mov ecx, ebx
sub ecx, dword [esp + 0x20]
cmp ecx, 0x64
jb 0x433891
mov eax, dword [esp + 0x2c]
xor edx, edx
div ecx
add esi, ebp
mov ecx, edi
push eax
push esi
call fcn.00431ad0
xor ebp, ebp
jmp 0x433893
add ebp, esi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x50], ebp
ja 0x4337d6
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.004252b0
test al, 4
je 0x433906
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x94]
push edx
push eax
call fcn.00421f10
add esp, 8
test al, al
je 0x433947
mov ecx, dword [edi + 0x10]
mov ebp, 0x10
lea ebx, [esp + 0x94]
call fcn.004252e0
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x433947
sub ebp, 4
add ebx, 4
add eax, 4
cmp ebp, 4
jae 0x4338f2
mov dword [esp + 0x54], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x43350a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43350a
mov esi, 0xe
jmp 0x43390e
mov esi, 7
jmp 0x4338a6
mov esi, 8
jmp 0x43390e
mov esi, 0xb
jmp 0x43390e
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x8f0], esi
test eax, eax
je 0x433969
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
push 0x14
call fcn.0043a173
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x8f0], 3
test eax, eax
je 0x433993
mov ecx, dword [edi + 0x14]
push ecx
mov ecx, eax
call fcn.00434930
jmp 0x433995
xor eax, eax
mov dword [esp + 0x8f0], esi
test eax, eax
je 0x4339a9
mov ecx, dword [edi + 0x14]
push eax
call fcn.004308d0
cmp dword [esp + 0x54], 0
je 0x433bbf
mov ecx, dword [edi + 0x10]
call fcn.00425370
test al, al
je 0x433bbf
mov ecx, dword [edi + 0x10]
call fcn.00425380
test eax, eax
je 0x433bbf
cmp dword [esp + 0x18], 0
je 0x433bbf
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 0x433bbf
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 0x433bbf
mov ecx, dword [esp + 0x20]
push 1
push 0
push 0
push ecx
call fcn.0043b230
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.00422020
mov ecx, dword [edi + 0x10]
add esp, 0x10
call fcn.00425300
cmp dword [eax + 0x18], 8
jb 0x433ab4
mov eax, dword [eax + 4]
jmp 0x433ab7
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.00425300
cmp dword [eax + 0x18], 8
jb 0x433ae0
mov eax, dword [eax + 4]
jmp 0x433ae3
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.004252b0
test al, 0x40
je 0x433b9d
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 0x433b22
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.00401a4d
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 4]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x8f4], 4
call fcn.00425380
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x18]
add ebp, eax
push ebp
push esi
call fcn.0042d670
cmp dword [esp + 0x74], 8
mov dword [esp + 0x8f0], 0xffffffff
jb 0x433b8a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0043a14d
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.00425390
push eax
call fcn.00401615
mov ecx, dword [edi + 0x10]
add esp, 4
call fcn.00425380
mov ecx, dword [edi + 0x18]
push eax
call fcn.0042ce20
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.0043a5be
add esp, 0x8e0
ret