Function at 0x474b20
Capabilities:
Check for time delay via gettickcount
Check if file exists
Check internet connectivity via wininet
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a228
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x553092], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x474b5e
call esi
mov dword [0x559d74], eax
mov ebx, dword [ebp + 8]
push ebx
call fcn.00489610
cmp byte [0x553092], 0
je 0x474bdc
call esi
mov dword [0x559d78], eax
sub eax, dword [0x559d74]
mov edi, 0x559e78
push eax
push 0x51ef88
push 0x51ef9c
call fcn.004596f0
mov eax, dword [0x559e78]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x559d7c]
test eax, eax
je 0x474bcc
mov ecx, dword [0x559e78]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.004e7a60
mov ecx, dword [0x559d7c]
push ecx
call fcn.004e4fb7
add esp, 0x14
cmp byte [0x553092], 0
je 0x474bdc
call esi
mov dword [0x559d74], eax
add ebx, 0xb4
push ebx
lea edx, [ebp - 0x10]
push edx
mov ebx, 0x51efc8
call fcn.0045c900
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474c24
push 0xb
push str.__RegServer
lea ebx, [ebp - 0x10]
call fcn.0045b2d0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474aa0
add esp, 4
cmp byte [0x553092], 0
je 0x474c89
call esi
mov dword [0x559d78], eax
sub eax, dword [0x559d74]
mov edi, 0x559e78
push eax
push 0x51f000
push 0x51ef9c
call fcn.004596f0
mov edx, dword [0x559e78]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x559d7c]
test eax, eax
je 0x474c89
mov ecx, dword [0x559e78]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.004e7a60
mov eax, dword [0x559d7c]
push eax
call fcn.004e4fb7
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x474cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x474d56
push 0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x474d56
mov al, byte [ebp - 0x14]
test al, 0x20
jne 0x474d56
test al, 7
je 0x474d56
cmp byte [0x553092], 0
je 0x474ce3
call esi
mov dword [0x559d74], eax
mov ebx, dword [ebp + 8]
call fcn.004883e0
push ebx
call fcn.00488ac0
cmp byte [0x553092], 0
je 0x474d56
call esi
mov dword [0x559d78], eax
sub eax, dword [0x559d74]
mov edi, 0x559e78
push eax
push 0x51f02c
push 0x51ef9c
call fcn.004596f0
mov eax, dword [0x559e78]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x559d7c]
test eax, eax
je 0x474d56
mov ecx, dword [0x559e78]
mov edx, dword [ecx - 0xc]
push eax
push edx
push 2
push ecx
call fcn.004e7a60
mov ecx, dword [0x559d7c]
push ecx
call fcn.004e4fb7
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x474d7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4