Function at 0x4045d0
Capabilities:
Create thread
Get common file path

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [0x4154f0], 0xb7
jne 0x4045fd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret 0x10
push 0x104
push 0x4154f8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x414538
or ecx, 0xffffffff
xor eax, eax
push 0x4154f8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4154f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004079fa
add esp, 4
push 0x400
push 0x4479fc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4475fc
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [esp + 0x54]
push 8
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4047c4
mov edi, 0x414538
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x17]
mov ecx, ebx
and ecx, 3
mov byte [esp + 0x28], al
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00404fb0
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.00405540
test al, al
je 0x404703
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00405520
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
call fcn.00404a70
lea ecx, [esp + 0x34]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x447e90
mov dword [esp + 0x4c], 0
call fcn.00405000
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x38]
call fcn.00404fb0
push 1
lea ecx, [esp + 0x28]
mov dword [esi + 0x1c], 1
call fcn.00404fb0
push 0
lea ecx, [esp + 0x28]
mov al, byte [esp + 0x17]
mov byte [esp + 0x28], al
call fcn.00404fb0
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call fcn.00405540
test al, al
je 0x4047a1
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00405520
mov ecx, dword [0x447ec8]
lea eax, [esp + 0x24]
push eax
push 1
push ecx
mov ecx, 0x447ec0
call fcn.00405660
push 1
lea ecx, [esp + 0x28]
call fcn.00404fb0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4025f0
push 0
push 0
call ebp
mov edi, 0x4479fc
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, 0x447e20
push ebx
call fcn.00405540
test al, al
je 0x404827
mov edi, dword [0x447e24]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4479fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x447e24]
mov dword [0x447e28], ebx
mov byte [ebx + eax], 0
mov edi, str._syslog.exe
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x447e28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4121ec]
sub ecx, edx
cmp ecx, esi
ja 0x40484f
call fcn.00406b2b
test esi, esi
jbe 0x4048a0
mov edx, dword [0x447e28]
push 0
mov ecx, 0x447e20
lea ebx, [edx + esi]
push ebx
call fcn.00405540
test al, al
je 0x4048a0
mov eax, dword [0x447e24]
mov edx, dword [0x447e28]
mov ecx, esi
mov esi, str._syslog.exe
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x447e24]
mov dword [0x447e28], ebx
mov byte [ebx + ecx], 0
mov edi, 0x4479fc
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, 0x447e10
push ebx
call fcn.00405540
test al, al
je 0x4048ec
mov edi, dword [0x447e14]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4479fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x447e14]
mov dword [0x447e18], ebx
mov byte [ebx + eax], 0
mov edi, str.eventviewer.exe
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x447e18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4121ec]
sub ecx, edx
cmp ecx, esi
ja 0x404914
call fcn.00406b2b
test esi, esi
jbe 0x404965
mov edx, dword [0x447e18]
push 0
mov ecx, 0x447e10
lea ebx, [esi + edx]
push ebx
call fcn.00405540
test al, al
je 0x404965
mov eax, dword [0x447e14]
mov edx, dword [0x447e18]
mov ecx, esi
mov esi, str.eventviewer.exe
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x447e14]
mov dword [0x447e18], ebx
mov byte [ebx + ecx], 0
push 0
push 0
push 0
push 0x404440
push 0
push 0
call ebp
push 0xea60
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x4044b0
push 0
push 0
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffffe
push eax
mov dword [esp + 0x24], eax
call esi
push 0
push 0
push 0
push fcn.00404310
push 0
push 0
call ebp
push 0xfffffffffffffffe
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, 0x103
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
call edi
cmp dword [esp + 0x14], ebx
je 0x404a06
push 0
push 0
push 0
push 0x404440
push 0
push 0
call ebp
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call edi
cmp dword [esp + 0x14], ebx
je 0x404a32
push 0
push 0
push 0
push 0x4044b0
push 0
push 0
call ebp
push 0xfffffffffffffffe
push eax
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call edi
cmp dword [esp + 0x14], ebx
je 0x4049ce
push 0
push 0
push 0
push fcn.00404310
push 0
push 0
call ebp
push 0xfffffffffffffffe
push eax
mov dword [esp + 0x28], eax
call esi
jmp 0x4049ce