Function at 0x404520
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x57f27b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
push 0x5be238
call fcn.00405740
add esp, 4
push 4
call fcn.0040d49d
xor edi, edi
add esp, 4
cmp eax, edi
je 0x404587
lea ecx, [esp + 0x24]
mov dword [eax], ecx
jmp 0x404589
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
add ebp, 8
push ebp
mov ebx, str.pkgSetup.xml
lea esi, [esp + 0x44]
mov dword [esp + 0xa8], 1
call fcn.004073e0
add esp, 4
mov byte [esp + 0xa4], 2
mov eax, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x4045d4
lea eax, [esp + 0x44]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.004035c0
mov eax, dword [esp + 0x4c]
add esp, 8
cmp dword [esp + 0x58], esi
jae 0x4045f0
lea eax, [esp + 0x44]
push eax
call fcn.00405740
add esp, 4
push ebp
mov ebx, str.unsSetupRepresentative.exe
lea esi, [esp + 0x60]
call fcn.004073e0
add esp, 4
push ebp
mov ebx, str.pkgSetupRepresentative.exe
lea esi, [esp + 0x7c]
mov byte [esp + 0xa8], 3
call fcn.004073e0
add esp, 4
mov byte [esp + 0xa4], 4
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404740
push 1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0x10
mov eax, str._upgradeallinone
mov word [esi + 4], cx
call fcn.00406660
sub esp, 0x1c
mov byte [esp + 0xe0], 5
mov esi, esp
mov dword [esp + 0x54], esp
push ebp
call fcn.004073e0
mov bl, 4
add esp, 4
mov byte [esp + 0xe0], bl
call fcn.004034b0
push 0x5be31c
lea ecx, [esp + 0x24]
call fcn.00407d30
push str.DLP
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 6
call fcn.00407d30
mov ecx, dword [0x5efba8]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
call fcn.0040d210
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa4], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40471c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 8
cmp dword [esp + 0x90], ebx
jb 0x404a45
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0040d4cc
add esp, 4
jmp 0x404a45
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x404753
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x404768
lea ecx, [esp + 0x60]
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x404779
lea eax, [esp + 0x7c]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push 1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esp
mov ebx, 7
xor ecx, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], 0
push 0xb
mov eax, str._upgradeuns
mov word [esi + 4], cx
call fcn.00406660
sub esp, 0x1c
mov byte [esp + 0xe0], bl
mov esi, esp
mov dword [esp + 0x5c], esp
push ebp
mov ebx, str.unsSetupRepresentative.exe
call fcn.004073e0
add esp, 4
mov byte [esp + 0xe0], 4
call fcn.004034b0
mov ebx, eax
call edi
push 0x5be358
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.00418ab3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404810
push 0x80004005
call fcn.00401920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xa4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, dword [esp + 0x18]
push eax
push esi
push ebx
lea ecx, [esp + 0x2c]
push 0x5be368
push ecx
call fcn.004019f0
mov edx, dword [esp + 0x34]
add esp, 0x14
push edx
call fcn.00405740
add esp, 4
push 0x5be31c
lea ecx, [esp + 0x20]
call fcn.00407d30
push 0x5be3b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 9
call fcn.00407d30
mov ecx, dword [0x5efba8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
call fcn.0040d210
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa4], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5be3fc
call fcn.00405740
add esp, 4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push 1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0xb
mov eax, str._upgradeins
mov word [esi + 4], cx
call fcn.00406660
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x78], esp
push ebp
mov ebx, str.pkgSetupRepresentative.exe
mov byte [esp + 0xe4], 0xa
call fcn.004073e0
mov ebx, 8
add esp, 4
mov byte [esp + 0xe0], bl
call fcn.004034b0
mov ebp, eax
call edi
push 0x5be428
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, dword [esp + 0x18]
push eax
push esi
push ebp
lea edx, [esp + 0x2c]
push 0x5be438
push edx
call fcn.004019f0
mov esi, dword [esp + 0x34]
add esp, 0x14
push esi
call fcn.00405740
add esp, 4
push 0x5be31c
lea ecx, [esp + 0x1c]
call fcn.00407d30
push str.DLP
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], 0xb
call fcn.00407d30
mov ecx, dword [0x5efba8]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
call fcn.0040d210
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xa4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x90], ebx
jb 0x404a43
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0040d4cc
add esp, 4
xor edi, edi
xor edx, edx
mov esi, 7
mov word [esp + 0x7c], dx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], esi
cmp dword [esp + 0x74], ebx
jb 0x404a72
mov eax, dword [esp + 0x60]
push eax
call fcn.0040d4cc
add esp, 4
xor ecx, ecx
mov word [esp + 0x60], cx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], esi
cmp dword [esp + 0x58], ebx
jb 0x404a94
mov edx, dword [esp + 0x44]
push edx
call fcn.0040d4cc
add esp, 4
xor eax, eax
lea ebx, [esp + 0x24]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
call fcn.00405ec0
mov eax, 1
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0050c2f2
add esp, 0x94
ret 4