Function at 0x401631
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
Resolve function by parsing pe exports
Set current directory
Set file attributes
Set registry value

Disassembly:
sub esp, 0xbe0
mov eax, dword [0x46b558]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbf0]
push edi
push 7
pop ecx
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov edi, ecx
mov eax, section..ndata
mov esi, edx
shl edi, 0xe
add edi, eax
shl esi, 0xe
add esi, eax
lea eax, [esp + 0x34]
mov dword [0x40c0e4], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
add eax, 0xfffffffe
mov ebp, ebx
mov dword [esp + 0x24], eax
cmp eax, 0x44
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x1c], esi
ja case.0x4016ac.67
mov ebp, dword [esp + 0x24]
jmp dword [ebp*4 + 0x4035a1]
mov eax, ecx
jmp 0x403593
push ebx
call fcn.00403729
push eax
push str.Aborting:___s_
call fcn.00407327
pop ecx
pop ecx
push ebx
push dword [esp + 0x38]
call fcn.004067a2
mov eax, 0x7fffffff
jmp 0x403593
inc dword [0x46b54c]
test eax, eax
je 0x4016d7
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4016d7
push ecx
call fcn.00403821
dec eax
push ebx
push eax
call fcn.004013a7
jmp 0x403593
push ebx
call fcn.00403729
push eax
push str.DetailPrint:__s
call fcn.00407327
pop ecx
pop ecx
push ebx
push dword [esp + 0x38]
call fcn.004067a2
jmp case.0x4016ac.67
push ebx
call fcn.004036ed
mov esi, eax
push esi
push str.Sleep__d_
mov dword [esp + 0x5c], edx
call fcn.00407327
xor eax, eax
inc eax
add esp, 0xc
cmp esi, eax
cmovg eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4016ac.67
push str.BringToFront
call fcn.00407327
mov eax, dword [esp + 0x1c]
pop ecx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4016ac.67
cmp dword [esp + 0x3c], ebx
jne 0x4017a4
mov eax, dword [ecx*4 + 0x473620]
push 1
mov dword [ecx*4 + 0x4735e0], eax
call fcn.004036ed
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], edx
mov dword [eax*4 + 0x473620], ecx
jmp case.0x4016ac.67
mov eax, dword [ecx*4 + 0x4735e0]
mov dword [ecx*4 + 0x473620], eax
jmp case.0x4016ac.67
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ecx, dword [edx*4 + 0x473620]
test ecx, ecx
sete al
and ecx, dword [esp + 0x40]
mov dword [edx*4 + 0x473620], ecx
mov eax, dword [esp + eax*4 + 0x34]
jmp 0x403593
push dword [edx*4 + 0x473620]
push edi
call fcn.00407290
jmp case.0x4016ac.67
mov eax, dword [0x46b544]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x401806
push edx
push eax
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [0x46b548]
test eax, eax
je case.0x4016ac.67
push ecx
push eax
call esi
jmp case.0x4016ac.67
push 0xfffffffffffffff0
call fcn.00403729
push dword [esp + 0x38]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00407327
add esp, 0xc
push dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4016ac.67
xor ebp, ebp
inc ebp
mov dword [esp + 0x10], ebp
push str.SetFileAttributes_failed.
call fcn.00407327
pop ecx
jmp case.0x4016ac.67
push 0xfffffffffffffff0
call fcn.00403729
push dword [esp + 0x38]
mov esi, eax
push esi
push str.CreateDirectory:___s____d_
call fcn.00407327
add esp, 0xc
push esi
call fcn.0040799a
mov ebp, dword [esp + 0x10]
mov edi, eax
test edi, edi
je 0x40191e
push 0x5c
push edi
call fcn.0040723f
mov edi, eax
xor eax, eax
movzx ebx, word [edi]
mov word [edi], ax
test bx, bx
jne 0x4018be
cmp dword [esp + 0x3c], eax
je 0x4018be
call fcn.00406fa8
test eax, eax
je 0x4018be
push esi
call fcn.004068a6
jmp 0x4018c4
push esi
call fcn.00406886
test eax, eax
je 0x4018fa
cmp eax, 0xb7
je 0x4018e1
push eax
push esi
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.00407327
add esp, 0xc
inc ebp
jmp 0x401907
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401907
push esi
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.00407327
inc ebp
jmp 0x401905
push esi
push str.CreateDirectory:___s__created
call fcn.00407327
pop ecx
pop ecx
mov word [edi], bx
add edi, 2
test bx, bx
jne 0x401890
mov dword [esp + 0x10], ebp
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x38], 0
push 0x4100e8
je 0x401966
push 0xffffffffffffffe6
call fcn.004067a2
push esi
push 0x4cc000
call fcn.00407903
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne case.0x4016ac.67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetCurrentDirectory__s__failed___d_
call fcn.00407327
add esp, 0xc
inc ebp
jmp 0x401af2
push 0xfffffffffffffff5
jmp 0x40171f
push ebx
call fcn.00403729
mov esi, eax
push esi
call fcn.00407218
test eax, eax
je 0x40199a
push dword [esp + 0x38]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.00407327
mov eax, dword [esp + 0x44]
add esp, 0xc
jmp 0x403593
push dword [esp + 0x3c]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.00407327
add esp, 0xc
mov eax, dword [esp + 0x3c]
jmp 0x403593
push 0xffffffffffffffd0
call fcn.00403729
push 0xffffffffffffffdf
mov edi, eax
call fcn.00403729
push 0x13
mov ebx, eax
call fcn.00403729
mov esi, eax
push esi
push str.Rename:__s
call fcn.00407327
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4019f5
push 0x4100e8
push 0xffffffffffffffe3
jmp 0x40171f
cmp dword [esp + 0x3c], 0
je 0x401a21
push edi
call fcn.00407218
test eax, eax
je 0x401a21
push ebx
push edi
call fcn.00406cdb
push 0x4100e8
push 0xffffffffffffffe4
call fcn.004067a2
push esi
push str.Rename_on_reboot:__s
jmp 0x401a2e
push esi
push str.Rename_failed:__s
xor ebp, ebp
inc ebp
mov dword [esp + 0x18], ebp
call fcn.00407327
pop ecx
jmp 0x40185b
push ebx
call fcn.00403729
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401a7d
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x401a89
cmp word [eax], bx
je 0x401a89
push edi
call fcn.00407218
test eax, eax
je 0x401a7d
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.00407903
jmp 0x401a89
xor ebp, ebp
inc ebp
xor eax, eax
mov word [esi], ax
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x3c], ebx
jne case.0x4016ac.67
push 0x2000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4016ac.67
push 0xffffffffffffffff
call fcn.00403729
lea ecx, [esp + 0x4c]
push ecx
push edi
push 0x2000
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4016ac.67
xor ebp, ebp
inc ebp
xor eax, eax
mov dword [esp + 0x10], ebp
mov word [edi], ax
jmp case.0x4016ac.67
push 0xffffffffffffffef
call fcn.00403729
push eax
push edi
call fcn.0040783d
test eax, eax
jne case.0x4016ac.67
xor ebp, ebp
inc ebp
mov dword [esp + 0x10], ebp
jmp case.0x4016ac.67
push 0x31
call fcn.00403729
mov edi, eax
mov eax, dword [esp + 0x34]
and eax, 7
mov dword [esp + 0x18], eax
xor eax, eax
push 0x7fe
mov word [esp + 0x3f4], ax
lea eax, [esp + 0x3f6]
push ebx
push eax
mov dword [esp + 0x34], edi
call fcn.00408a3a
add esp, 0xc
xor esi, esi
inc esi
push 0x4c8000
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebx
call sub.KERNEL32.dll_lstrlenW
push edi
call fcn.00407b87
push edi
mov edi, 0x40c0e8
test eax, eax
je 0x401b60
push edi
call fcn.00407903
jmp 0x401b77
push 0x4cc000
push edi
call fcn.00407903
push eax
call fcn.0040719f
push eax
call sub.KERNEL32.dll_lstrcatW
push edi
call fcn.00407acb
mov eax, dword [esp + 0x18]
cmp eax, 3
jl 0x401bba
push edi
call fcn.00407218
mov ecx, ebx
test eax, eax
je 0x401ba3
lea ecx, [esp + 0x40]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x401bc4
push edi
call fcn.00407972
xor eax, eax
cmp dword [esp + 0x18], esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00407702
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x401d89
push 0x4c8000
mov dword [esp + 0x28], ebx
call sub.KERNEL32.dll_lstrlenW
test eax, eax
jle 0x401c29
mov ebp, ebx
mov ebx, dword [esp + 0x14]
mov ax, word [ebp*2 + 0x4c8000]
xor ecx, ecx
cmp ax, word [ebp*2 + 0x40c0e8]
push 0x4c8000
cmovne ebx, ecx
inc ebp
call sub.KERNEL32.dll_lstrlenW
cmp ebp, eax
jl 0x401bff
mov dword [esp + 0x14], ebx
xor ebx, ebx
cmp dword [esp + 0x14], esi
jne 0x401c63
cmp dword [esp + 0x1c], 5
jge 0x401c63
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
push eax
push edi
push str.File:_cant_open___s__for_writing_tryagain__d_times
mov dword [esp + 0x28], eax
call fcn.00407327
add esp, 0xc
call fcn.0040383f
jmp 0x401b7d
cmp dword [esp + 0x18], 0
jne 0x401d6c
push edi
push str.File:_error_creating___s_
call fcn.00407327
pop ecx
pop ecx
push section..ndata
push 0x4140e8
call fcn.00407903
push edi
push section..ndata
call fcn.00407903
push dword [esp + 0x48]
push 0x4100e8
call fcn.00406922
push 0x4140e8
push section..ndata
call fcn.00407903
push 0x4098e4
lea eax, [esp + 0x3f4]
push eax
call fcn.00407903
push edi
lea eax, [esp + 0x3f4]
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x4098f8
lea eax, [esp + 0x3f4]
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x4e4000
lea eax, [esp + 0x3f4]
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x409938
lea eax, [esp + 0x3f4]
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x40005
push 0x40994c
lea eax, [esp + 0x3f8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 4
jne 0x401d36
push str.File:_error__user_retry
call fcn.00407327
pop ecx
jmp 0x401b7d
dec eax
je 0x401d56
push str.File:_error__user_abort
call fcn.00407327
pop ecx
push edi
push 0xfffffffffffffffa
call fcn.004067a2
call fcn.0040142e
jmp 0x4016d7
push str.File:_error__user_cancel
call fcn.00407327
inc dword [0x473628]
pop ecx
jmp 0x403591
push dword [esp + 0x28]
push 0xffffffffffffffe2
call fcn.004067a2
cmp dword [esp + 0x18], 2
jne case.0x4016ac.67
mov ebp, esi
jmp 0x401af2
mov esi, dword [esp + 0x28]
push esi
push 0xffffffffffffffea
call fcn.004067a2
inc dword [0x473654]
push ebx
push ebx
push dword [esp + 0x28]
push dword [esp + 0x48]
call fcn.00403bd3
dec dword [0x473654]
push edi
push eax
push str.File:_wrote__d_to___s_
mov dword [esp + 0x30], eax
call fcn.00407327
add esp, 0xc
cmp dword [esp + 0x40], 0xffffffff
jne 0x401dd1
cmp dword [esp + 0x44], 0xffffffff
je 0x401de2
lea eax, [esp + 0x40]
push eax
push ebx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
jns case.0x4016ac.67
cmp eax, 0xfffffffe
jne 0x401e0e
push 0xffffffffffffffe9
push edi
call fcn.00406922
push esi
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401e16
push 0xffffffffffffffee
push edi
call fcn.00406922
push edi
push 0x409a18
call fcn.00407327
pop ecx
pop ecx
push 0x200010
push edi
call fcn.00407891
jmp 0x4016d7
push ebx
call fcn.00403729
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00407327
pop ecx
pop ecx
push dword [esp + 0x38]
push esi
call fcn.00407499
jmp case.0x4016ac.67
push 0x31
call fcn.00403729
mov esi, eax
push esi
push dword [esp + 0x38]
push str.MessageBox:__d___s_
call fcn.00407327
add esp, 0xc
push dword [esp + 0x34]
push esi
call fcn.00407891
test eax, eax
je 0x401aef
cmp eax, dword [esp + 0x3c]
jne 0x401e93
mov eax, dword [esp + 0x40]
jmp 0x403593
cmp eax, dword [esp + 0x44]
jne case.0x4016ac.67
mov eax, dword [esp + 0x48]
jmp 0x403593
push 0xfffffffffffffff0
call fcn.00403729
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401e41
push 1
call fcn.00403729
push eax
call sub.KERNEL32.dll_lstrlenW
push eax
jmp 0x4017e4
push 2
call fcn.004036ed
push 3
mov ebx, eax
mov esi, edx
call fcn.004036ed
pop ecx
pop ecx
push 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], edx
call fcn.00403729
push eax
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_lstrlenW
mov ecx, eax
xor eax, eax
test esi, esi
cmove ebx, ecx
mov word [edi], ax
test ebx, ebx
je case.0x4016ac.67
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x401f1b
add eax, ecx
js case.0x4016ac.67
cmp eax, ecx
cmovg eax, ecx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.00407903
test ebx, ebx
jns 0x401f40
push edi
call sub.KERNEL32.dll_lstrlenW
add ebx, eax
push 0
pop eax
cmovs ebx, eax
cmp ebx, 0x2000
jge case.0x4016ac.67
xor eax, eax
mov word [edi + ebx*2], ax
jmp case.0x4016ac.67
push 0x20
call fcn.00403729
push 0x31
mov esi, eax
call fcn.00403729
push eax
push esi
cmp dword [esp + 0x4c], ebx
jne 0x401f82
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401e8a
jmp 0x4019ac
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401f75
xor ebx, ebx
inc ebx
push ebx
call fcn.00403729
push 0x2000
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401fb9
cmp dword [esp + 0x3c], 0
je 0x401fc4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401fc4
mov ebp, ebx
xor eax, eax
mov dword [esp + 0x10], ebp
mov word [edi], ax
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp case.0x4016ac.67
mov esi, dword [esp + 0x48]
push ebx
call fcn.004036ed
push 1
mov edi, eax
mov dword [esp + 0x58], edx
call fcn.004036ed
pop ecx
pop ecx
mov dword [esp + 0x50], edx
test esi, esi
jne 0x40200a
cmp edi, eax
jl 0x401e8a
jle 0x4019ac
mov eax, dword [esp + 0x44]
jmp 0x403593
cmp edi, eax
jb 0x401e8a
jbe 0x4019ac
jmp 0x402001
push 1
call fcn.004036ed
push 2
mov esi, eax
mov dword [esp + 0x58], edx
call fcn.004036ed
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x50], edx
cmp eax, 0xd
ja case.default.0x40203f
jmp dword [eax*4 + 0x4036b5]
add esi, ecx
jmp case.default.0x40203f
sub esi, ecx
jmp case.default.0x40203f
imul esi, ecx
jmp case.default.0x40203f
test ecx, ecx
je 0x40205e
mov eax, esi
cdq
idiv ecx
jmp 0x40207e
xor eax, eax
mov esi, ebx
lea ebp, [eax + 1]
mov dword [esp + 0x10], ebp
jmp case.default.0x40203f
or esi, ecx
jmp case.default.0x40203f
and esi, ecx
jmp case.default.0x40203f
xor esi, ecx
jmp case.default.0x40203f
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x40203f
test esi, esi
jne 0x40208a
test ecx, ecx
je 0x402095
xor eax, eax
lea esi, [eax + 1]
jmp case.default.0x40203f
test esi, esi
jne 0x402086
mov esi, ebx
jmp case.default.0x40203f
test ecx, ecx
je 0x40205e
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x40203f
shl esi, cl
jmp case.default.0x40203f
sar esi, cl
jmp case.default.0x40203f
shr esi, cl
push esi
jmp 0x4017e4
push 1
call fcn.00403729
push 2
mov esi, eax
call fcn.004036ed
push eax
push esi
push edi
mov dword [esp + 0x60], edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp case.0x4016ac.67
mov ecx, dword [esp + 0x3c]
mov esi, dword [0x40c0e0]
mov eax, ecx
test ecx, ecx
je 0x402147
dec eax
test esi, esi
je 0x402127
mov esi, dword [esi]
test eax, eax
jne 0x4020eb
test esi, esi
je 0x402127
add esi, 4
push esi
mov edi, 0x40c0e8
push edi
call fcn.00407903
mov eax, dword [0x40c0e0]
add eax, 4
push eax
push esi
call fcn.00407903
mov eax, dword [0x40c0e0]
push edi
add eax, 4
push eax
jmp 0x403275
push ecx
push str.Exch:_stack____d_elements
call fcn.00407327
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00406922
push eax
jmp 0x401e29
test edx, edx
je 0x402176
test esi, esi
jne 0x40215f
push str.Pop:_stack_empty
call fcn.00407327
pop ecx
jmp 0x401aef
lea eax, [esi + 4]
push eax
push edi
call fcn.00407903
mov eax, dword [esi]
mov dword [0x40c0e0], eax
push esi
jmp 0x4026e6
push 0x4004
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x34]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406922
mov eax, dword [0x40c0e0]
mov dword [esi], eax
mov dword [0x40c0e0], esi
jmp case.0x4016ac.67
push 3
call fcn.004036ed
push 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], edx
call fcn.004036ed
mov esi, eax
mov eax, dword [esp + 0x50]
pop ecx
pop ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], edx
test al, 1
je 0x4021dd
push 0x33
call fcn.00403729
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
test al, 2
je 0x4021ee
push 0x44
call fcn.00403729
mov esi, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x30], 0x21
push 1
jne 0x402254
call fcn.004036ed
push 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], edx
call fcn.004036ed
pop ecx
pop ecx
mov ecx, dword [esp + 0x48]
sar ecx, 2
mov dword [esp + 0x50], edx
test ecx, ecx
je 0x402242
lea edx, [esp + 0x14]
push edx
push ecx
push ebx
push esi
push dword [esp + 0x30]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb ebp, ebp
mov eax, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x10], ebp
jmp 0x402286
push esi
push dword [esp + 0x24]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402282
call fcn.00403729
push 0x12
mov esi, eax
call fcn.00403729
xor ecx, ecx
cmp word [eax], bx
cmovne ecx, eax
push ecx
xor ecx, ecx
cmp word [esi], bx
cmovne ecx, esi
push ecx
push dword [esp + 0x24]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x34], ebx
jl case.0x4016ac.67
jmp 0x401ec4
push ebx
call fcn.004036ed
pop ecx
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [esp + 0x3c]
test eax, eax
cmovne ecx, dword [esp + 0x38]
jmp case.0x4016ac.2
push 2
call fcn.004036ed
push 1
mov esi, eax
mov dword [esp + 0x58], edx
call fcn.004036ed
pop ecx
pop ecx
push esi
push eax
mov dword [esp + 0x58], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401ec4
mov esi, dword [0x4735a8]
push ebx
add esi, edx
call fcn.004036ed
pop ecx
push esi
push 0xffffffffffffffeb
push eax
mov dword [esp + 0x5c], edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4016ac.67
test dword [esp + 0x40], 0x100
je 0x402318
push 2
call fcn.004036ed
pop ecx
mov dword [esp + 0x50], edx
jmp 0x402323
push dword [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ecx
and eax, 4
mov dword [esp + 0x20], eax
mov ebx, ecx
shr ebx, 0x1e
mov esi, ecx
mov eax, ecx
shr eax, 0x1f
and esi, 3
and ebx, 1
mov dword [esp + 0x24], eax
test ecx, 0x10000
je 0x40235b
push 0x11
call fcn.00403729
jmp 0x402360
movzx eax, word [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
and eax, 0xfef0
push eax
mov eax, dword [esp + 0x70]
imul eax, ebx
push eax
mov eax, dword [esp + 0x70]
imul eax, dword [esp + 0x2c]
push eax
xor eax, eax
cmp dword [esp + 0x2c], eax
push esi
push dword [esp + 0x2c]
cmovne eax, dword [0x46b554]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
push ebx
push esi
push 0x172
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4023ca
test esi, esi
jne 0x4023ca
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x34], 0
jl case.0x4016ac.67
push ebx
jmp 0x4017e4
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.004036ed
pop ecx
push 0x48
push 0x5a
push edi
mov esi, eax
mov dword [esp + 0x5c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x4200e8], eax
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.004036ed
pop ecx
mov ecx, dword [esp + 0x44]
push dword [esp + 0x38]
mov dword [0x4200f8], eax
mov al, cl
and al, 1
mov byte [0x4200fc], al
mov al, cl
and al, 2
and cl, 4
push 0x420104
mov dword [esp + 0x58], edx
mov byte [0x4200fd], al
mov byte [0x4200fe], cl
mov byte [0x4200ff], 1
call fcn.00406922
push 0x4200e8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [esp + 0x14]
push eax
push ebx
jmp 0x4017e5
push ebx
call fcn.004036ed
push 1
mov esi, eax
mov dword [esp + 0x58], edx
call fcn.004036ed
pop ecx
pop ecx
mov edi, eax
mov dword [esp + 0x50], edx
cmp dword [esp + 0x3c], ebx
je 0x40249f
push str.HideWindow
call fcn.00407327
pop ecx
push edi
push esi
cmp dword [esp + 0x48], ebx
jne 0x4024b2
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4016ac.67
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4016ac.67
push ebx
call fcn.00403729
push 0x31
mov esi, eax
call fcn.00403729
push 0x22
mov dword [esp + 0x18], eax
call fcn.00403729
push 0x15
mov edi, eax
call fcn.00403729
push 0x4100e8
push 0xffffffffffffffec
call fcn.004067a2
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x7c], ecx
cmp word [esi], bx
cmovne eax, esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
xor eax, eax
cmp word [edi], bx
mov dword [esp + 0x78], 0x4cc000
cmovne eax, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
push eax
call fcn.004077da
test eax, eax
jne 0x402559
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esp + 0x1c]
push esi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.00407327
add esp, 0x14
jmp 0x401aef
test byte [esp + 0x64], 0x40
je 0x402579
push dword [esp + 0x98]
call fcn.00406fc0
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [esp + 0x18]
push esi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.00407327
jmp 0x4020d3
push ebx
call fcn.00403729
mov edi, eax
push edi
push str.Exec:_command__s_
call fcn.00407327
pop ecx
pop ecx
push edi
push 0xffffffffffffffeb
call fcn.004067a2
push edi
call fcn.00407456
mov ebp, dword [esp + 0x10]
mov ebx, eax
push edi
test ebx, ebx
je 0x4025f7
push str.Exec:_success____s__
call fcn.00407327
cmp dword [esp + 0x44], 0
pop ecx
pop ecx
je 0x4025f1
push ebx
call fcn.00406fc0
cmp dword [esp + 0x38], 0
jl 0x4025e5
push eax
push esi
call fcn.00407290
jmp 0x4025f1
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebp, ecx
mov dword [esp + 0x10], ebp
push ebx
jmp 0x402ed0
push str.Exec:_failed_createprocess____s__
jmp 0x401a27
push 2
call fcn.00403729
push eax
call fcn.00407218
mov ebx, eax
test ebx, ebx
je 0x402625
push dword [ebx + 0x14]
push esi
call fcn.00407290
push dword [ebx + 0x18]
jmp 0x4017e4
xor eax, eax
mov word [edi], ax
mov word [esi], ax
jmp 0x401aef
push 0xffffffffffffffee
call fcn.00403729
lea ecx, [esp + 0x4c]
push ecx
push eax
push 0xa
mov dword [esp + 0x34], eax
call fcn.004076cd
call eax
xor ecx, ecx
xor ebp, ebp
inc ebp
mov word [edi], cx
mov dword [esp + 0x24], eax
mov word [esi], cx
mov dword [esp + 0x10], ebp
test eax, eax
je case.0x4016ac.67
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je case.0x4016ac.67
push 0xb
call fcn.004076cd
push 0xc
mov esi, eax
call fcn.004076cd
push dword [esp + 0x14]
mov dword [esp + 0x30], eax
push dword [esp + 0x28]
push ebx
push dword [esp + 0x34]
call esi
test eax, eax
je 0x4026e2
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x24]
push eax
push 0x409c64
push dword [esp + 0x20]
call dword [esp + 0x3c]
test eax, eax
je 0x4026e2
mov eax, dword [esp + 0x20]
push dword [eax + 8]
push edi
call fcn.00407290
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push dword [eax + 0xc]
push edi
call fcn.00407290
mov ebp, ebx
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4016ac.67
xor esi, esi
inc esi
mov ebp, esi
mov dword [esp + 0x10], ebp
cmp dword [0x4735c0], ebx
jl 0x4027fe
push 0xfffffffffffffff0
call fcn.00403729
mov edi, eax
push esi
mov dword [esp + 0x18], edi
call fcn.00403729
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], ebx
je 0x402734
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x402748
mov edi, dword [esp + 0x14]
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4027e4
push dword [esp + 0x1c]
push edi
call fcn.00406d07
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4027a1
mov ebp, ebx
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x3c], ebx
je 0x402781
push dword [esp + 0x3c]
call fcn.00403a16
call dword [esp + 0x24]
test eax, eax
je 0x4027bf
mov ebp, esi
mov dword [esp + 0x10], ebp
jmp 0x4027bf
mov eax, dword [esp + 0x18]
push section..data
push 0x40c0e0
push section..ndata
push 0x2000
push eax
call ecx
add esp, 0x14
jmp 0x4027bf
mov ebx, dword [esp + 0x1c]
push ebx
push 0xfffffffffffffff7
call fcn.004067a2
push dword [esp + 0x14]
push ebx
push 0x409c68
call fcn.00407327
add esp, 0xc
cmp dword [esp + 0x40], 0
jne case.0x4016ac.67
push edi
call fcn.00404609
test eax, eax
je case.0x4016ac.67
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4016ac.67
push 0x4100e8
push 0xfffffffffffffff6
call fcn.004067a2
push dword [esp + 0x14]
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x401a2e
push 0x4100e8
push 0xffffffffffffffe7
call fcn.004067a2
push str.Error_registering_DLL:_Could_not_initialize_OLE
jmp 0x401856
push 0xfffffffffffffff0
call fcn.00403729
push 0xffffffffffffffdf
mov dword [esp + 0x30], eax
call fcn.00403729
push 2
mov dword [esp + 0x18], eax
call fcn.00403729
push 0xffffffffffffffcd
mov dword [esp + 0x2c], eax
call fcn.00403729
push 0x45
mov dword [esp + 0x20], eax
call fcn.00403729
mov esi, dword [esp + 0x44]
push dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, esi
and eax, 0xfff
mov dword [esp + 0x24], eax
mov edi, esi
mov eax, esi
sar edi, 0xc
sar esi, 0x10
and eax, 0x8000
and edi, 7
and esi, 0xffff
mov dword [esp + 0x28], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x64], esi
call fcn.00407b87
test eax, eax
jne 0x402895
push 0x21
call fcn.00403729
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x44]
push str.CreateShortcut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.00407327
add esp, 0x20
lea eax, [esp + 0x18]
push eax
push 0x40abc8
xor esi, esi
inc esi
push esi
push ebx
push 0x40abe8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4029ad
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x5c]
mov ecx, dword [eax]
push edx
push 0x40abd8
push eax
call dword [ecx]
mov edi, eax
test edi, edi
js 0x402993
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov edi, eax
cmp dword [esp + 0x24], ebx
jne 0x40291c
mov eax, dword [esp + 0x18]
push 0x4cc000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov edx, dword [esp + 0x9c]
test edx, edx
je 0x402932
mov eax, dword [esp + 0x18]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov edx, dword [esp + 0x1c]
cmp word [edx], bx
je 0x402958
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test edi, edi
js 0x402989
mov eax, dword [esp + 0x5c]
push esi
push dword [esp + 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
js 0x4029ad
push 0x4100e8
push 0xfffffffffffffff4
jmp 0x40171f
mov ebp, esi
push 0x4100e8
mov dword [esp + 0x14], ebp
push 0xfffffffffffffff0
jmp 0x40171f
push ebx
call fcn.00403729
push 0x11
mov esi, eax
call fcn.00403729
push 0x23
mov edi, eax
call fcn.00403729
push edi
push esi
push str.CopyFiles___s_____s_
mov dword [esp + 0x58], eax
call fcn.00407327
add esp, 0xc
push esi
call fcn.00407218
test eax, eax
jne 0x402a01
push ebx
push 0xfffffffffffffff9
call fcn.004067a2
jmp 0x401aef
mov eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 2
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push edi
mov word [esi + eax*2 + 2], cx
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov ecx, dword [esp + 0x4c]
mov ax, word [esp + 0x3c]
push ecx
push ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x82], ecx
mov word [esp + 0x78], ax
call fcn.004067a2
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4016ac.67
jmp 0x4029f4
cmp ecx, 0xbadf00d
jne 0x402134
inc dword [0x473634]
jmp case.0x4016ac.67
push str._RM_
mov esi, 0x4100e8
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.00407903
push esi
mov edi, 0x4140e8
push edi
call fcn.00407903
cmp dword [esp + 0x34], ebx
je 0x402aad
push ebx
call fcn.00403729
mov ebx, eax
cmp dword [esp + 0x38], 0
je 0x402abf
push 0x11
call fcn.00403729
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], 0
je 0x402ad1
push 0x22
call fcn.00403729
mov dword [esp + 0x14], eax
push 0xffffffffffffffcd
call fcn.00403729
mov esi, eax
push esi
push edi
push 0x4100e8
push 0x40c0e8
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.00407327
add esp, 0x14
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401ae7
push 1
mov dword [esp + 0x50], 0xa
call fcn.00403729
push 0x12
mov edi, eax
call fcn.00403729
push 0xffffffffffffffdd
mov esi, eax
call fcn.00403729
mov ebx, dword [esp + 0x14]
push eax
push 0x1fff
push ebx
lea eax, [esp + 0x58]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xa
pop eax
cmp word [ebx], ax
jne case.0x4016ac.67
xor eax, eax
mov word [ebx], ax
lea ebp, [eax + 1]
mov dword [esp + 0x10], ebp
jmp case.0x4016ac.67
push edx
call fcn.00407081
cmp dword [esp + 0x48], 0
mov ebx, eax
pop ecx
mov dword [esp + 0x4c], ebx
jne 0x402bb6
push 2
call fcn.004037ac
mov edi, eax
test edi, edi
je 0x401aef
push 0x33
call fcn.00403729
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x4140e8
push dword [esp + 0x54]
mov ebx, eax
push str.DeleteRegValue:___s_s____s_
call fcn.00407327
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402be1
push 0x22
call fcn.00403729
mov esi, eax
push esi
push ebx
push str.DeleteRegKey:___s_s_
call fcn.00407327
mov ecx, dword [esp + 0x50]
add esp, 0xc
sar ecx, 1
push ecx
push esi
push dword [esp + 0x68]
call fcn.00403767
mov ebx, eax
test ebx, ebx
je case.0x4016ac.67
jmp 0x401aef
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
push 2
mov dword [esp + 0x20], eax
call fcn.00403729
push 0x11
mov dword [esp + 0x2c], eax
call fcn.00403729
mov edi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x30], eax
call fcn.00407081
pop ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4c]
push eax
push 0x100022
push dword [esp + 0x34]
xor esi, esi
inc esi
mov ebp, esi
push edi
mov dword [esp + 0x20], ebp
call fcn.0040370e
push eax
call fcn.00406d43
mov ecx, dword [esp + 0x4c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x402dac
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov edi, 0x4140e8
cmp eax, esi
jne 0x402cbf
push 0x23
call fcn.00403729
push edi
call sub.KERNEL32.dll_lstrlenW
cmp dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
lea eax, [eax*2 + 2]
push esi
push dword [esp + 0x24]
mov dword [esp + 0x30], eax
jne 0x402cac
push str.WriteRegStr:___s_s____s___s_
call fcn.00407327
add esp, 0x14
jmp 0x402d65
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00407327
mov eax, dword [esp + 0x28]
add esp, 0x14
jmp 0x402cc3
mov esi, dword [esp + 0x2c]
cmp eax, 4
jne 0x402cfb
push 3
call fcn.004036ed
push eax
push dword [esp + 0x30]
mov dword [esp + 0x70], edx
push esi
push dword [esp + 0x28]
mov dword [0x4140e8], eax
push str.WriteRegDWORD:___s_s____s__0x_08x_
mov dword [esp + 0x38], 4
call fcn.00407327
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp eax, 3
jne 0x402d65
push 0xc000
push edi
push ebx
push dword [esp + 0x4c]
call fcn.00403bd3
push eax
push edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa8]
push 0x80
push eax
call fcn.00407002
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0x3c]
cmp edx, 7
mov eax, str.WriteRegBin
push esi
push dword [esp + 0x34]
mov ecx, str.WriteRegMultiStr
cmovne ecx, eax
test edx, edx
mov eax, str.WriteRegNone
cmovne eax, ecx
push eax
push str._s:___s_s____s___s_
call fcn.00407327
add esp, 0x28
push dword [esp + 0x20]
push edi
push dword [esp + 0x24]
mov edi, dword [esp + 0x34]
push ebx
push edi
push dword [esp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402d8a
mov ebp, ebx
mov dword [esp + 0x10], ebp
jmp 0x402d9d
push edi
push esi
push dword [esp + 0x20]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.00407327
add esp, 0x10
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4016ac.67
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push str.WriteReg:_error_creating_key___s_s_
call fcn.00407327
add esp, 0xc
jmp case.0x4016ac.67
push 0x20019
call fcn.004037ac
push 0x33
mov esi, eax
call fcn.00403729
xor ecx, ecx
mov word [edi], cx
test esi, esi
je 0x401aef
lea ecx, [esp + 0x4c]
push ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push esi
mov dword [esp + 0x64], 0x4000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402e43
cmp dword [esp + 0x14], 4
je 0x402e2c
cmp dword [esp + 0x14], ecx
je 0x402e1d
cmp dword [esp + 0x14], 2
jne 0x402e43
mov ebp, dword [esp + 0x44]
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402e4a
push dword [edi]
xor eax, eax
cmp dword [esp + 0x48], eax
push edi
sete al
mov dword [esp + 0x18], eax
call fcn.00407290
jmp 0x402e4e
xor eax, eax
mov word [edi], ax
mov ebp, ecx
mov dword [esp + 0x10], ebp
push esi
jmp 0x402da1
push 0x20019
call fcn.004037ac
push 3
mov esi, eax
call fcn.004036ed
mov ebp, dword [esp + 0x14]
pop ecx
xor ecx, ecx
mov dword [esp + 0x50], edx
mov word [edi], cx
test esi, esi
je 0x401aef
mov ecx, 0x1fff
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x44], ebx
je 0x402e98
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402eb6
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebp, ecx
mov dword [esp + 0x10], ebp
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp 0x402e4e
push edi
call fcn.004079fa
test eax, eax
je case.0x4016ac.67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4016ac.67
push 0xffffffffffffffed
call fcn.00403729
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call fcn.00407702
cmp eax, 0xffffffff
jne 0x401ec4
xor eax, eax
mov word [edi], ax
jmp 0x401aef
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
xor eax, eax
cmp ecx, 0x38
sete al
xor esi, esi
inc esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
test edx, edx
je 0x402f3f
push esi
call fcn.004036ed
mov word [0x4100e8], ax
xor eax, eax
cmp dword [esp + 0x20], eax
pop ecx
sete al
mov dword [esp + 0x64], edx
inc eax
jmp 0x402f7e
cmp ecx, 0x38
jne 0x402f6f
push 0x21
call fcn.00403729
push 0x2000
push 0x4100e8
push 0x4140e8
call fcn.00406f15
add esp, 0xc
push 0x4100e8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x402f7e
push 0x11
call fcn.00403729
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov dword [esp + 0x14], eax
cmp word [edi], bx
je 0x401d82
push edi
call fcn.004079fa
mov edi, eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x4c]
jne 0x402fb2
cmp dword [esp + 0x40], ebx
je 0x402fb2
push edi
push edi
call fcn.00406f30
test eax, eax
js 0x401d82
push dword [esp + 0x14]
push 0x4100e8
push edi
call fcn.004077f2
test eax, eax
jmp 0x401d7c
push 2
pop ecx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
call fcn.004036ed
xor esi, esi
inc esi
pop ecx
mov dword [esp + 0x50], edx
cmp eax, esi
jl case.0x4016ac.67
mov ecx, 0x1fff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x24], eax
cmp word [edi], bx
je 0x4031be
push edi
mov dword [esp + 0x18], ebx
call fcn.004079fa
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, ebx
cmp dword [esp + 0x24], ebx
jle 0x4031a0
mov dword [esp + 0x60], 0xd
cmp dword [esp + 0x30], 0x39
jne 0x4030ea
push ebx
lea eax, [esp + 0x20]
push eax
push 2
pop eax
sub eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40319c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x40319c
movzx eax, byte [esp + 0x5c]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], ebx
jne 0x4031af
push esi
lea eax, [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x68]
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40311c
mov ecx, dword [esp + 0x28]
mov edx, ecx
neg edx
dec dword [esp + 0x1c]
mov eax, 0xfffd
mov dword [esp + 0x2c], eax
je 0x403124
push esi
dec ecx
inc edx
push ebx
push edx
push dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x5c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x68]
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
test eax, eax
je 0x40309e
jmp 0x40311c
cmp dword [esp + 0x40], ebx
jne 0x403107
test ecx, ecx
jne 0x403107
push ebx
push eax
call fcn.00406f30
test eax, eax
js 0x40319c
mov eax, dword [esp + 0x20]
push 2
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0040772f
test eax, eax
je 0x40319c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jne 0x4031af
push 0xd
pop edx
cmp word [esp + 0x14], dx
push 0xa
pop edx
je 0x40316b
cmp word [esp + 0x14], dx
je 0x40316b
mov ecx, dword [esp + 0x18]
movzx edx, ax
mov word [edi + ecx*2], ax
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
test ax, ax
je 0x4031a0
mov eax, dword [esp + 0x20]
cmp ecx, dword [esp + 0x24]
jl 0x403026
jmp 0x4031a0
cmp word [esp + 0x14], ax
je 0x40318d
cmp ax, word [esp + 0x60]
je 0x40317e
cmp ax, dx
jne 0x40318d
mov ecx, dword [esp + 0x18]
mov word [edi + ecx*2], ax
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x4031a0
push esi
push ebx
neg ecx
push ecx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x18], eax
mov word [edi + ecx*2], ax
jmp 0x401d7c
movzx eax, ax
push eax
push edi
call fcn.00407290
jmp 0x403591
mov edi, dword [esp + 0x1c]
mov ecx, ebx
jmp 0x4031a0
cmp word [edi], bx
je case.0x4016ac.67
push 2
call fcn.004036ed
pop ecx
push dword [esp + 0x40]
mov dword [esp + 0x54], edx
push ebx
push eax
push edi
call fcn.004079fa
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x38], ebx
jl case.0x4016ac.67
push eax
push esi
jmp 0x4017e5
push edi
call fcn.004079fa
test eax, eax
je case.0x4016ac.67
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4016ac.67
push esi
call fcn.004079fa
test eax, eax
je 0x401ac8
lea ecx, [esp + 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401ac8
jmp 0x40326c
push 2
call fcn.00403729
lea ecx, [esp + 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403265
xor eax, eax
mov word [esi], ax
jmp 0x402ef9
push eax
push esi
call fcn.00407290
lea eax, [esp + 0x1cc]
push eax
push edi
call fcn.00407903
jmp case.0x4016ac.67
push 0xfffffffffffffff0
mov edi, 0xfffffd66
call fcn.00403729
mov esi, eax
push esi
mov dword [esp + 0x50], esi
call fcn.00407b87
test eax, eax
jne 0x4032a2
push 0xffffffffffffffed
call fcn.00403729
push esi
call fcn.00407972
push 2
push 0x40000000
push esi
call fcn.00407702
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40337e
mov eax, dword [0x47356c]
push eax
push 0x40
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x40336f
push ebx
call fcn.00403a3d
push dword [esp + 0x24]
push edi
call fcn.00403a27
push dword [esp + 0x3c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x60], edi
test edi, edi
je 0x403345
push dword [esp + 0x3c]
push edi
push ebx
push dword [esp + 0x44]
call fcn.00403bd3
cmp byte [edi], bl
je 0x40333b
mov ebp, dword [esp + 0x1c]
mov esi, dword [edi]
mov eax, dword [edi + 4]
push esi
add edi, 8
push edi
add eax, ebp
push eax
call fcn.00407436
add edi, esi
cmp byte [edi], bl
jne 0x40331f
mov esi, dword [esp + 0x4c]
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
call fcn.004077f2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push dword [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00403bd3
mov edi, eax
jmp 0x403374
mov edi, 0xfffffd66
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push str.created_uninstaller:__d____s_
call fcn.00407327
add esp, 0xc
push 0xfffffffffffffff3
pop ebx
test edi, edi
jns 0x4033a5
push 0xffffffffffffffef
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebp, ebp
inc ebp
mov dword [esp + 0x10], ebp
push ebx
call fcn.00403a16
jmp case.0x4016ac.67
test ecx, ecx
je 0x4033f2
push edx
push str.settings_logging_to__d
call fcn.00407327
mov eax, dword [esp + 0x40]
push eax
push str.logging_set_to__d
mov dword [0x4624e0], eax
call fcn.00407327
add esp, 0x10
cmp dword [esp + 0x38], ebx
je 0x4033e6
call fcn.004061b6
jmp case.0x4016ac.67
push 1
call fcn.0040739c
jmp case.0x4016ac.67
push 1
call fcn.00403729
push eax
push 0x409a18
jmp 0x401a2e
push ebx
call fcn.004036ed
mov ebx, eax
pop ecx
mov dword [esp + 0x50], edx
cmp ebx, dword [0x47358c]
jae 0x401aef
mov ecx, dword [esp + 0x3c]
mov edi, ebx
imul edi, edi, 0x4018
add edi, dword [0x473588]
test ecx, ecx
js 0x403446
mov eax, dword [edi + ecx*4]
jne 0x4031f8
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x403275
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x3c], eax
je 0x403465
push 1
call fcn.004036ed
pop ecx
mov ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], ecx
jmp 0x40347d
push dword [esp + 0x44]
lea eax, [edi + 0x18]
push eax
call fcn.00406922
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x40], 0
je case.0x4016ac.67
push ebx
call fcn.0040122b
jmp case.0x4016ac.67
push ebx
call fcn.004036ed
mov edi, eax
pop ecx
mov dword [esp + 0x50], edx
cmp edi, 0x20
jae 0x401aef
cmp dword [esp + 0x40], ebx
je 0x4034d9
cmp dword [esp + 0x3c], ebx
je 0x4034ce
push edi
call fcn.0040129e
push ebx
push ebx
call fcn.004012eb
jmp case.0x4016ac.67
push ebx
call fcn.004011a0
jmp 0x4031f8
mov eax, dword [0x473574]
cmp dword [esp + 0x3c], ebx
je 0x4034f4
mov ecx, dword [esp + 0x38]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4016ac.67
push dword [eax + edi*4 + 0x94]
push esi
call fcn.00406922
jmp case.0x4016ac.67
push 5
call fcn.004076cd
push 0x22
mov edi, eax
call fcn.00403729
test edi, edi
je 0x403555
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
js 0x403555
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x48]
lea eax, [esp + 0x58]
push eax
call edi
test eax, eax
js 0x403555
push dword [esp + 0x24]
push esi
call fcn.00407903
push dword [esp + 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp case.0x4016ac.67
xor ebp, ebp
inc ebp
xor eax, eax
mov dword [esp + 0x10], ebp
mov word [esi], ax
jmp case.0x4016ac.67
and ecx, dword [0x4381f8]
push ebx
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x34], ebx
je case.0x4016ac.67
mov eax, dword [esp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebp, dword [esp + 0x10]
add dword [0x473628], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbe0
ret 4