Function at 0x401609
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x3e8
mov eax, dword [0x4735f4]
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
and dword [ebp + 0x70], 0
push 9
pop ecx
lea edi, [ebp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x38]
mov edi, esi
mov ebx, edx
imul edi, edi, 0x4008
imul ebx, ebx, 0x4008
mov dword [ebp + 0x68], eax
mov eax, section..ndata
add edi, eax
add ebx, eax
lea eax, [ebp + 0x3c]
mov dword [0x40c0e0], eax
lea eax, [ecx - 2]
cmp eax, 0x46
ja case.0x401664.69
jmp dword [eax*4 + 0x4033f9]
push esi
push str.Jump:__d
call fcn.00406c98
mov eax, dword [ebp + 0x3c]
pop ecx
pop ecx
jmp 0x4033ed
xor esi, esi
call fcn.0040145a
push eax
push str.Aborting:___s_
call fcn.00406c98
pop ecx
pop ecx
push esi
push dword [ebp + 0x3c]
call fcn.00405687
mov eax, 0x7fffffff
jmp 0x4033ed
inc dword [0x46b5b4]
cmp dword [ebp + 0x68], 0
je 0x40169d
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40169d
push esi
call fcn.00401373
mov esi, eax
dec esi
push esi
push str.Call:__d
call fcn.00406c98
pop ecx
pop ecx
push 0
push esi
call fcn.00401392
jmp 0x4033ed
xor esi, esi
call fcn.0040145a
push eax
push str.DetailPrint:__s
call fcn.00406c98
pop ecx
pop ecx
push esi
push dword [ebp + 0x3c]
call fcn.00405687
jmp case.0x401664.69
xor ecx, ecx
call fcn.0040143d
mov esi, eax
push esi
push str.Sleep__d_
mov dword [ebp + 0x24], edx
call fcn.00406c98
cmp esi, 1
pop ecx
pop ecx
jg 0x401723
xor esi, esi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401664.69
push str.BringToFront
call fcn.00406c98
pop ecx
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401664.69
cmp dword [ebp + 0x44], 0
jg 0x401782
jne 0x401761
mov eax, esi
shl eax, 2
mov ecx, dword [eax + 0x4736a0]
mov dword [eax + 0x473660], ecx
xor ecx, ecx
inc ecx
call fcn.0040143d
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
mov dword [ebp + 0x24], edx
mov dword [ecx*4 + 0x4736a0], eax
push str.SetFlag:__d_d
jmp 0x401c24
mov eax, esi
shl eax, 2
mov ecx, dword [eax + 0x473660]
mov dword [eax + 0x4736a0], ecx
jmp case.0x401664.69
mov esi, dword [ebp + 0x44]
lea esi, [esi*4 + 0x4736a0]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp + 0x48]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 + 0x3c]
jmp 0x4033ed
push dword [edx*4 + 0x4736a0]
push edi
call fcn.004068d3
jmp case.0x401664.69
mov eax, dword [0x46b5c0]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4017e1
push edx
push eax
call edi
mov esi, dword [ebp + 0x3c]
mov eax, dword [0x46b5ac]
test eax, eax
je case.0x401664.69
push esi
push eax
call edi
jmp case.0x401664.69
push 0xfffffffffffffff0
pop esi
call fcn.0040145a
push dword [ebp + 0x40]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00406c98
add esp, 0xc
push dword [ebp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x401664.69
mov dword [ebp + 0x70], 1
push str.SetFileAttributes_failed.
call fcn.00406c98
pop ecx
jmp case.0x401664.69
push 0xfffffffffffffff0
pop esi
call fcn.0040145a
push dword [ebp + 0x40]
mov ebx, eax
push ebx
push str.CreateDirectory:___s____d_
call fcn.00406c98
add esp, 0xc
push ebx
call fcn.00406529
mov esi, eax
test esi, esi
je 0x4018ee
push 0x5c
push esi
call fcn.004064d5
mov esi, eax
movzx edi, word [esi]
and word [esi], 0
test di, di
jne 0x401893
cmp dword [ebp + 0x44], 0
je 0x401893
call fcn.00406e4c
test eax, eax
je 0x401893
push ebx
call fcn.00406356
jmp 0x401899
push ebx
call fcn.004063d7
test eax, eax
je 0x4018d3
cmp eax, 0xb7
je 0x4018b8
push eax
push ebx
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.00406c98
add esp, 0xc
inc dword [ebp + 0x70]
jmp 0x4018e0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4018e0
push ebx
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.00406c98
inc dword [ebp + 0x70]
jmp 0x4018de
push ebx
push str.CreateDirectory:___s__created
call fcn.00406c98
pop ecx
pop ecx
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x401866
cmp dword [ebp + 0x40], 0
je 0x401932
push 0xffffffffffffffe6
call fcn.0040142c
push ebx
push 0x4cc0b0
call fcn.0040698c
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x401664.69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.SetCurrentDirectory__s__failed___d_
call fcn.00406c98
add esp, 0xc
inc dword [ebp + 0x70]
jmp case.0x401664.69
push 0xfffffffffffffff5
call fcn.0040142c
jmp case.0x401664.69
xor esi, esi
call fcn.0040145a
mov esi, eax
push esi
call fcn.00406cca
test eax, eax
je 0x40196a
push dword [ebp + 0x40]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.00406c98
add esp, 0xc
mov eax, dword [ebp + 0x40]
jmp 0x4033ed
push dword [ebp + 0x44]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.00406c98
add esp, 0xc
mov eax, dword [ebp + 0x44]
jmp 0x4033ed
push 0xffffffffffffffd0
pop esi
call fcn.0040145a
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.0040145a
push 0x13
pop esi
mov ebx, eax
call fcn.0040145a
mov esi, eax
push esi
push str.Rename:__s
call fcn.00406c98
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4019c1
push 0xffffffffffffffe3
jmp 0x401934
cmp dword [ebp + 0x44], 0
je 0x4019e7
push edi
call fcn.00406cca
test eax, eax
je 0x4019e7
push ebx
push edi
call fcn.00407394
push 0xffffffffffffffe4
call fcn.0040142c
push esi
push str.Rename_on_reboot:__s
jmp 0x4019f4
push esi
push str.Rename_failed:__s
mov dword [ebp + 0x70], 1
call fcn.00406c98
pop ecx
jmp 0x401835
xor esi, esi
call fcn.0040145a
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push ebx
mov edi, 0x2004
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401a43
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x401a4e
cmp word [eax], 0
je 0x401a4e
push esi
call fcn.00406cca
test eax, eax
je 0x401a43
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.0040698c
jmp 0x401a4e
and word [ebx], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x44], 0
jne case.0x401664.69
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x401664.69
or esi, 0xffffffff
call fcn.0040145a
lea ecx, [ebp + 0x7c]
push ecx
push edi
push 0x2004
xor esi, esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x401664.69
mov dword [ebp + 0x70], 1
mov word [edi], si
jmp case.0x401664.69
push 0xffffffffffffffef
pop esi
call fcn.0040145a
push eax
push edi
call fcn.00406655
test eax, eax
jne case.0x401664.69
mov dword [ebp + 0x70], 1
jmp case.0x401664.69
push 0x31
pop esi
call fcn.0040145a
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 + 0x6c], esi
mov dword [ebp + 0x7c], ecx
call fcn.00406c98
add esp, 0x10
push esi
call fcn.004064f4
test eax, eax
push esi
mov esi, 0x40c148
je 0x401b03
push esi
call fcn.0040698c
jmp 0x401b1a
push 0x4cc0b0
push esi
call fcn.0040698c
push eax
call fcn.00406eac
push eax
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.004069c9
mov edi, 0x414158
mov ebx, 0x410150
cmp dword [ebp + 0x7c], 3
jl 0x401b61
push esi
call fcn.00406cca
xor ecx, ecx
test eax, eax
je 0x401b4c
lea ecx, [ebp + 0x4c]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x7c], 0
jne 0x401b6d
push esi
call fcn.00406600
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00406626
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
jne 0x401c47
cmp dword [ebp + 0x7c], 0
jne 0x401c04
push esi
push str.File:_error_creating___s_
call fcn.00406c98
pop ecx
pop ecx
push section..ndata
push edi
call fcn.0040698c
push esi
push section..ndata
call fcn.0040698c
push dword [ebp + 0x54]
push ebx
call fcn.00406fd5
push edi
push section..ndata
call fcn.0040698c
mov eax, dword [ebp + 0x3c]
sar eax, 3
push eax
push ebx
call fcn.00406471
sub eax, 4
jne 0x401bee
push str.File:_error__user_retry
call fcn.00406c98
pop ecx
jmp 0x401b2a
dec eax
je 0x401c31
push str.File:_error__user_abort
call fcn.00406c98
pop ecx
push esi
push 0xfffffffffffffffa
jmp 0x401698
push dword [ebp + 0x6c]
push 0xffffffffffffffe2
call fcn.00405687
cmp dword [ebp + 0x7c], 2
jne 0x401c1b
mov dword [ebp + 0x70], 1
push dword [ebp + 0x7c]
push esi
push str.File:_skipped:___s___overwriteflag_d_
call fcn.00406c98
add esp, 0xc
jmp case.0x401664.69
push str.File:_error__user_cancel
call fcn.00406c98
inc dword [0x4736a8]
pop ecx
jmp 0x4033eb
push dword [ebp + 0x6c]
push 0xffffffffffffffea
call fcn.00405687
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x48]
mov eax, dword [ebp + 0x44]
inc dword [0x4736d4]
xor edi, edi
cmp dword [ebp + 0x38], 0x15
push edi
push edi
push dword [ebp + 0x64]
push ecx
push eax
jne 0x401c73
push 1
jmp 0x401c74
push edi
call fcn.0040376a
dec dword [0x4736d4]
push esi
mov ebx, edx
push ebx
push eax
push str.File:_wrote__d_to___s_
mov dword [ebp + 0x20], eax
call fcn.00406c98
add esp, 0x10
cmp dword [ebp + 0x4c], 0xffffffff
jne 0x401ca0
cmp dword [ebp + 0x50], 0xffffffff
je 0x401caf
lea eax, [ebp + 0x4c]
push eax
push edi
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jg case.0x401664.69
jl 0x401ccb
cmp dword [ebp + 0x20], edi
jae case.0x401664.69
cmp dword [ebp + 0x20], 0xfffffffe
jne 0x401ce9
cmp ebx, 0xffffffff
jne 0x401ce9
push 0xffffffffffffffe9
push esi
call fcn.00406fd5
push dword [ebp + 0x6c]
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401cf1
push 0xffffffffffffffee
push esi
call fcn.00406fd5
push esi
push 0x409a34
call fcn.00406c98
pop ecx
pop ecx
push 0x200010
push esi
call fcn.00406471
jmp 0x40169d
cmp dword [0x40c014], 0xffffffff
mov dword [ebp + 0x70], 1
je 0x401d27
cmp dword [0x473640], 0
jmp 0x401d8f
cmp dword [0x473640], 0
je case.0x401664.69
xor esi, esi
call fcn.0040145a
mov esi, eax
push esi
call fcn.004064f4
test eax, eax
jne 0x401d74
push 0x4e00d8
mov ebx, 0x410150
push ebx
call fcn.0040698c
push ebx
call fcn.00406f07
push eax
push ebx
call fcn.0040698c
push ebx
push str._s.nsisbin
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.004069c9
push 3
push 0x80000000
push esi
call fcn.00406626
mov dword [0x40c014], eax
cmp eax, 0xffffffff
je case.0x401664.69
and dword [ebp + 0x70], 0
jmp case.0x401664.69
xor esi, esi
call fcn.0040145a
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00406c98
pop ecx
pop ecx
push dword [ebp + 0x40]
push esi
call fcn.004073c0
jmp case.0x401664.69
push 0x31
pop esi
call fcn.0040145a
mov esi, eax
push esi
push dword [ebp + 0x3c]
push str.MessageBox:__d___s_
call fcn.00406c98
add esp, 0xc
push dword [ebp + 0x3c]
push esi
call fcn.00406471
test eax, eax
je 0x401ab1
cmp eax, dword [ebp + 0x44]
jne 0x401dfb
mov eax, dword [ebp + 0x48]
jmp 0x4033ed
cmp eax, dword [ebp + 0x4c]
jne case.0x401664.69
mov eax, dword [ebp + 0x50]
jmp 0x4033ed
push 0xfffffffffffffff0
pop esi
call fcn.0040145a
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401dad
xor esi, esi
inc esi
call fcn.0040145a
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4017c0
push 2
pop ecx
call fcn.0040143d
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov ebx, eax
mov dword [ebp + 0x34], edx
call fcn.0040145a
push eax
mov dword [ebp + 0x34], eax
call sub.KERNEL32.dll_lstrlenW
and word [edi], 0
cmp dword [ebp + 0x24], 0
mov esi, eax
je 0x401e6f
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x401664.69
test ebx, ebx
jge 0x401e83
add ebx, eax
js case.0x401664.69
cmp ebx, eax
jle 0x401e89
mov ebx, eax
mov eax, dword [ebp + 0x34]
lea eax, [eax + ebx*2]
push eax
push edi
call fcn.0040698c
test esi, esi
jge 0x401eab
push edi
call sub.KERNEL32.dll_lstrlenW
add esi, eax
jns 0x401eab
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x2004
jge case.0x401664.69
and word [edi + esi*2], 0
jmp case.0x401664.69
push 0x20
pop esi
call fcn.0040145a
push 0x31
pop esi
mov edi, eax
call fcn.0040145a
cmp dword [ebp + 0x4c], 0
push eax
push edi
jne 0x401eee
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401df3
jmp 0x40197b
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401ee1
xor esi, esi
inc esi
call fcn.0040145a
push 0x2004
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401f23
cmp dword [ebp + 0x44], 0
je 0x401f2a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401f2a
and word [edi], 0
mov dword [ebp + 0x70], esi
and word [edi + 0x4006], 0
jmp case.0x401664.69
mov esi, dword [ebp + 0x50]
xor ecx, ecx
call fcn.0040143d
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
test esi, esi
mov dword [ebp + 0x24], edx
jne 0x401f6b
cmp edi, eax
jl 0x401df3
jle 0x40197b
mov eax, dword [ebp + 0x4c]
jmp 0x4033ed
cmp edi, eax
jb 0x401df3
jbe 0x40197b
jmp 0x401f63
xor ecx, ecx
inc ecx
call fcn.0040143d
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
mov ecx, eax
mov eax, dword [ebp + 0x48]
cmp eax, 0xd
mov dword [ebp + 0x24], edx
ja case.default.0x401f9d
jmp dword [eax*4 + 0x403515]
add esi, ecx
jmp case.default.0x401f9d
sub esi, ecx
jmp case.default.0x401f9d
imul ecx, esi
mov esi, ecx
jmp case.default.0x401f9d
test ecx, ecx
je 0x401fbe
mov eax, esi
cdq
idiv ecx
jmp 0x401fdc
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401f9d
or ecx, esi
jmp 0x401faf
and ecx, esi
jmp 0x401faf
xor ecx, esi
jmp 0x401faf
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401f9d
test esi, esi
jne 0x401fe8
test ecx, ecx
je 0x401ff1
xor esi, esi
inc esi
jmp case.default.0x401f9d
test esi, esi
jne 0x401fe4
xor esi, esi
jmp case.default.0x401f9d
test ecx, ecx
je 0x401fbe
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401f9d
shl esi, cl
jmp case.default.0x401f9d
sar esi, cl
jmp case.default.0x401f9d
shr esi, cl
push esi
jmp 0x4017c0
xor esi, esi
inc esi
call fcn.0040145a
push 2
pop ecx
mov esi, eax
call fcn.0040143d
push eax
push esi
push edi
mov dword [ebp + 0x24], edx
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x401c29
mov eax, dword [ebp + 0x44]
test eax, eax
mov esi, dword [0x40c0e4]
je 0x4020a1
dec eax
test esi, esi
je 0x402051
test eax, eax
mov esi, dword [esi]
jne 0x402042
test esi, esi
jne 0x402074
push dword [ebp + 0x44]
push str.Exch:_stack____d_elements
call fcn.00406c98
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00406fd5
push eax
jmp 0x401d04
lea edi, [esi + 4]
push edi
mov esi, 0x40c148
push esi
call fcn.0040698c
mov eax, dword [0x40c0e4]
add eax, 4
push eax
push edi
call fcn.0040698c
mov eax, dword [0x40c0e4]
push esi
add eax, 4
push eax
jmp 0x403056
test edx, edx
je 0x4020d0
test esi, esi
jne 0x4020b9
push str.Pop:_stack_empty
call fcn.00406c98
pop ecx
jmp 0x401ab1
lea eax, [esi + 4]
push eax
push edi
call fcn.0040698c
mov eax, dword [esi]
mov dword [0x40c0e4], eax
push esi
jmp 0x4025e6
push 0x400c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x3c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406fd5
mov eax, dword [0x40c0e4]
mov dword [esi], eax
mov dword [0x40c0e4], esi
jmp case.0x401664.69
push 3
pop ecx
call fcn.0040143d
push 4
pop ecx
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x64], eax
call fcn.0040143d
test byte [ebp + 0x50], 1
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x7c], eax
je 0x40212a
push 0x33
pop esi
call fcn.0040145a
mov dword [ebp + 0x64], eax
test byte [ebp + 0x50], 2
je 0x40213b
push 0x44
pop esi
call fcn.0040145a
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x38], 0x23
jne 0x402190
xor ecx, ecx
inc ecx
call fcn.0040143d
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
mov ecx, dword [ebp + 0x50]
sar ecx, 2
mov dword [ebp + 0x24], edx
je 0x402180
lea edx, [ebp + 0x6c]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x4021c7
push dword [ebp + 0x7c]
push dword [ebp + 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4021c4
xor esi, esi
inc esi
call fcn.0040145a
push 0x12
pop esi
mov ebx, eax
call fcn.0040145a
mov cx, word [eax]
neg cx
sbb ecx, ecx
and ecx, eax
mov ax, word [ebx]
neg ax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x3c], 0
jl case.0x401664.69
push dword [ebp + 0x6c]
jmp 0x4017c0
xor ecx, ecx
call fcn.0040143d
push eax
mov dword [ebp + 0x24], edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40197b
jmp 0x401962
push 2
pop ecx
call fcn.0040143d
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
push esi
push eax
mov dword [ebp + 0x24], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401e2c
mov eax, dword [0x473628]
xor ecx, ecx
lea esi, [eax + edx]
call fcn.0040143d
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x24], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x401664.69
test word [ebp + 0x48], 0x100
je 0x402252
push 2
pop ecx
call fcn.0040143d
mov dword [ebp + 0x24], edx
jmp 0x40225e
push dword [ebp + 0x44]
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x48]
mov dword [ebp + 0x7c], eax
mov eax, ecx
shr eax, 0x1f
mov dword [ebp + 0x64], eax
mov eax, ecx
shr eax, 0x1e
mov esi, ecx
mov ebx, ecx
and esi, 3
and eax, 1
and ebx, 4
test ecx, 0x10000
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x2c], eax
je 0x402299
push 0x11
pop esi
call fcn.0040145a
mov esi, dword [ebp + 0x6c]
jmp 0x40229d
movzx eax, word [ebp + 0x40]
mov dword [ebp + 0x34], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x48]
and eax, 0xfef0
push eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp + 0x64]
push eax
neg ebx
push esi
push dword [ebp + 0x34]
sbb ebx, ebx
and ebx, dword [0x4735f8]
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
push ebx
push esi
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4022fc
test esi, esi
jne 0x4022fc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x3c], 0
jl case.0x401664.69
push ebx
jmp 0x4017c0
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.0040143d
push 0x48
push 0x5a
push esi
mov ebx, eax
mov dword [ebp + 0x24], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x68]
neg eax
mov dword [0x40c0e8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.0040143d
push dword [ebp + 0x40]
mov dword [0x40c0f8], eax
mov al, byte [ebp + 0x4c]
mov cl, al
and cl, 1
mov byte [0x40c0fc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40c104
mov dword [ebp + 0x24], edx
mov byte [0x40c0fd], cl
mov byte [0x40c0fe], al
mov byte [0x40c0ff], 1
call fcn.00406fd5
push 0x40c0e8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x401e2c
xor ecx, ecx
call fcn.0040143d
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
cmp dword [ebp + 0x44], 0
mov edi, eax
mov dword [ebp + 0x24], edx
je 0x4023c6
push str.HideWindow
call fcn.00406c98
pop ecx
cmp dword [ebp + 0x48], 0
push edi
push esi
jne 0x4023d9
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x401664.69
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x401664.69
xor esi, esi
call fcn.0040145a
push 0x31
pop esi
mov edi, eax
call fcn.0040145a
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.0040145a
push 0x15
pop esi
mov ebx, eax
call fcn.0040145a
push 0xffffffffffffffec
call fcn.0040142c
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x7c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 8], eax
mov ax, word [edi]
neg ax
mov dword [ebp - 4], esi
sbb eax, eax
and eax, edi
mov dword [ebp - 8], eax
mov ax, word [ebx]
neg ax
mov dword [ebp + 4], 0x4cc0b0
sbb eax, eax
and eax, ebx
mov dword [ebp], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406437
test eax, eax
jne 0x402473
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push edi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.00406c98
add esp, 0x14
jmp 0x401ab1
test byte [ebp - 0x10], 0x40
je 0x40248a
push dword [ebp + 0x24]
call fcn.00406e0a
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
push edi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.00406c98
add esp, 0x10
jmp case.0x401664.69
xor esi, esi
call fcn.0040145a
mov esi, eax
push esi
push str.Exec:_command__s_
call fcn.00406c98
pop ecx
pop ecx
push esi
push 0xffffffffffffffeb
call fcn.00405687
push esi
call fcn.004063f4
mov edi, eax
test edi, edi
push esi
je 0x402502
push str.Exec:_success____s__
call fcn.00406c98
cmp dword [ebp + 0x44], 0
pop ecx
pop ecx
je 0x4024fc
push edi
call fcn.00406e0a
cmp dword [ebp + 0x40], 0
jl 0x4024f1
push eax
push ebx
call fcn.004068d3
jmp 0x4024fc
test eax, eax
je 0x4024fc
mov dword [ebp + 0x70], 1
push edi
jmp 0x402d23
push 0x4097d8
jmp 0x4019ed
push 2
pop esi
call fcn.0040145a
push eax
call fcn.00406cca
mov esi, eax
test esi, esi
je 0x402531
push dword [esi + 0x14]
push ebx
call fcn.004068d3
push dword [esi + 0x18]
jmp 0x4017c0
and word [edi], 0
and word [ebx], 0
jmp 0x401ab1
push 0xffffffffffffffee
pop esi
call fcn.0040145a
lea ecx, [ebp + 0x24]
push ecx
push eax
push 0xa
mov dword [ebp + 0x6c], eax
call fcn.00406d61
call eax
and word [edi], 0
and word [ebx], 0
mov esi, eax
test esi, esi
mov dword [ebp + 0x70], 1
je case.0x401664.69
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x7c], eax
je case.0x401664.69
push 0xb
call fcn.00406d61
push 0xc
mov dword [ebp + 0x2c], eax
call fcn.00406d61
push dword [ebp + 0x7c]
mov dword [ebp + 0x64], eax
push esi
push 0
push dword [ebp + 0x6c]
call dword [ebp + 0x2c]
test eax, eax
je 0x4025e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x34]
push eax
push 0x4097d4
push dword [ebp + 0x7c]
call dword [ebp + 0x64]
test eax, eax
je 0x4025e3
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x48]
push dword [eax + ecx*4 + 8]
push edi
call fcn.004068d3
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x34]
push dword [ecx + eax*4 + 0xc]
push ebx
call fcn.004068d3
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x401664.69
cmp dword [0x4736e0], 0
mov dword [ebp + 0x70], 1
jl 0x4026e2
push 0xfffffffffffffff0
pop esi
call fcn.0040145a
xor esi, esi
inc esi
mov edi, eax
call fcn.0040145a
cmp dword [ebp + 0x4c], 0
mov ebx, eax
je 0x40262d
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
mov dword [ebp + 0x7c], eax
jne 0x402643
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp + 0x7c], eax
je 0x4026d0
push ebx
push dword [ebp + 0x7c]
call fcn.00406dce
mov esi, eax
test esi, esi
je 0x402691
and dword [ebp + 0x70], 0
cmp dword [ebp + 0x44], 0
je 0x402673
push dword [ebp + 0x44]
call fcn.0040142c
call esi
test eax, eax
je 0x4026a8
mov dword [ebp + 0x70], 1
jmp 0x4026a8
push section..data
push 0x40c0e4
push section..ndata
push 0x2004
push dword [ebp + 0x68]
call esi
add esp, 0x14
jmp 0x4026a8
push ebx
push 0xfffffffffffffff7
call fcn.00405687
push edi
push ebx
push str.Error_registering_DLL:__s_not_found_in__s
call fcn.00406c98
add esp, 0xc
cmp dword [ebp + 0x48], 0
jne case.0x401664.69
push dword [ebp + 0x7c]
call fcn.004043b3
test eax, eax
je case.0x401664.69
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x401664.69
push 0xfffffffffffffff6
call fcn.0040142c
push edi
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x4019f4
push 0xffffffffffffffe7
call fcn.0040142c
push str.Error_registering_DLL:_Could_not_initialize_OLE
jmp 0x401830
push 0xfffffffffffffff0
pop esi
call fcn.0040145a
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x18], eax
call fcn.0040145a
push 2
pop esi
mov dword [ebp + 0x6c], eax
call fcn.0040145a
push 0xffffffffffffffcd
pop esi
mov dword [ebp + 0x2c], eax
call fcn.0040145a
push 0x45
pop esi
mov dword [ebp + 0x64], eax
call fcn.0040145a
push dword [ebp + 0x6c]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x4c]
mov ebx, eax
mov ecx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0x8000
and eax, 0xffff
sar edi, 0xc
and ebx, 0xfff
mov dword [ebp + 0x68], ecx
and edi, 7
mov dword [ebp + 0x34], eax
call fcn.004064f4
test eax, eax
jne 0x402767
push 0x21
pop esi
call fcn.0040145a
push dword [ebp + 0x34]
mov esi, dword [ebp + 0x64]
push edi
push ebx
push esi
push dword [ebp + 0x2c]
push dword [ebp + 0x6c]
push dword [ebp - 0x18]
push str.CreateShortcut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.00406c98
add esp, 0x20
lea eax, [ebp + 0x7c]
push eax
push 0x40ab80
push 1
push 0
push 0x40ab90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402857
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x5c]
push edx
push 0x40aba0
push eax
call dword [ecx]
test eax, eax
mov dword [ebp + 0x64], eax
jl 0x402848
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x68], 0
mov dword [ebp + 0x64], eax
jne 0x4027e5
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x4cc0b0
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x4027f3
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp word [esi], 0
je 0x402810
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push ebx
push esi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x64], 0
jl 0x40283f
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x18]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x64], 0
jge 0x402865
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401934
push 0xfffffffffffffff4
jmp 0x401934
xor esi, esi
call fcn.0040145a
push 0x11
pop esi
mov edi, eax
call fcn.0040145a
push 0x23
pop esi
mov ebx, eax
call fcn.0040145a
push ebx
push edi
push str.CopyFiles___s_____s_
mov esi, eax
call fcn.00406c98
add esp, 0xc
push edi
call fcn.00406cca
test eax, eax
jne 0x4028b0
push 0
push 0xfffffffffffffff9
call fcn.00405687
jmp 0x401ab1
mov eax, dword [ebp + 0x68]
push edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 2
call sub.KERNEL32.dll_lstrlenW
and word [edi + eax*2 + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
and word [ebx + eax*2 + 2], 0
mov ax, word [ebp + 0x44]
push esi
push 0
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x22], esi
mov word [ebp + 0x18], ax
call fcn.00405687
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x401664.69
jmp 0x4028a2
cmp esi, 0xbadf00d
jne 0x402060
inc dword [0x4736b4]
jmp case.0x401664.69
xor esi, esi
push str._RM_
mov ebx, 0x410150
push ebx
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x7c], esi
call fcn.0040698c
push ebx
mov edi, 0x414158
push edi
call fcn.0040698c
cmp dword [ebp + 0x3c], esi
je 0x40294d
call fcn.0040145a
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x40], 0
je 0x40295e
push 0x11
pop esi
call fcn.0040145a
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x4c], 0
je 0x40296f
push 0x22
pop esi
call fcn.0040145a
mov dword [ebp + 0x7c], eax
push 0xffffffffffffffcd
pop esi
call fcn.0040145a
mov esi, eax
push esi
push edi
push ebx
push 0x40c148
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.00406c98
add esp, 0x14
push esi
push dword [ebp + 0x7c]
push dword [ebp + 0x34]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401aa9
push 0xa
pop ebx
xor esi, esi
inc esi
mov dword [ebp + 0x7c], ebx
call fcn.0040145a
push 0x12
pop esi
mov dword [ebp + 0x34], eax
call fcn.0040145a
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x24], eax
call fcn.0040145a
push eax
push 0x2003
push edi
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [edi], bx
jne case.0x401664.69
and word [edi], 0
mov dword [ebp + 0x70], 1
jmp case.0x401664.69
push edx
mov edi, edx
call fcn.00406b0f
cmp dword [ebp + 0x4c], 0
pop ecx
mov dword [ebp + 0x7c], eax
jne 0x402a4e
push 2
pop eax
call fcn.004014a7
mov edi, eax
test edi, edi
je 0x401ab1
push 0x33
pop esi
call fcn.0040145a
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x414158
push dword [ebp + 0x7c]
mov ebx, eax
push str.DeleteRegValue:___s_s____s_
call fcn.00406c98
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a77
push 0x22
pop esi
call fcn.0040145a
mov esi, eax
push esi
push dword [ebp + 0x7c]
push str.DeleteRegKey:___s_s_
call fcn.00406c98
mov eax, dword [ebp + 0x4c]
add esp, 0xc
sar eax, 1
push eax
push edi
call fcn.004015c9
mov ebx, eax
test ebx, ebx
je case.0x401664.69
jmp 0x401ab1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x54]
push 2
mov edi, esi
pop esi
mov dword [ebp + 0x64], eax
call fcn.0040145a
push 0x11
pop esi
mov dword [ebp + 0x68], eax
call fcn.0040145a
push edi
mov dword [ebp + 0x7c], eax
call fcn.00406b0f
pop ecx
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x24]
push eax
push 0x100022
push dword [ebp + 0x7c]
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.00401495
push eax
call fcn.00406827
mov ebx, eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, dword [ebp + 0x24]
je 0x402c22
xor esi, esi
cmp dword [ebp + 0x6c], 1
mov edi, 0x414158
jne 0x402b31
push 0x23
pop esi
call fcn.0040145a
push edi
call sub.KERNEL32.dll_lstrlenW
cmp dword [ebp + 0x64], 1
push edi
push dword [ebp + 0x68]
lea esi, [eax + eax + 2]
push dword [ebp + 0x7c]
push dword [ebp + 0x5c]
jne 0x402b24
push str.WriteRegStr:___s_s____s___s_
call fcn.00406c98
add esp, 0x14
jmp 0x402be6
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00406c98
add esp, 0x14
cmp dword [ebp + 0x6c], 4
jne 0x402b61
push 3
pop ecx
call fcn.0040143d
push 4
pop esi
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x34], edx
push dword [ebp + 0x7c]
mov dword [0x414158], eax
push dword [ebp + 0x5c]
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00406c98
add esp, 0x14
cmp dword [ebp + 0x6c], 3
jne 0x402be6
cmp dword [ebp + 0x64], 0
jne 0x402b76
mov dword [ebp + 0x6c], str.WriteRegNone
jmp 0x402b8a
cmp dword [ebp + 0x64], 7
mov dword [ebp + 0x6c], str.WriteRegMultiStr
je 0x402b8a
mov dword [ebp + 0x6c], str.WriteRegBin
cmp dword [0x473640], 0
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
push 0xc018
push edi
push 0
push ecx
push eax
je 0x402baa
push 1
jmp 0x402bac
push 0
call fcn.0040376a
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x124]
push 0x80
push eax
call fcn.00406c19
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push str._s:___s_s____s___s_
call fcn.00406c98
add esp, 0x28
push esi
push edi
push dword [ebp + 0x64]
push 0
push dword [ebp + 0x68]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402c00
and dword [ebp + 0x70], eax
jmp 0x402c16
push dword [ebp + 0x68]
push dword [ebp + 0x7c]
push dword [ebp + 0x5c]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.00406c98
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x401664.69
push dword [ebp + 0x7c]
push dword [ebp + 0x5c]
push str.WriteReg:_error_creating_key___s_s_
jmp 0x401c24
mov eax, 0x20019
call fcn.004014a7
push 0x33
pop esi
mov ebx, eax
call fcn.0040145a
xor esi, esi
cmp ebx, esi
mov word [edi], si
je 0x401ab1
lea ecx, [ebp + 0x24]
push ecx
push edi
lea ecx, [ebp + 0x7c]
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x24], 0x4008
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402cab
cmp dword [ebp + 0x7c], 4
je 0x402c93
cmp dword [ebp + 0x7c], ecx
je 0x402c84
cmp dword [ebp + 0x7c], 2
jne 0x402cab
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x70], eax
mov word [edi + 0x4006], si
jmp 0x402c16
push dword [edi]
xor eax, eax
cmp dword [ebp + 0x4c], esi
push edi
sete al
mov dword [ebp + 0x70], eax
call fcn.004068d3
jmp 0x402c16
mov word [edi], si
mov dword [ebp + 0x70], ecx
jmp 0x402c16
mov eax, 0x20019
call fcn.004014a7
push 3
pop ecx
mov ebx, eax
call fcn.0040143d
xor esi, esi
cmp ebx, esi
mov dword [ebp + 0x24], edx
mov word [edi], si
je 0x401ab1
cmp dword [ebp + 0x4c], esi
mov ecx, 0x2003
mov dword [ebp + 0x7c], ecx
je 0x402cf3
push ecx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402c8a
push esi
push esi
push esi
push esi
lea ecx, [ebp + 0x7c]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402c8a
mov dword [ebp + 0x70], 1
jmp 0x402c8a
push edi
call fcn.004068ec
test eax, eax
je case.0x401664.69
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x401664.69
push 0xffffffffffffffed
pop esi
call fcn.0040145a
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
call fcn.00406626
cmp eax, 0xffffffff
jne 0x401e2c
and word [edi], 0
jmp 0x401ab1
mov eax, dword [ebp + 0x44]
xor edx, edx
cmp ecx, 0x3a
sete dl
test eax, eax
mov dword [ebp + 0x24], eax
mov ebx, 0x410150
mov esi, edx
mov dword [ebp + 0x34], esi
je 0x402d8b
xor ecx, ecx
inc ecx
call fcn.0040143d
mov word [0x410150], ax
xor eax, eax
test esi, esi
sete al
mov dword [ebp + 0x34], edx
inc eax
jmp 0x402dc7
cmp ecx, 0x3a
jne 0x402db4
push 0x21
pop esi
call fcn.0040145a
push 0x2004
push ebx
push 0x414158
call fcn.004069ae
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402dc4
push 0x11
pop esi
call fcn.0040145a
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov esi, dword [ebp + 0x34]
cmp word [edi], 0
mov dword [ebp + 0x7c], eax
je 0x401ab1
push edi
call fcn.004068ec
or esi, dword [ebp + 0x24]
mov edi, eax
jne 0x402df5
cmp dword [ebp + 0x48], esi
je 0x402df5
push edi
push edi
call fcn.00406707
test eax, eax
jl 0x401ab1
push dword [ebp + 0x7c]
push ebx
push edi
call fcn.004066d8
jmp 0x401aa9
and dword [ebp + 0x68], 0
push 2
pop ecx
mov dword [ebp - 0x18], ecx
call fcn.0040143d
cmp eax, 1
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x34], eax
jl case.0x401664.69
mov ecx, 0x2003
cmp eax, ecx
jle 0x402e2e
mov dword [ebp + 0x34], ecx
cmp word [edi], 0
je 0x402f9d
and dword [ebp + 0x6c], 0
push edi
call fcn.004068ec
cmp dword [ebp + 0x34], 0
mov dword [ebp + 0x64], eax
jle 0x402f9d
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
cmp dword [ebp + 0x38], 0x3b
jne 0x402f30
push edi
lea eax, [ebp + 0x2c]
push eax
push 2
pop eax
sub eax, dword [ebp + 0x48]
push eax
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402f9d
mov ecx, dword [ebp + 0x2c]
cmp ecx, edi
je 0x402f9d
cmp dword [ebp + 0x48], edi
movzx ax, byte [ebp + 0x7c]
movzx eax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x5c], eax
jne 0x402f5e
push 1
lea eax, [ebp + 0x5c]
push eax
push ecx
lea eax, [ebp + 0x7c]
push eax
push 8
push edi
call esi
test eax, eax
jne 0x402f59
mov edi, dword [ebp - 0x18]
neg edi
dec dword [ebp + 0x2c]
mov eax, 0xfffd
mov dword [ebp + 0x5c], eax
je 0x402efa
dec dword [ebp - 0x18]
push 1
push 0
inc edi
push edi
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x2c]
lea eax, [ebp + 0x7c]
push eax
push 8
push 0
call esi
test eax, eax
je 0x402ec1
mov eax, dword [ebp + 0x5c]
xor edi, edi
cmp dword [ebp + 0x48], edi
jne 0x402f5e
cmp word [ebp + 0x6c], 0xd
je 0x402f6d
cmp word [ebp + 0x6c], 0xa
je 0x402f6d
mov ecx, dword [ebp + 0x68]
movzx edx, ax
mov word [ebx + ecx*2], ax
inc ecx
cmp ax, di
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], edx
je 0x402f9d
cmp ecx, dword [ebp + 0x34]
jl 0x402e57
jmp 0x402f9d
cmp dword [ebp + 0x48], edi
jne 0x402f47
cmp dword [ebp + 0x68], edi
jne 0x402f47
push edi
push dword [ebp + 0x64]
call fcn.00406707
test eax, eax
jl 0x402f9d
push 2
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x64]
call fcn.004066a9
test eax, eax
je 0x402f9d
mov eax, dword [ebp + 0x5c]
jmp 0x402efc
movzx eax, ax
push eax
push ebx
call fcn.004068d3
jmp 0x4033eb
cmp word [ebp + 0x6c], ax
je 0x402f8b
cmp ax, 0xd
je 0x402f7f
cmp ax, 0xa
jne 0x402f8b
mov ecx, dword [ebp + 0x68]
inc dword [ebp + 0x68]
mov word [ebx + ecx*2], ax
jmp 0x402f9d
mov eax, dword [ebp - 0x18]
push 1
push edi
neg eax
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x68]
and word [ebx + eax*2], 0
jmp 0x401aa9
cmp word [edi], 0
je case.0x401664.69
push 2
pop ecx
call fcn.0040143d
push dword [ebp + 0x48]
mov dword [ebp + 0x24], edx
push 0
push eax
push edi
call fcn.004068ec
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x40], 0
jl case.0x401664.69
push eax
push ebx
jmp 0x4017c1
push edi
call fcn.004068ec
test eax, eax
je case.0x401664.69
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x401664.69
push ebx
call fcn.004068ec
test eax, eax
je 0x4029e7
lea ecx, [ebp - 0x374]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4029e7
jmp 0x40304e
push 2
pop esi
call fcn.0040145a
lea ecx, [ebp - 0x374]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403047
and word [ebx], 0
jmp 0x402d4b
push eax
push ebx
call fcn.004068d3
lea eax, [ebp - 0x348]
push eax
push edi
call fcn.0040698c
jmp case.0x401664.69
push 0xfffffffffffffff0
pop esi
mov dword [ebp + 0x60], 0xfffffd66
or ebx, 0xffffffff
call fcn.0040145a
mov edi, eax
push edi
mov dword [ebp + 0x6c], edi
call fcn.004064f4
test eax, eax
jne 0x403089
push 0xffffffffffffffec
pop esi
call fcn.0040145a
push edi
call fcn.00406600
push 2
push 0x40000000
push edi
call fcn.00406626
xor edi, edi
cmp eax, ebx
mov dword [ebp + 0x7c], eax
je 0x40318b
cmp dword [ebp + 0x48], edi
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x2c], eax
je 0x40315d
mov eax, dword [0x473654]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x34], eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x40315d
push edi
call fcn.00403697
push dword [ebp + 0x34]
push ebx
call fcn.0040363b
push dword [ebp + 0x48]
push 0x40
call esi
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x24], esi
je 0x403142
cmp dword [0x473640], edi
push dword [ebp + 0x50]
push dword [ebp + 0x48]
push esi
push edi
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
je 0x403114
push 1
jmp 0x403115
push edi
call fcn.0040376a
jmp 0x403134
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, ebx
push eax
mov dword [ebp - 0x1c], ecx
call fcn.004065dc
add esi, dword [ebp - 0x1c]
cmp byte [esi], 0
jne 0x40311c
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x34]
push ebx
push dword [ebp + 0x7c]
call fcn.004066d8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp + 0x28], 0xffffffff
or dword [ebp + 0x2c], 0xffffffff
cmp dword [0x473640], edi
push dword [ebp + 0x54]
push edi
push edi
push dword [ebp + 0x7c]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
je 0x403177
push 1
jmp 0x403178
push edi
call fcn.0040376a
push dword [ebp + 0x7c]
mov ebx, edx
mov dword [ebp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x6c]
push ebx
push dword [ebp + 0x60]
push str.created_uninstaller:__d____s_
call fcn.00406c98
add esp, 0x10
cmp ebx, edi
push 0xfffffffffffffff3
pop esi
jg 0x4031c0
jl 0x4031ad
cmp dword [ebp + 0x60], edi
jae 0x4031c0
push 0xffffffffffffffef
pop esi
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401934
test esi, esi
je 0x403207
push edx
push str.settings_logging_to__d
call fcn.00406c98
mov eax, dword [ebp + 0x40]
push eax
push str.logging_set_to__d
mov dword [0x461d40], eax
call fcn.00406c98
add esp, 0x10
cmp dword [ebp + 0x40], 0
je 0x4031fb
call fcn.00404591
jmp case.0x401664.69
push 1
call fcn.00406a78
jmp case.0x401664.69
xor esi, esi
inc esi
call fcn.0040145a
push eax
push 0x409a34
jmp 0x4019f4
xor ecx, ecx
call fcn.0040143d
mov edi, eax
cmp edi, dword [0x47360c]
mov dword [ebp + 0x24], edx
jae 0x401ab1
mov eax, dword [ebp + 0x44]
mov esi, edi
imul esi, esi, 0x4020
add esi, dword [0x473608]
test eax, eax
jl 0x40325c
mov ecx, dword [esi + eax*4]
jne 0x403256
add esi, 0x18
push esi
push ebx
jmp 0x403056
push ecx
jmp 0x402fdd
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x44], ecx
je 0x403276
xor ecx, ecx
inc ecx
call fcn.0040143d
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x40], eax
jmp 0x403289
push dword [ebp + 0x4c]
lea eax, [esi + 0x18]
push eax
call fcn.00406fd5
or dword [esi + 8], 0x100
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
mov dword [esi + eax*4], ecx
cmp dword [ebp + 0x48], 0
je case.0x401664.69
push edi
call fcn.0040117d
jmp case.0x401664.69
xor ecx, ecx
call fcn.0040143d
cmp eax, 0x20
mov dword [ebp + 0x24], edx
jae 0x401ab1
xor esi, esi
cmp dword [ebp + 0x48], esi
je 0x4032e3
cmp dword [ebp + 0x44], esi
je 0x4032d8
push eax
call fcn.0040129d
push esi
push esi
call fcn.004011ef
jmp case.0x401664.69
push esi
call fcn.004012e8
jmp 0x402fdc
cmp dword [ebp + 0x44], esi
je 0x4032fd
mov ecx, dword [ebp + 0x40]
mov edx, dword [0x4735fc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x401664.69
mov ecx, dword [0x4735fc]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00406fd5
jmp case.0x401664.69
mov eax, dword [ebp + 0x48]
sub eax, 0
je 0x403364
dec eax
jne case.0x401664.69
push 2
pop ecx
call fcn.0040143d
push 4
pop ecx
mov esi, eax
mov dword [ebp + 0x24], edx
call fcn.0040143d
and dword [ebp + 0x7c], 0
movzx ecx, al
shr eax, 0x18
test esi, esi
mov dword [ebp + 0x24], edx
jne 0x40334f
mov esi, 0x4736a0
push ecx
add eax, esi
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004065dc
push dword [ebp + 0x7c]
jmp 0x402fdd
push 5
call fcn.00406d61
push 0x22
pop esi
mov edi, eax
call fcn.0040145a
test edi, edi
je 0x4033af
lea ecx, [ebp + 0x18]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jl 0x4033af
lea eax, [ebp + 0x7c]
push eax
push 0
push dword [ebp + 0x48]
lea eax, [ebp + 0x18]
push eax
call edi
test eax, eax
jl 0x4033af
push dword [ebp + 0x7c]
push ebx
call fcn.0040698c
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x401664.69
and word [ebx], 0
mov dword [ebp + 0x70], 1
jmp case.0x401664.69
mov eax, dword [0x458290]
xor edi, edi
push edi
and eax, esi
push eax
push 0xb
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x3c], edi
je case.0x401664.69
push edi
push edi
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x4736a8], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4