Function at 0x409200
Capabilities:
Access the windows event log
Copy file
Create directory
Delete file
Get common file path
Get system information on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x698], eax
push ebx
push esi
push edi
mov eax, dword [0x461008]
xor eax, esp
push eax
lea eax, [esp + 0x6b0]
mov dword fs:[0], eax
call fcn.004047e0
test al, al
jne 0x40924e
call fcn.004048c0
cmp dword [0x463664], 0
jne 0x409269
push 0x44bdb8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [0x463664], eax
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
mov dword [esp + 0x6b8], eax
mov eax, dword [0x4622b4]
cmp eax, 0xffffffff
jne 0x4092bc
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [esp + 0x68]
cmp cx, 9
jne 0x4092ae
mov eax, 1
jmp 0x4092b7
xor eax, eax
cmp cx, 6
sete al
mov dword [0x4622b4], eax
test eax, eax
mov dword [esp + 0x40], 0
setne bl
mov byte [esp + 0x16], bl
test bl, bl
je 0x409301
cmp dword [0x463bf0], 0
jne 0x409301
push 0x4565a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x463bf0], eax
test eax, eax
je 0x409301
lea ecx, [esp + 0x40]
push ecx
call eax
call fcn.00415a20
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x44bdb8
push eax
lea eax, [esp + 0x4a4]
push eax
call esi
push str.Update_Files
lea eax, [esp + 0x4a0]
push eax
lea eax, [esp + 0x94]
push eax
call esi
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x6b8], 1
cmp word [0x4639d8], ax
jne 0x40936f
push 0x104
push 0x4639d8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x454f50
lea ecx, [esp + 0x8c]
call fcn.00415ac0
mov edx, 0x454f7c
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x8c]
call fcn.00415ac0
mov edx, 0x455440
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x8c]
call fcn.00415ac0
mov edx, 0x455464
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x8c]
call fcn.00415ac0
mov edx, 0x454f50
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x49c]
call fcn.00415ac0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0
test bl, bl
je 0x409470
cmp word [0x464008], 0
jne 0x409405
push 0x464008
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [0x464210], 0
jne 0x40941f
push 0x104
push 0x464210
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers
push 0x464210
lea eax, [esp + 0x29c]
push eax
call esi
mov edx, 0x454f7c
lea ecx, [esp + 0x294]
call fcn.00415ac0
mov edx, 0x454f98
mov dword [esp + 0x18], eax
mov ecx, 0x464008
call fcn.00415ac0
mov edx, 0x454f98
mov dword [esp + 0x1c], eax
mov ecx, 0x464210
call fcn.00415ac0
mov dword [esp + 0x20], eax
jmp 0x4094c6
cmp word [0x464210], 0
jne 0x40948a
push 0x104
push 0x464210
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers
push 0x464210
lea eax, [esp + 0x29c]
push eax
call esi
mov edx, 0x454f7c
lea ecx, [esp + 0x294]
call fcn.00415ac0
mov edx, 0x454f98
mov dword [esp + 0x18], eax
mov ecx, 0x464210
call fcn.00415ac0
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
cmp byte [esp + 0x16], bl
push 0xc
setne bl
add ebx, 0x387
call fcn.0043198f
mov edi, eax
add esp, 4
test edi, edi
je 0x409509
xor eax, eax
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 8], eax
jmp 0x40950b
xor edi, edi
push ecx
lea ecx, [esp + 0x48]
call fcn.00402070
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40951f
mov dword [esi], edi
add esi, 4
push 0xc
mov dword [esp + 0x4c], esi
call fcn.0043198f
mov edi, eax
add esp, 4
test edi, edi
je 0x409548
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edi], ebx
mov dword [edi + 8], eax
jmp 0x40954a
xor edi, edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
cmp eax, esi
jae 0x409590
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp eax, ecx
ja 0x409590
mov ebx, dword [esp + 0x4c]
mov edi, ecx
sub edi, eax
sar edi, 2
cmp esi, ebx
jne 0x409585
push ecx
lea ecx, [esp + 0x48]
call fcn.00402070
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
test esi, esi
je 0x4095b0
mov eax, dword [eax + edi*4]
mov dword [esi], eax
jmp 0x4095b0
mov ebx, dword [esp + 0x4c]
cmp esi, ebx
jne 0x4095aa
push ecx
lea ecx, [esp + 0x48]
call fcn.00402070
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4095b0
mov dword [esi], edi
add esi, 4
push 0xc
mov dword [esp + 0x4c], esi
call fcn.0043198f
mov edi, eax
add esp, 4
test edi, edi
je 0x4095dd
mov eax, dword [esp + 0x38]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi], 0x385
mov dword [edi + 8], eax
jmp 0x4095df
xor edi, edi
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
cmp eax, esi
jae 0x40961d
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp eax, ecx
ja 0x40961d
mov edi, ecx
sub edi, eax
sar edi, 2
cmp esi, ebx
jne 0x409612
push ecx
lea ecx, [esp + 0x48]
call fcn.00402070
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
test esi, esi
je 0x409635
mov eax, dword [eax + edi*4]
mov dword [esi], eax
jmp 0x409635
cmp esi, ebx
jne 0x40962f
push ecx
lea ecx, [esp + 0x48]
call fcn.00402070
mov esi, dword [esp + 0x48]
test esi, esi
je 0x409635
mov dword [esi], edi
add esi, 4
cmp byte [esp + 0x16], 0
mov dword [esp + 0x48], esi
je 0x40967f
push 0xc
call fcn.0043198f
add esp, 4
test eax, eax
je 0x409667
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], 0x386
mov dword [eax + 8], ecx
jmp 0x409669
xor eax, eax
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x3c]
push eax
call fcn.0040a7e0
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, esi
sub eax, ecx
xor ebx, ebx
mov dword [esp + 0x18], eax
add eax, 3
shr eax, 2
cmp esi, ecx
mov dword [esp + 0x1c], ebx
mov esi, ecx
sbb edi, edi
not edi
and edi, eax
mov dword [esp + 0x20], edi
je 0x4097a2
jmp 0x4096b0
mov edi, dword [esi]
mov ecx, dword [edi]
test ecx, ecx
jne 0x409726
push ecx
push dword [edi + 4]
push 0x4639d8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 4]
push 0x4639d8
push str.CopyFile
push str._ls___ls_____ls___failed_with_error__d_r_n
call fcn.00414e90
mov edi, eax
add esp, 0x14
cmp word [edi], 0
jne 0x4096fc
xor ecx, ecx
jmp 0x409710
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409701
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00403ce0
push edi
call fcn.004323fa
add esp, 4
jmp 0x409786
mov edx, dword [edi + 4]
call fcn.0040a670
movzx eax, al
test eax, eax
jne 0x409785
push str.WriteResourceToFile
push str._ls___failed_r_n
call fcn.00414e90
mov edi, eax
add esp, 8
cmp word [edi], 0
jne 0x409753
xor ecx, ecx
jmp 0x40976f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x409760
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409760
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00403ce0
push edi
call fcn.004323fa
add esp, 4
jmp 0x409786
inc ebx
mov edx, dword [esp + 0x1c]
add esi, 4
mov edi, dword [esp + 0x20]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, edi
jne 0x4096b0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
xor dl, dl
sar eax, 2
mov byte [esp + 0x17], dl
mov dword [esp + 0x18], eax
cmp ebx, eax
jne 0x4098a4
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov esi, ecx
test edi, edi
je 0x409874
nop
mov edi, dword [esi]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
push str._d__ws_____ws_r_n
call fcn.00416f00
add esp, 0x10
push 4
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40985b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 8]
push dword [edi + 4]
push 0x45554c
push str._ls___ls_____ls___failed_with_error__d_r_n
call fcn.00414e90
mov edi, eax
add esp, 0x14
cmp word [edi], 0
jne 0x409831
xor ecx, ecx
jmp 0x409845
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409836
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00403ce0
push edi
call fcn.004323fa
add esp, 4
jmp 0x409864
inc dword [esp + 0x1c]
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x20]
inc ebx
add esi, 4
cmp ebx, edi
jne 0x4097d0
push 4
push 0
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x17]
cmp ebx, eax
jne 0x4098a4
xor eax, eax
test dl, dl
setne al
inc eax
mov dword [esp + 0x18], eax
jmp 0x4098ac
mov dword [esp + 0x18], 0xffffffff
mov esi, dword [esp + 0x44]
xor ebx, ebx
test edi, edi
je 0x4098eb
mov eax, dword [esp + 0x20]
lea ebx, [ebx]
mov edi, dword [esi]
test edi, edi
je 0x4098e3
push dword [edi + 4]
call fcn.004323fa
push dword [edi + 8]
call fcn.004323fa
push edi
call fcn.0043198a
mov eax, dword [esp + 0x2c]
add esp, 0xc
inc ebx
add esi, 4
cmp ebx, eax
jne 0x4098c0
cmp byte [esp + 0x16], 0
mov esi, dword [esp + 0x44]
mov dword [esp + 0x48], esi
je 0x40992a
cmp dword [0x463bec], 0
jne 0x40992a
push 0x4565a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x463bec], eax
test eax, eax
je 0x40992a
lea ecx, [esp + 0x40]
push ecx
call eax
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40995e
push 0
lea eax, [esp + 0x40]
push eax
push 0
push ebx
push 0
push 0xd4
push 1
push 4
push dword [0x463664]
mov dword [esp + 0x60], 0x454fb4
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
jmp 0x4099ac
cmp ebx, 2
jne 0x409977
push 0
lea eax, [esp + 0x40]
push eax
push 0
push 1
push 0
push 0xd5
jmp 0x409944
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x409986
lea eax, [esp + 0x50]
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push 0
push 1
push 0
push 0xd9
push 1
push 1
push dword [0x463664]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x4099c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent
push 0x4566ac
call fcn.00416f00
add esp, 0xc
test esi, esi
je 0x4099d6
push esi
call fcn.0043198a
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x4099e9
push dword [esp + 0x50]
call fcn.0043198a
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x6b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x698]
xor ecx, esp
call fcn.0043183b
mov esp, ebp
pop ebp
ret