Function at 0x473810
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 0x506fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x54e072], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x47384e
call esi
mov dword [0x554cd4], eax
mov ebx, dword [ebp + 8]
push ebx
call fcn.00487380
cmp byte [0x54e072], 0
je 0x4738c7
call esi
mov dword [0x554cd8], eax
sub eax, dword [0x554cd4]
mov edi, 0x554dd4
push eax
push 0x51bcf0
push 0x51bd04
call fcn.00458e60
mov eax, dword [0x554dd4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x554dd4]
mov edx, dword [0x554cdc]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.004e4558
mov eax, dword [0x554cdc]
push eax
call fcn.004e1bb7
add esp, 0x14
cmp byte [0x54e072], 0
je 0x4738c7
call esi
mov dword [0x554cd4], eax
lea eax, [ebx + 0xb4]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ebx, 0x51bd30
call fcn.0045c4b0
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47390f
push 0xb
push str.__RegServer
lea ebx, [ebp - 0x10]
call fcn.0045ae80
mov eax, dword [ebp - 0x10]
push eax
call fcn.00473790
add esp, 4
cmp byte [0x54e072], 0
je 0x473970
call esi
mov dword [0x554cd8], eax
sub eax, dword [0x554cd4]
mov edi, 0x554dd4
push eax
push 0x51bd68
push 0x51bd04
call fcn.00458e60
mov ecx, dword [0x554dd4]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x554dd4]
mov edx, dword [0x554cdc]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.004e4558
mov eax, dword [0x554cdc]
push eax
call fcn.004e1bb7
add esp, 0x14
mov eax, dword [ebp + 8]
add eax, 0xb4
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ebx, 0x51bd30
call fcn.0045c4b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
xor ebx, ebx
push ebx
push edx
call fcn.00458730
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4739bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x4739fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x473a7a
push ebx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x473a7a
mov al, byte [ebp - 0x14]
test al, 0x20
jne 0x473a7a
test al, 7
je 0x473a7a
cmp byte [0x54e072], bl
je 0x473a0c
call esi
mov dword [0x554cd4], eax
mov ebx, dword [ebp + 8]
call fcn.00486230
push ebx
call fcn.00486860
cmp byte [0x54e072], 0
je 0x473a7a
call esi
mov dword [0x554cd8], eax
sub eax, dword [0x554cd4]
mov edi, 0x554dd4
push eax
push 0x51bd94
push 0x51bd04
call fcn.00458e60
mov eax, dword [0x554dd4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x554dd4]
mov edx, dword [0x554cdc]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push 2
push eax
call fcn.004e4558
mov eax, dword [0x554cdc]
push eax
call fcn.004e1bb7
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473aa0
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