Function at 0x40161a
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Get file version info
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Self delete
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
mov eax, dword [0x799524]
push ebx
push esi
push edi
push 8
mov esi, edx
mov dword [ebp - 0x14], eax
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x3c]
mov dword [0x40c4a4], eax
mov eax, dword [ebp - 0x40]
shl esi, 0xb
xor ebx, ebx
shl edx, 0xb
lea ecx, [eax - 2]
add esi, section..ndata
mov dword [ebp - 4], ebx
lea edi, [edx + section..ndata]
cmp ecx, 0x44
ja case.0x40166c.66
jmp dword [ecx*4 + 0x4030f2]
push dword [ebp - 0x3c]
push str.Jump:__d
call fcn.00407166
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
jmp 0x4030ec
push ebx
call fcn.004014d7
push eax
push str.Aborting:___s_
call fcn.00407166
pop ecx
pop ecx
push ebx
push dword [ebp - 0x3c]
call fcn.00405eb9
mov eax, 0x7fffffff
jmp 0x4030ec
inc dword [0x7984ec]
cmp dword [ebp - 0x14], ebx
je 0x4016a6
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4016a6
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jge 0x4016dd
mov ecx, section..ndata
sub ecx, edx
sub ecx, 0x800
call fcn.00406bec
lea esi, [eax - 1]
push esi
push str.Call:__d
call fcn.00407166
pop ecx
pop ecx
push ebx
push esi
call fcn.00401406
jmp 0x4030ec
push ebx
call fcn.004014d7
push eax
push str.detailprint:__s
call fcn.00407166
pop ecx
pop ecx
push ebx
push dword [ebp - 0x3c]
call fcn.00405eb9
jmp case.0x40166c.66
xor ecx, ecx
call fcn.004014c1
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00407166
pop ecx
pop ecx
cmp esi, 1
jg 0x401738
xor esi, esi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x40166c.66
push str.BringToFront
call fcn.00407166
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40166c.66
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x34], ebx
jne 0x40178a
mov ecx, dword [eax*4 + 0x799e00]
mov dword [eax*4 + 0x799dc0], ecx
xor ecx, ecx
inc ecx
call fcn.004014c1
mov ecx, dword [ebp - 0x3c]
mov dword [ecx*4 + 0x799e00], eax
jmp case.0x40166c.66
mov ecx, dword [eax*4 + 0x799dc0]
mov dword [eax*4 + 0x799e00], ecx
jmp case.0x40166c.66
mov esi, dword [ebp - 0x34]
lea esi, [esi*4 + 0x799e00]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x30]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x3c]
jmp 0x4030ec
mov eax, dword [ebp - 0x38]
push dword [eax*4 + 0x799e00]
push edi
call fcn.00406bd1
jmp case.0x40166c.66
mov eax, dword [0x7984f8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x4017e8
push dword [ebp - 0x38]
push eax
call esi
mov eax, dword [0x7984e4]
cmp eax, ebx
je case.0x40166c.66
push dword [ebp - 0x3c]
push eax
call esi
jmp case.0x40166c.66
push 0xfffffffffffffff0
call fcn.004014d7
push dword [ebp - 0x38]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00407166
add esp, 0xc
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x40166c.66
mov dword [ebp - 4], 1
push str.SetFileAttributes_failed.
call fcn.00407166
pop ecx
jmp case.0x40166c.66
push 0xfffffffffffffff0
call fcn.004014d7
push dword [ebp - 0x38]
mov edi, eax
push edi
push str.CreateDirectory:___s____d_
mov dword [ebp - 0x14], edi
call fcn.00407166
add esp, 0xc
call fcn.004067ab
mov esi, eax
cmp esi, ebx
je 0x4018f6
push 0x5c
mov eax, esi
call fcn.0040673b
mov esi, eax
movzx edi, word [esi]
push ebx
push dword [ebp - 0x14]
xor eax, eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4018b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.00407166
add esp, 0xc
inc dword [ebp - 4]
jmp 0x4018e7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4018e7
push dword [ebp - 0x14]
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.00407166
inc dword [ebp - 4]
jmp 0x4018e5
push dword [ebp - 0x14]
push str.CreateDirectory:___s__created
call fcn.00407166
pop ecx
pop ecx
mov word [esi], di
add esi, 2
cmp di, bx
jne 0x40186f
push 0x40cca8
cmp dword [ebp - 0x38], ebx
je 0x401944
push 0xffffffffffffffe6
call fcn.00405eb9
push dword [ebp - 0x14]
push 0x7a6000
call fcn.00406c86
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x40166c.66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
push str.SetCurrentDirectory__s__failed___d_
call fcn.00407166
add esp, 0xc
inc dword [ebp - 4]
jmp case.0x40166c.66
push 0xfffffffffffffff5
jmp 0x401710
push ebx
call fcn.004014d7
mov esi, eax
push esi
call fcn.0040719a
test eax, eax
je 0x401976
push dword [ebp - 0x38]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.00407166
add esp, 0xc
mov eax, dword [ebp - 0x38]
jmp 0x4030ec
push dword [ebp - 0x34]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.00407166
add esp, 0xc
mov eax, dword [ebp - 0x34]
jmp 0x4030ec
push 0xffffffffffffffd0
call fcn.004014d7
push 0xffffffffffffffdf
mov esi, eax
call fcn.004014d7
push 0x13
mov dword [ebp - 0x10], eax
call fcn.004014d7
mov edi, eax
push edi
push str.Rename:__s
call fcn.00407166
pop ecx
pop ecx
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4019d2
push 0x40cca8
push 0xffffffffffffffe3
jmp 0x401710
cmp dword [ebp - 0x34], ebx
je 0x4019fe
push esi
call fcn.0040719a
test eax, eax
je 0x4019fe
push dword [ebp - 0x10]
push esi
call fcn.00406b26
push 0x40cca8
push 0xffffffffffffffe4
call fcn.00405eb9
push edi
push str.Rename_on_reboot:__s
jmp 0x401a0b
push edi
push str.Rename_failed:__s
mov dword [ebp - 4], 1
call fcn.00407166
pop ecx
jmp 0x40183d
push ebx
call fcn.004014d7
lea ecx, [ebp - 0xc]
push ecx
push esi
mov edi, 0x400
push edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401a5c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jbe 0x401a68
cmp word [eax], bx
je 0x401a68
push dword [ebp - 0x10]
call fcn.0040719a
cmp eax, ebx
je 0x401a5c
add eax, 0x2c
push eax
push dword [ebp - 0xc]
call fcn.00406c86
jmp 0x401a68
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
jne case.0x40166c.66
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x40166c.66
push 0xffffffffffffffff
call fcn.004014d7
lea ecx, [ebp - 0x44]
push ecx
push edi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x40166c.66
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
jmp case.0x40166c.66
push 0xffffffffffffffef
call fcn.004014d7
push eax
call fcn.00406952
test eax, eax
jne case.0x40166c.66
mov dword [ebp - 4], 1
jmp case.0x40166c.66
push 0x31
call fcn.004014d7
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov ecx, eax
sar eax, 3
push esi
and eax, 2
and ecx, 7
push eax
push ecx
push str.File:_overwriteflag_d__allowskipfilesflag_d__name__s_
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ecx
call fcn.00407166
add esp, 0x10
mov eax, esi
call fcn.0040677e
mov edi, 0x40c4a8
test eax, eax
je 0x401b19
push esi
push edi
call fcn.00406c86
jmp 0x401b35
push 0x7a6000
push edi
call fcn.00406c86
mov esi, eax
call fcn.00406714
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00406f3b
mov esi, 0x40d4a8
cmp dword [ebp - 0x14], 3
jl 0x401b77
push edi
call fcn.0040719a
xor ecx, ecx
cmp eax, ebx
je 0x401b62
lea ecx, [ebp - 0x30]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x401b82
push edi
call fcn.004068fb
xor eax, eax
cmp dword [ebp - 0x14], 1
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00406923
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x401c62
cmp dword [ebp - 0x14], ebx
jne 0x401c1f
push edi
push str.File:_error_creating___s_
call fcn.00407166
pop ecx
pop ecx
push section..ndata
push esi
call fcn.00406c86
push edi
push section..ndata
call fcn.00406c86
push dword [ebp - 0x28]
push 0x40cca8
call fcn.00406c9e
push esi
push section..ndata
call fcn.00406c86
mov eax, dword [ebp - 0x3c]
sar eax, 3
push 0x40cca8
call fcn.0040643a
sub eax, 4
jne 0x401c09
push str.File:_error__user_retry
call fcn.00407166
pop ecx
jmp 0x401b40
dec eax
je 0x401c4c
push str.File:_error__user_abort
call fcn.00407166
pop ecx
push edi
push 0xfffffffffffffffa
jmp 0x4016a1
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.00405eb9
cmp dword [ebp - 0x14], 2
jne 0x401c36
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
push edi
push str.File:_skipped:___s___overwriteflag_d_
call fcn.00407166
add esp, 0xc
jmp case.0x40166c.66
push str.File:_error__user_cancel
call fcn.00407166
inc dword [0x799e08]
pop ecx
jmp 0x4030ea
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.00405eb9
mov ecx, dword [ebp - 0x24]
inc dword [0x799e34]
push ebx
push ebx
push dword [ebp - 0xc]
xor eax, eax
or eax, dword [ebp - 0x34]
xor esi, esi
or ecx, esi
push ecx
push eax
call fcn.004038f4
dec dword [0x799e34]
push edi
mov esi, edx
push esi
push eax
push str.File:_wrote__I64d_to___s_
mov dword [ebp - 0x48], eax
call fcn.00407166
add esp, 0x10
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401cb1
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401cc0
lea eax, [ebp - 0x30]
push eax
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jg case.0x40166c.66
jl 0x401cdc
cmp dword [ebp - 0x48], ebx
jae case.0x40166c.66
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x401cfb
cmp esi, 0xffffffff
jne 0x401cfb
push 0xffffffffffffffe9
push edi
call fcn.00406c9e
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x401d03
push 0xffffffffffffffee
push edi
call fcn.00406c9e
push edi
push 0x40987c
call fcn.00407166
pop ecx
pop ecx
push edi
mov eax, 0x200010
call fcn.0040643a
jmp 0x4016a6
push ebx
call fcn.004014d7
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00407166
pop ecx
pop ecx
push dword [ebp - 0x38]
push esi
call fcn.004064e3
jmp case.0x40166c.66
push 0x31
call fcn.004014d7
mov esi, eax
push esi
push dword [ebp - 0x3c]
push str.MessageBox:__d___s_
call fcn.00407166
mov eax, dword [ebp - 0x3c]
add esp, 0xc
push esi
call fcn.0040643a
cmp eax, ebx
je 0x401ac7
cmp eax, dword [ebp - 0x34]
jne 0x401d7b
mov eax, dword [ebp - 0x30]
jmp 0x4030ec
cmp eax, dword [ebp - 0x2c]
jne case.0x40166c.66
mov eax, dword [ebp - 0x28]
jmp 0x4030ec
push 0xfffffffffffffff0
call fcn.004014d7
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401d2e
push 1
call fcn.004014d7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
jmp 0x4017c8
push 2
pop ecx
call fcn.004014c1
push 3
pop ecx
mov dword [ebp - 0xc], eax
call fcn.004014c1
push 1
mov esi, eax
call fcn.004014d7
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x34], ebx
je 0x401de3
cmp dword [ebp - 0xc], ebx
je case.0x40166c.66
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, ebx
jge 0x401df8
add esi, eax
js case.0x40166c.66
cmp esi, eax
jle 0x401dfe
mov esi, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*2]
push eax
push edi
call fcn.00406c86
cmp dword [ebp - 0xc], ebx
je case.0x40166c.66
mov esi, dword [ebp - 0xc]
cmp esi, ebx
jge 0x401e28
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
jns 0x401e28
xor esi, esi
cmp esi, 0x400
jge case.0x40166c.66
xor eax, eax
mov word [edi + esi*2], ax
jmp case.0x40166c.66
push 0x20
call fcn.004014d7
push 0x31
mov esi, eax
call fcn.004014d7
push eax
push esi
cmp dword [ebp - 0x2c], ebx
jne 0x401e69
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401d73
jmp 0x401987
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401e5c
push 1
call fcn.004014d7
push 0x400
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401e9c
cmp dword [ebp - 0x34], ebx
je 0x401ea8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401ea8
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
xor eax, eax
mov word [edi + 0x7fe], ax
jmp case.0x40166c.66
xor ecx, ecx
call fcn.004014c1
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.004014c1
cmp dword [ebp - 0x28], ebx
jne 0x401ee2
cmp esi, eax
jl 0x401d73
jle 0x401987
mov eax, dword [ebp - 0x2c]
jmp 0x4030ec
cmp esi, eax
jb 0x401d73
jbe 0x401987
jmp 0x401eda
xor ecx, ecx
inc ecx
call fcn.004014c1
push 2
pop ecx
mov esi, eax
call fcn.004014c1
mov ecx, eax
mov eax, dword [ebp - 0x30]
cmp eax, 0xc
ja case.default.0x401f0e
jmp dword [eax*4 + 0x403206]
add esi, ecx
jmp case.default.0x401f0e
sub esi, ecx
jmp case.default.0x401f0e
imul esi, ecx
jmp case.default.0x401f0e
cmp ecx, ebx
je 0x401f2d
mov eax, esi
cdq
idiv ecx
jmp 0x401f4b
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401f0e
or esi, ecx
jmp case.default.0x401f0e
and esi, ecx
jmp case.default.0x401f0e
xor esi, ecx
jmp case.default.0x401f0e
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
jmp case.default.0x401f0e
cmp esi, ebx
jne 0x401f57
cmp ecx, ebx
je 0x401f60
xor esi, esi
inc esi
jmp case.default.0x401f0e
cmp esi, ebx
jne 0x401f53
xor esi, esi
jmp case.default.0x401f0e
cmp ecx, ebx
je 0x401f2d
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401f0e
shl esi, cl
jmp case.default.0x401f0e
sar esi, cl
push esi
jmp 0x4017c8
push 1
call fcn.004014d7
push 2
pop ecx
mov esi, eax
call fcn.004014c1
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x401c44
mov eax, dword [ebp - 0x34]
mov esi, dword [0x40c4a0]
cmp eax, ebx
je 0x402002
dec eax
cmp esi, ebx
je 0x401fb8
mov esi, dword [esi]
cmp eax, ebx
jne 0x401fa9
cmp esi, ebx
jne 0x401fd5
push dword [ebp - 0x34]
push str.Exch:_stack____d_elements
call fcn.00407166
pop ecx
pop ecx
push 0xffffffffffffffe8
push ebx
call fcn.00406c9e
push eax
jmp 0x401d11
add esi, 4
push esi
mov edi, 0x40c4a8
push edi
call fcn.00406c86
mov eax, dword [0x40c4a0]
add eax, 4
push eax
push esi
call fcn.00406c86
mov eax, dword [0x40c4a0]
push edi
add eax, 4
push eax
jmp 0x402e1e
cmp dword [ebp - 0x38], ebx
je 0x402032
cmp esi, ebx
jne 0x40201b
push str.Pop:_stack_empty
call fcn.00407166
pop ecx
jmp 0x401ac7
lea eax, [esi + 4]
push eax
push edi
call fcn.00406c86
mov eax, dword [esi]
mov dword [0x40c4a0], eax
push esi
jmp 0x40246b
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x3c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406c9e
mov eax, dword [0x40c4a0]
mov dword [esi], eax
mov dword [0x40c4a0], esi
jmp case.0x40166c.66
push 3
pop ecx
call fcn.004014c1
push 4
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.004014c1
test byte [ebp - 0x28], 1
mov dword [ebp - 8], eax
je 0x402085
push 0x33
call fcn.004014d7
mov dword [ebp - 0x1c], eax
test byte [ebp - 0x28], 2
je 0x402095
push 0x44
call fcn.004014d7
mov dword [ebp - 8], eax
cmp dword [ebp - 0x40], 0x21
jne 0x4020e5
xor ecx, ecx
inc ecx
call fcn.004014c1
push 2
pop ecx
mov esi, eax
call fcn.004014c1
mov ecx, dword [ebp - 0x28]
sar ecx, 2
cmp ecx, ebx
je 0x4020d5
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x402118
push dword [ebp - 8]
push dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402115
push 1
call fcn.004014d7
push 0x12
mov esi, eax
call fcn.004014d7
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movzx eax, word [esi]
neg eax
push ecx
sbb eax, eax
and eax, esi
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x3c], ebx
jl case.0x40166c.66
push dword [ebp - 0xc]
jmp 0x4017c8
xor ecx, ecx
call fcn.004014c1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401987
jmp 0x40196e
push 2
pop ecx
call fcn.004014c1
xor ecx, ecx
push eax
inc ecx
call fcn.004014c1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401dab
mov eax, dword [0x799568]
add eax, dword [ebp - 0x38]
xor ecx, ecx
push eax
push 0xffffffffffffffeb
call fcn.004014c1
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x40166c.66
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x34]
push 0x10
push eax
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x34]
push eax
push ebx
push ebx
call fcn.004014d7
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je case.0x40166c.66
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x40166c.66
push 0x48
push 0x5a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.004014c1
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x40eca8], eax
call fcn.004014c1
push dword [ebp - 0x38]
mov dword [0x40ecb8], eax
mov al, byte [ebp - 0x2c]
mov cl, al
and cl, 1
mov byte [0x40ecbc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40ecc4
mov byte [0x40ecbd], cl
mov byte [0x40ecbe], al
mov byte [0x40ecbf], 1
call fcn.00406c9e
push 0x40eca8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x401dab
xor ecx, ecx
call fcn.004014c1
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.004014c1
mov edi, eax
cmp dword [ebp - 0x34], ebx
je 0x40227a
push str.HideWindow
call fcn.00407166
pop ecx
push edi
push esi
cmp dword [ebp - 0x30], ebx
jne 0x40228c
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40166c.66
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40166c.66
push ebx
call fcn.004014d7
push 0x31
mov esi, eax
call fcn.004014d7
push 0x22
mov ebx, eax
call fcn.004014d7
push 0x15
mov edi, eax
call fcn.004014d7
push 0x40cca8
push 0xffffffffffffffec
call fcn.00405eb9
movzx eax, word [edi]
push dword [ebp - 0x30]
neg eax
sbb eax, eax
and eax, edi
push 0x7a6000
push eax
movzx eax, word [esi]
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jge 0x402305
push eax
push edi
push ebx
push esi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.00407166
add esp, 0x14
jmp 0x401ac7
push edi
push ebx
push esi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.00407166
add esp, 0x10
jmp case.0x40166c.66
push ebx
call fcn.004014d7
mov edi, eax
push edi
push str.Exec:_command__s_
call fcn.00407166
pop ecx
pop ecx
push edi
push 0xffffffffffffffeb
call fcn.00405eb9
push edi
call fcn.004063db
mov dword [ebp - 8], eax
push edi
cmp eax, ebx
je 0x4023a3
push str.Exec:_success____s__
call fcn.00407166
pop ecx
pop ecx
cmp dword [ebp - 0x34], ebx
je 0x40239b
jmp 0x402360
push 0xf
pop edi
call fcn.004071f6
push 0x64
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402358
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x38], ebx
jl 0x40238f
push dword [ebp - 0x10]
push esi
call fcn.00406bd1
jmp 0x40239b
cmp dword [ebp - 0x10], ebx
je 0x40239b
mov dword [ebp - 4], 1
push dword [ebp - 8]
jmp 0x402b9d
push str.Exec:_failed_createprocess____s__
jmp 0x401a04
push 2
call fcn.004014d7
push eax
call fcn.0040719a
cmp eax, ebx
je 0x4023d1
mov ebx, eax
push dword [ebx + 0x14]
push esi
call fcn.00406bd1
push dword [ebx + 0x18]
jmp 0x4017c8
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401ac7
push 0xffffffffffffffee
call fcn.004014d7
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov word [edi], cx
mov dword [ebp - 0x10], eax
mov word [esi], cx
mov dword [ebp - 4], 1
cmp eax, ebx
je case.0x40166c.66
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je case.0x40166c.66
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x402468
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 8]
push eax
push 0x409ac4
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x402468
mov eax, dword [ebp - 8]
push dword [eax + 8]
push edi
call fcn.00406bd1
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push esi
call fcn.00406bd1
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x40166c.66
mov dword [ebp - 4], 1
cmp dword [0x799e38], ebx
jl 0x40259e
push 0xfffffffffffffff0
call fcn.004014d7
mov esi, eax
push 1
mov dword [ebp - 0x44], esi
call fcn.004014d7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], ebx
je 0x4024b2
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4024c7
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x402587
push ebx
push ebx
mov edi, 0x400
push edi
lea eax, [ebp - 0x578]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4024fb
lea eax, [ebp - 0x578]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
jmp 0x4024fd
xor esi, esi
cmp esi, ebx
je 0x40253a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], ebx
je 0x402520
push dword [ebp - 0x34]
call fcn.004014ad
call esi
test eax, eax
je 0x402557
mov dword [ebp - 4], 1
jmp 0x402557
push 0x40c090
push 0x40c4a0
push section..ndata
push edi
push dword [ebp - 0x14]
call esi
add esp, 0x14
jmp 0x402557
push dword [ebp - 0xc]
push 0xfffffffffffffff7
call fcn.00405eb9
push dword [ebp - 0x44]
push dword [ebp - 0xc]
push 0x409ac8
call fcn.00407166
add esp, 0xc
cmp dword [ebp - 0x30], ebx
jne case.0x40166c.66
mov eax, dword [0x795c88]
jmp 0x402575
mov ecx, dword [ebp - 8]
cmp dword [eax + 8], ecx
je case.0x40166c.66
mov eax, dword [eax]
cmp eax, ebx
jne 0x402567
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x40166c.66
push 0x40cca8
push 0xfffffffffffffff6
call fcn.00405eb9
push esi
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x401a0b
push 0x40cca8
push 0xffffffffffffffe7
call fcn.00405eb9
push str.Error_registering_DLL:_Could_not_initialize_OLE
jmp 0x401838
push 0xfffffffffffffff0
call fcn.004014d7
push 0xffffffffffffffdf
mov dword [ebp - 0x1c], eax
call fcn.004014d7
push 2
mov edi, eax
call fcn.004014d7
push 0xffffffffffffffcd
mov dword [ebp - 0xc], eax
call fcn.004014d7
push 0x45
mov dword [ebp - 0x10], eax
call fcn.004014d7
mov dword [ebp - 0x44], eax
mov eax, edi
call fcn.0040677e
test eax, eax
jne 0x4025f7
push 0x21
call fcn.004014d7
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sar ecx, 0x10
push ecx
mov ecx, eax
sar ecx, 8
mov esi, 0xff
and ecx, esi
push ecx
and eax, esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x1c]
push str.CreateShortCut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.00407166
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
push 0x4092ec
push 1
push ebx
push 0x4092fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402700
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x40930c
push eax
call dword [ecx]
mov dword [ebp - 8], eax
cmp eax, ebx
jl 0x4026f2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x7a6000
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
sar eax, 8
and eax, esi
je 0x402696
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x4026bb
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
and edi, esi
push edi
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 8], ebx
jl 0x4026e9
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], ebx
jge 0x402713
push 0x40cca8
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x401710
push 0x40cca8
push 0xfffffffffffffff4
jmp 0x401710
push ebx
call fcn.004014d7
push 0x11
mov esi, eax
call fcn.004014d7
push 0x23
mov edi, eax
call fcn.004014d7
push edi
push esi
push str.CopyFiles___s_____s_
mov dword [ebp - 0x44], eax
call fcn.00407166
add esp, 0xc
push esi
call fcn.0040719a
test eax, eax
jne 0x402760
push ebx
push 0xfffffffffffffff9
call fcn.00405eb9
jmp 0x401ac7
mov eax, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push edi
mov word [esi + eax*2 + 2], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov eax, dword [ebp - 0x44]
mov cx, word [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x5a], eax
mov word [ebp - 0x64], cx
call fcn.00405eb9
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x40166c.66
jmp 0x402753
cmp dword [ebp - 0x3c], 0xbadf00d
jne 0x401fc7
inc dword [0x799e14]
jmp case.0x40166c.66
push str._RM_
mov edi, 0x40cca8
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call fcn.00406c86
push edi
mov esi, 0x40d4a8
push esi
call fcn.00406c86
cmp dword [ebp - 0x3c], ebx
je 0x402803
push ebx
call fcn.004014d7
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x38], ebx
je 0x402812
push 0x11
call fcn.004014d7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x2c], ebx
je 0x402821
push 0x22
call fcn.004014d7
mov dword [ebp - 0x20], eax
push 0xffffffffffffffcd
call fcn.004014d7
mov ebx, eax
push ebx
push esi
push edi
push 0x40c4a8
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.00407166
add esp, 0x14
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401abf
push 0xa
pop esi
push 1
mov dword [ebp - 0x44], esi
call fcn.004014d7
push 0x12
mov ebx, eax
call fcn.004014d7
push 0xffffffffffffffdd
mov dword [ebp - 0x20], eax
call fcn.004014d7
push eax
push 0x3ff
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], si
jmp 0x401a9b
mov eax, dword [ebp - 0x38]
call fcn.00407094
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], ebx
jne 0x4028e5
push 2
call fcn.004015ce
mov edi, eax
cmp edi, ebx
je 0x401ac7
push 0x33
call fcn.004014d7
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x40d4a8
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push str.DeleteRegValue:___s_s____s_
call fcn.00407166
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402921
push 0x22
call fcn.004014d7
mov esi, eax
push esi
push dword [ebp - 0x20]
push str.DeleteRegKey:___s_s_
call fcn.00407166
mov eax, dword [ebp - 0x38]
add esp, 0xc
cmp eax, ebx
jne 0x402910
mov eax, dword [0x799e04]
add eax, 0x80000001
mov ecx, dword [ebp - 0x2c]
and ecx, 2
push ecx
push esi
push eax
call fcn.00401517
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
je case.0x40166c.66
jmp 0x401ac7
mov esi, dword [ebp - 0x3c]
cmp esi, ebx
jne 0x402942
mov esi, dword [0x799e04]
add esi, 0x80000001
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push 2
mov dword [ebp - 0x20], eax
call fcn.004014d7
push 0x11
mov dword [ebp - 0x1c], eax
call fcn.004014d7
mov dword [ebp - 0x14], eax
mov eax, esi
call fcn.00407094
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [0x799e30]
push ebx
or eax, 2
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
xor edi, edi
inc edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402aa3
mov dword [ebp - 0xc], ebx
mov esi, 0x40d4a8
cmp dword [ebp - 0x10], edi
jne 0x4029e6
push 0x23
call fcn.004014d7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
cmp dword [ebp - 0x20], edi
jne 0x4029d9
push str.WriteRegStr:___s_s____s___s_
call fcn.00407166
add esp, 0x14
jmp 0x402a62
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00407166
add esp, 0x14
push 4
pop edi
cmp dword [ebp - 0x10], edi
jne 0x402a15
push 3
pop ecx
call fcn.004014c1
push eax
push dword [ebp - 0x1c]
mov dword [0x40d4a8], eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00407166
add esp, 0x14
cmp dword [ebp - 0x10], 3
jne 0x402a62
mov ecx, dword [ebp - 0x24]
push 0x1800
push esi
push ebx
xor eax, eax
or eax, dword [ebp - 0x30]
xor edi, edi
or ecx, edi
push ecx
push eax
call fcn.004038f4
lea ecx, [ebp - 0x178]
push esi
push ecx
mov dword [ebp - 0xc], eax
call fcn.004070f4
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 8]
push str.WriteRegBin:___s_s____s___s_
call fcn.00407166
add esp, 0x1c
push dword [ebp - 0xc]
push esi
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402a7f
mov dword [ebp - 4], ebx
jmp 0x402a95
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 8]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.00407166
add esp, 0x10
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40166c.66
push dword [ebp - 0x14]
push dword [ebp - 8]
push str.WriteReg:_error_creating_key___s_s_
jmp 0x401c3f
push 0x20019
call fcn.004015ce
push 0x33
mov esi, eax
call fcn.004014d7
xor ecx, ecx
mov word [edi], cx
cmp esi, ebx
je 0x401ac7
lea ecx, [ebp - 0x44]
push ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 0x44], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402b2a
cmp dword [ebp - 0x10], 4
je 0x402b15
cmp dword [ebp - 0x10], ecx
je 0x402b04
cmp dword [ebp - 0x10], 2
jne 0x402b2a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x402b32
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x2c], ebx
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00406bd1
jmp 0x402b32
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], ecx
push esi
jmp 0x402a98
push 0x20019
call fcn.004015ce
push 3
pop ecx
mov esi, eax
call fcn.004014c1
xor ecx, ecx
mov word [edi], cx
cmp esi, ebx
je 0x401ac7
mov ecx, 0x3ff
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x2c], ebx
je 0x402b72
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402b0a
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x44]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402b0a
jmp 0x401ac7
cmp word [edi], bx
je case.0x40166c.66
mov ecx, edi
call fcn.00406bec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40166c.66
push 0xffffffffffffffed
call fcn.004014d7
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call fcn.00406923
cmp eax, 0xffffffff
jne 0x401dab
xor eax, eax
mov word [edi], ax
jmp 0x401ac7
cmp dword [ebp - 0x34], ebx
je 0x402bed
xor ecx, ecx
inc ecx
call fcn.004014c1
mov word [0x40cca8], ax
xor eax, eax
cmp dword [ebp - 0x40], 0x38
setne al
inc eax
jmp 0x402c2e
cmp eax, 0x38
jne 0x402c1e
push 0x21
call fcn.004014d7
push ebx
push ebx
push 0x400
mov esi, 0x40cca8
push esi
push 0xffffffffffffffff
push 0x40d4a8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402c2e
push 0x11
call fcn.004014d7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
cmp word [edi], bx
je 0x401ac7
push ebx
lea ecx, [ebp - 0x44]
push ecx
push eax
push 0x40cca8
mov ecx, edi
call fcn.00406bec
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401abf
push 2
pop ecx
call fcn.004014c1
mov dword [ebp - 0xc], eax
cmp eax, 1
jl case.0x40166c.66
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402c75
mov dword [ebp - 0xc], ecx
cmp word [edi], bx
je 0x402d64
mov ecx, edi
mov dword [ebp - 8], ebx
call fcn.00406bec
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], ebx
jle 0x402d64
mov edi, ebx
cmp dword [ebp - 0x40], 0x39
push ebx
lea eax, [ebp - 0x10]
push eax
jne 0x402ce2
push 1
lea eax, [ebp - 0x51]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d66
cmp dword [ebp - 0x10], 1
jne 0x402d66
push 1
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x51]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x402cfb
push 0x3f
pop eax
mov dword [ebp - 0x1c], eax
jmp 0x402cfe
push 2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d66
cmp dword [ebp - 0x10], 2
jne 0x402d66
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
jne 0x402d2c
cmp word [ebp - 8], 0xd
je 0x402d3b
cmp word [ebp - 8], 0xa
je 0x402d3b
movzx ecx, ax
mov word [esi + edi*2], ax
inc edi
mov dword [ebp - 8], ecx
cmp ax, bx
je 0x402d66
cmp edi, dword [ebp - 0xc]
jl 0x402c96
jmp 0x402d66
movzx eax, ax
push eax
push esi
call fcn.00406bd1
jmp 0x4030ea
cmp word [ebp - 8], ax
je 0x402d54
cmp ax, 0xd
je 0x402d4d
cmp ax, 0xa
jne 0x402d54
mov word [esi + edi*2], ax
inc edi
jmp 0x402d66
push 1
push ebx
push 0xfffffffffffffffe
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402d66
mov edi, ebx
xor eax, eax
mov word [esi + edi*2], ax
cmp edi, ebx
jmp 0x401ac1
cmp word [edi], bx
je case.0x40166c.66
push dword [ebp - 0x30]
push ebx
push 2
pop ecx
call fcn.004014c1
push eax
mov ecx, edi
call fcn.00406bec
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x38], ebx
jl case.0x40166c.66
push eax
push esi
jmp 0x4017c9
cmp word [edi], bx
je case.0x40166c.66
mov ecx, edi
call fcn.00406bec
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x40166c.66
cmp word [esi], bx
je 0x401aa1
lea eax, [ebp - 0x3c8]
push eax
mov ecx, esi
call fcn.00406bec
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401aa1
jmp 0x402e16
push 2
call fcn.004014d7
lea ecx, [ebp - 0x3c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402e0f
xor eax, eax
mov word [esi], ax
jmp 0x402bc4
push eax
push esi
call fcn.00406bd1
lea eax, [ebp - 0x39c]
push eax
push edi
call fcn.00406c86
jmp case.0x40166c.66
push 0xfffffffffffffff0
mov dword [ebp - 0x18], 0xfffffd66
or edi, 0xffffffff
call fcn.004014d7
mov dword [ebp - 8], eax
call fcn.0040677e
test eax, eax
jne 0x402e4c
push 0xffffffffffffffed
call fcn.004014d7
push dword [ebp - 8]
call fcn.004068fb
push 2
push 0x40000000
push dword [ebp - 8]
call fcn.00406923
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x402f3d
mov eax, dword [0x799da4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x44], eax
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x402f34
push 3
push 0x80000000
push 0x7a8800
call fcn.00406923
push ebx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x402f04
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
push esi
xor edi, edi
push ebx
xor eax, eax
or eax, dword [ebp - 0x38]
or ecx, edi
push ecx
push eax
call fcn.004038f4
jmp 0x402ef7
mov edi, dword [esi]
mov eax, dword [esi + 4]
add eax, dword [ebp - 0xc]
add esi, 8
push edi
mov ecx, esi
call fcn.004068dd
add esi, edi
cmp byte [esi], bl
jne 0x402ee2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push dword [ebp - 0x10]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004038f4
mov dword [ebp - 0x18], eax
mov edi, edx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
push edi
push dword [ebp - 0x18]
push str.created_uninstaller:__I64d____s_
call fcn.00407166
add esp, 0x10
push 0xfffffffffffffff3
pop esi
cmp edi, ebx
jg 0x402f72
jl 0x402f5f
cmp dword [ebp - 0x18], ebx
jae 0x402f72
push 0xffffffffffffffef
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
push esi
call fcn.004014ad
jmp case.0x40166c.66
cmp dword [ebp - 0x3c], ebx
je 0x402fc0
push dword [ebp - 0x38]
push str.settings_logging_to__d
call fcn.00407166
mov eax, dword [ebp - 0x38]
push eax
push str.logging_set_to__d
mov dword [0x795cc8], eax
call fcn.00407166
add esp, 0x10
cmp dword [ebp - 0x38], ebx
je 0x402fb4
call fcn.00404877
jmp case.0x40166c.66
push 1
call fcn.00406ff2
jmp case.0x40166c.66
push 1
call fcn.004014d7
push eax
push 0x40987c
jmp 0x401a0b
xor ecx, ecx
call fcn.004014c1
mov dword [ebp - 0x44], eax
cmp eax, dword [0x79954c]
jae 0x401ac7
mov edi, eax
mov eax, dword [ebp - 0x34]
imul edi, edi, 0x818
add edi, dword [0x799548]
cmp eax, ebx
jl 0x403012
mov ecx, dword [edi + eax*4]
jne 0x40300c
add edi, 0x18
push edi
push esi
jmp 0x402e1e
push ecx
jmp 0x402da1
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x403029
xor ecx, ecx
inc ecx
call fcn.004014c1
mov dword [ebp - 0x38], eax
jmp 0x40303c
push dword [ebp - 0x2c]
lea eax, [edi + 0x18]
push eax
call fcn.00406c9e
or dword [edi + 8], 0x100
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov dword [edi + eax*4], ecx
cmp dword [ebp - 0x30], ebx
je case.0x40166c.66
mov ecx, dword [ebp - 0x44]
call fcn.004011ac
jmp case.0x40166c.66
xor ecx, ecx
call fcn.004014c1
cmp eax, 0x20
jae 0x401ac7
cmp dword [ebp - 0x30], ebx
je 0x403090
cmp dword [ebp - 0x34], ebx
je 0x403085
mov ecx, eax
call fcn.004012c6
push ebx
push ebx
call fcn.00401218
jmp case.0x40166c.66
push ebx
call fcn.0040130b
jmp 0x402da0
cmp dword [ebp - 0x34], ebx
je 0x4030a7
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x79952c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x40166c.66
mov ecx, dword [0x79952c]
push dword [ecx + eax*4 + 0x94]
push esi
call fcn.00406c9e
jmp case.0x40166c.66
mov eax, dword [0x795c8c]
and eax, dword [ebp - 0x3c]
push ebx
push eax
push 0xb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x3c], ebx
je case.0x40166c.66
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x799e08], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret