Function at 0x402297
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, 0x22c
push ebx
push esi
mov edx, dword [0x791ff4]
mov esi, ecx
push edi
push 8
pop ecx
lea edi, [ebp - 0x40]
mov dword [ebp - 0x14], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3c]
xor ebx, ebx
mov esi, dword [ebp - 0x38]
mov eax, ecx
shl eax, 0xa
mov dword [ebp - 0x18], eax
shl esi, 0xa
add esi, section..ndata
mov dword [ebp - 4], ebx
lea edi, [eax + section..ndata]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x3c]
mov dword [0x40b0b8], eax
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffe
cmp eax, 0x42
ja case.0x4022f2.66
jmp dword [eax*4 + 0x403e13]
push ecx
push 0x409318
call fcn.00407f13
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
jmp 0x403e0c
xor ecx, ecx
call fcn.00402162
push eax
push str.Aborting:___s_
call fcn.00407f13
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.00406cd8
mov eax, 0x7fffffff
jmp 0x403e0c
inc dword [0x791fdc]
test edx, edx
je 0x40232c
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40232c
test ecx, ecx
jns 0x402362
mov ecx, section..ndata
sub ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x400]
call fcn.00407a07
mov ecx, eax
lea esi, [ecx - 1]
push esi
push str.Call:__d
call fcn.00407f13
pop ecx
pop ecx
push ebx
push esi
call fcn.00402097
jmp 0x403e0c
xor ecx, ecx
call fcn.00402162
push eax
push str.detailprint:__s
call fcn.00407f13
pop ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor edx, edx
call fcn.00406cd8
jmp case.0x4022f2.66
xor ecx, ecx
call fcn.0040214b
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00407f13
xor eax, eax
inc eax
pop ecx
cmp esi, eax
pop ecx
cmovg eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4022f2.66
push str.BringToFront
call fcn.00407f13
mov eax, dword [ebp - 0x14]
pop ecx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4022f2.66
cmp dword [ebp - 0x34], ebx
jne 0x40240f
mov eax, dword [ecx*4 + 0x792ca0]
mov dword [ecx*4 + 0x792ce0], eax
xor ecx, ecx
inc ecx
call fcn.0040214b
mov ecx, dword [ebp - 0x3c]
mov dword [ecx*4 + 0x792ca0], eax
jmp case.0x4022f2.66
mov eax, dword [ecx*4 + 0x792ce0]
jmp 0x402403
mov edx, dword [ebp - 0x34]
xor eax, eax
mov ecx, dword [edx*4 + 0x792ca0]
test ecx, ecx
sete al
and ecx, dword [ebp - 0x30]
mov dword [edx*4 + 0x792ca0], ecx
mov eax, dword [ebp + eax*4 - 0x3c]
jmp 0x403e0c
mov eax, dword [ebp - 0x38]
mov edx, dword [eax*4 + 0x792ca0]
mov ecx, edi
call fcn.004079f6
jmp case.0x4022f2.66
mov eax, dword [0x791fd8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40246a
push dword [ebp - 0x38]
push eax
call esi
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x791fe0]
test eax, eax
je case.0x4022f2.66
push ecx
push eax
call esi
jmp case.0x4022f2.66
push 0xfffffffffffffff0
pop ecx
call fcn.00402162
push dword [ebp - 0x38]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00407f13
add esp, 0xc
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4022f2.66
push str.SetFileAttributes_failed.
call fcn.00407f13
pop ecx
xor esi, esi
inc esi
jmp 0x403e04
push 0xfffffffffffffff0
pop ecx
call fcn.00402162
push dword [ebp - 0x38]
mov esi, eax
push esi
push str.CreateDirectory:___s____d_
call fcn.00407f13
add esp, 0xc
mov ecx, esi
call fcn.004075d5
mov edi, eax
test edi, edi
je 0x40255f
mov dl, 0x5c
mov ecx, edi
call fcn.00407571
mov edi, eax
push ebx
push esi
mov al, byte [edi]
mov byte [ebp - 9], al
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402548
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40252d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.00407f13
add esp, 0xc
inc dword [ebp - 4]
jmp 0x402555
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x402555
push esi
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.00407f13
inc dword [ebp - 4]
jmp 0x402553
push esi
push str.CreateDirectory:___s__created
call fcn.00407f13
pop ecx
pop ecx
mov al, byte [ebp - 9]
mov byte [edi], al
inc edi
test al, al
jne 0x4024e8
mov edx, 0x40c100
cmp dword [ebp - 0x38], ebx
je 0x4025af
push 0xffffffffffffffe6
pop ecx
call fcn.00406cd8
push 0x400
push esi
push 0x799800
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x4022f2.66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SetCurrentDirectory__s__failed___d_
call fcn.00407f13
mov esi, dword [ebp - 4]
add esp, 0xc
inc esi
jmp 0x403e04
push 0xfffffffffffffff5
pop ecx
jmp 0x402397
xor ecx, ecx
call fcn.00402162
mov esi, eax
mov ecx, esi
call fcn.00407f44
test eax, eax
je 0x4025e4
push dword [ebp - 0x38]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.00407f13
mov eax, dword [ebp - 0x38]
add esp, 0xc
jmp 0x403e0c
push dword [ebp - 0x34]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.00407f13
add esp, 0xc
mov eax, dword [ebp - 0x34]
jmp 0x403e0c
push 0xffffffffffffffd0
pop ecx
call fcn.00402162
push 0xffffffffffffffdf
pop ecx
mov edi, eax
call fcn.00402162
push 0x13
pop ecx
mov ebx, eax
call fcn.00402162
mov esi, eax
push esi
push str.Rename:__s
call fcn.00407f13
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x402640
mov edx, 0x40c100
push 0xffffffffffffffe3
jmp 0x4025b1
cmp dword [ebp - 0x34], 0
je 0x402679
mov ecx, edi
call fcn.00407f44
test eax, eax
je 0x402679
mov edx, ebx
mov ecx, edi
call fcn.00407952
push 0xffffffffffffffe4
mov edx, 0x40c100
pop ecx
call fcn.00406cd8
push esi
push str.Rename_on_reboot:__s
call fcn.00407f13
pop ecx
pop ecx
jmp case.0x4022f2.66
push esi
push str.Rename_failed:__s
call fcn.00407f13
pop ecx
jmp 0x4024b7
xor ecx, ecx
call fcn.00402162
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
mov esi, 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4026b3
mov edi, dword [ebp - 0x1c]
xor esi, esi
inc esi
mov byte [edi], bl
jmp 0x4026dd
mov eax, dword [ebp - 8]
cmp eax, edi
jbe 0x4026d7
cmp byte [eax], bl
je 0x4026d7
mov ecx, edi
call fcn.00407f44
test eax, eax
je 0x4026a9
push esi
add eax, 0x2c
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], ebx
jne 0x403e04
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x403e04
or ecx, 0xffffffff
call fcn.00402162
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4022f2.66
xor esi, esi
mov byte [edi], bl
inc esi
jmp 0x403e04
push 0xffffffffffffffef
pop ecx
call fcn.00402162
mov edx, eax
mov ecx, edi
call fcn.0040776b
test eax, eax
jne case.0x4022f2.66
jmp 0x4024b8
push 0x31
pop ecx
call fcn.00402162
mov ecx, dword [ebp - 0x3c]
mov esi, eax
mov eax, ecx
mov dword [ebp - 0x14], esi
sar ecx, 3
and eax, 7
push esi
and ecx, 2
mov dword [ebp - 0x1c], eax
push ecx
push eax
push str.File:_overwriteflag_d__allowskipfilesflag_d__name__s_
call fcn.00407f13
add esp, 0x10
mov ecx, esi
call fcn.004075b0
mov edi, 0x400
push edi
test eax, eax
je 0x402791
push esi
mov esi, 0x40bd00
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4027b3
push 0x799800
mov esi, 0x40bd00
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, eax
call fcn.00407548
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00407cef
xor esi, esi
inc esi
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jl 0x4027f9
mov ecx, 0x40bd00
call fcn.00407f44
mov ecx, ebx
test eax, eax
je 0x4027e4
lea ecx, [ebp - 0x30]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x402807
mov ecx, 0x40bd00
call fcn.00407718
xor eax, eax
mov edx, 0x40000000
cmp dword [ebp - 0x1c], esi
mov ecx, 0x40bd00
setne al
inc eax
push eax
call fcn.0040773c
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40290e
cmp dword [ebp - 0x1c], ebx
jne 0x4028dc
push 0x40bd00
push str.File:_error_creating___s_
call fcn.00407f13
pop ecx
pop ecx
push edi
push section..ndata
push 0x40c500
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x40bd00
push section..ndata
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0x28]
mov ecx, 0x40c100
call fcn.00407a7b
push edi
push 0x40c500
push section..ndata
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0x3c]
mov ecx, 0x40c100
sar edx, 3
call fcn.0040724c
sub eax, 4
jne 0x4028ab
push str.File:_error__user_retry
call fcn.00407f13
pop ecx
jmp 0x4027bc
dec eax
je 0x4028c6
push str.File:_error__user_abort
call fcn.00407f13
pop ecx
push 0xfffffffffffffffa
mov edx, 0x40bd00
pop ecx
jmp 0x402327
push str.File:_error__user_cancel
call fcn.00407f13
inc dword [0x792ca8]
pop ecx
jmp 0x403e0a
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffe2
pop ecx
call fcn.00406cd8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 2
mov eax, dword [ebp - 4]
push ecx
cmove eax, esi
push 0x40bd00
mov dword [ebp - 4], eax
push str.File:_skipped:___s___overwriteflag_d_
call fcn.00407f13
add esp, 0xc
jmp case.0x4022f2.66
mov edx, dword [ebp - 0x14]
push 0xffffffffffffffea
pop ecx
call fcn.00406cd8
mov eax, dword [ebp - 0x24]
xor ecx, ecx
or ecx, dword [ebp - 0x34]
or eax, ebx
inc dword [0x792cd4]
xor edx, edx
push ebx
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040462b
dec dword [0x792cd4]
mov ecx, edx
mov esi, 0x40bd00
mov dword [ebp - 8], eax
push esi
push ecx
push eax
push str.File:_wrote__I64d_to___s_
mov dword [ebp - 0x10], ecx
call fcn.00407f13
or edi, 0xffffffff
add esp, 0x10
cmp dword [ebp - 0x30], edi
jne 0x402966
cmp dword [ebp - 0x2c], edi
je 0x402975
lea eax, [ebp - 0x30]
push eax
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jg case.0x4022f2.66
mov eax, dword [ebp - 8]
jl 0x402996
cmp eax, ebx
jae case.0x4022f2.66
cmp eax, 0xfffffffe
jne 0x4029b5
cmp ecx, edi
jne 0x4029b5
push 0xffffffffffffffe9
pop edx
mov ecx, esi
call fcn.00407a7b
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4029bf
push 0xffffffffffffffee
pop edx
mov ecx, esi
call fcn.00407a7b
push esi
push 0x4095f0
call fcn.00407f13
pop ecx
pop ecx
mov ecx, esi
mov edx, 0x200010
call fcn.0040724c
jmp 0x40232c
xor ecx, ecx
call fcn.00402162
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00407f13
mov edx, dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, esi
call fcn.004072f2
jmp case.0x4022f2.66
push 0x31
pop ecx
call fcn.00402162
mov esi, eax
push esi
push dword [ebp - 0x3c]
push str.MessageBox:__d___s_
call fcn.00407f13
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, esi
call fcn.0040724c
test eax, eax
je 0x4024b8
cmp eax, dword [ebp - 0x34]
jne 0x402a3c
mov eax, dword [ebp - 0x30]
jmp 0x403e0c
cmp eax, dword [ebp - 0x2c]
jne case.0x4022f2.66
mov eax, dword [ebp - 0x28]
jmp 0x403e0c
push 0xfffffffffffffff0
pop ecx
call fcn.00402162
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x4029ec
xor ecx, ecx
inc ecx
call fcn.00402162
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
jmp 0x402446
push 2
pop ecx
call fcn.0040214b
push 3
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
call fcn.0040214b
xor ecx, ecx
mov dword [ebp - 0x10], eax
inc ecx
call fcn.00402162
mov dword [ebp - 0x44], eax
mov byte [edi], bl
cmp dword [ebp - 0x34], ebx
je 0x402aa7
test esi, esi
je case.0x4022f2.66
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x402abf
add eax, ecx
js case.0x4022f2.66
cmp eax, ecx
mov esi, 0x400
push esi
cmovg eax, ecx
add eax, dword [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 8]
test ecx, ecx
je case.0x4022f2.66
jns 0x402af4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
add ecx, eax
push 0
pop eax
cmovs ecx, eax
cmp ecx, esi
mov esi, dword [ebp - 4]
jge 0x403e04
mov byte [ecx + edi], bl
jmp 0x403e04
push 0x20
pop ecx
call fcn.00402162
push 0x31
pop ecx
mov esi, eax
call fcn.00402162
push eax
push esi
cmp dword [ebp - 0x2c], ebx
jne 0x402b33
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402a34
jmp 0x4025f5
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x402b26
xor esi, esi
inc esi
mov ecx, esi
call fcn.00402162
push 0x400
push edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402b6c
cmp dword [ebp - 0x34], ebx
je 0x402b70
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402b70
mov byte [edi], bl
jmp 0x402b73
mov esi, dword [ebp - 4]
mov byte [edi + 0x3ff], bl
jmp 0x403e04
xor ecx, ecx
call fcn.0040214b
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.0040214b
cmp dword [ebp - 0x28], ebx
jne 0x402baa
cmp esi, eax
jl 0x402a34
jle 0x4025f5
mov eax, dword [ebp - 0x2c]
jmp 0x403e0c
cmp esi, eax
jb 0x402a34
jbe 0x4025f5
jmp 0x402ba2
xor esi, esi
inc esi
mov ecx, esi
call fcn.0040214b
push 2
pop ecx
mov dword [ebp - 0xc], eax
call fcn.0040214b
mov ecx, eax
mov eax, dword [ebp - 0x30]
cmp eax, 0xc
ja case.default.0x402bdd
jmp dword [eax*4 + 0x403f1f]
mov edx, dword [ebp - 0xc]
add edx, ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
sub edx, ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
imul edx, ecx
jmp 0x402446
test ecx, ecx
je 0x402c12
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
jmp 0x402a6e
mov edx, ebx
mov dword [ebp - 4], esi
jmp 0x402446
mov edx, dword [ebp - 0xc]
or edx, ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
and edx, ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
xor edx, ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
xor eax, eax
test edx, edx
sete al
jmp 0x402a6e
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x402c54
test ecx, ecx
je 0x402c62
mov edx, esi
jmp 0x402446
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x402c50
mov edx, ebx
jmp 0x402446
test ecx, ecx
je 0x402c12
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
jmp 0x402446
mov edx, dword [ebp - 0xc]
shl edx, cl
jmp 0x402446
mov edx, dword [ebp - 0xc]
sar edx, cl
jmp 0x402446
mov edx, dword [ebp - 0xc]
jmp 0x402446
xor ecx, ecx
inc ecx
call fcn.00402162
push 2
pop ecx
mov esi, eax
call fcn.0040214b
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x402906
mov ecx, dword [ebp - 0x34]
mov eax, ecx
mov esi, dword [0x40b0bc]
test ecx, ecx
je 0x402d2a
dec eax
test esi, esi
je 0x402d0c
mov esi, dword [esi]
test eax, eax
jne 0x402cc3
test esi, esi
je 0x402d0c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, 0x400
push ebx
add esi, 4
push esi
push 0x40bd00
call edi
mov eax, dword [0x40b0bc]
push ebx
add eax, 4
push eax
push esi
call edi
mov eax, dword [0x40b0bc]
push ebx
push 0x40bd00
add eax, 4
push eax
call edi
jmp case.0x4022f2.66
push ecx
push str.Exch:_stack____d_elements
call fcn.00407f13
pop ecx
pop ecx
push 0xffffffffffffffe8
pop edx
xor ecx, ecx
call fcn.00407a7b
mov ecx, eax
jmp 0x4029ce
cmp dword [ebp - 0x38], ebx
je 0x402d60
test esi, esi
jne 0x402d3d
push str.Pop:_stack_empty
jmp 0x4024b2
push 0x400
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esi]
push esi
mov dword [0x40b0bc], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4022f2.66
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x3c]
mov esi, eax
lea ecx, [esi + 4]
call fcn.00407a7b
mov eax, dword [0x40b0bc]
mov dword [esi], eax
mov dword [0x40b0bc], esi
jmp case.0x4022f2.66
push 3
pop ecx
call fcn.0040214b
push 4
pop ecx
mov dword [ebp - 0x14], eax
call fcn.0040214b
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], esi
test al, 1
je 0x402db9
push 0x33
pop ecx
call fcn.00402162
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
test al, 2
je 0x402dca
push 0x44
pop ecx
call fcn.00402162
mov esi, eax
mov dword [ebp - 8], eax
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x40], 0x21
jne 0x402e1b
call fcn.0040214b
push 2
pop ecx
mov dword [ebp - 8], eax
call fcn.0040214b
mov ecx, dword [ebp - 0x28]
sar ecx, 2
test ecx, ecx
je 0x402e0b
lea edx, [ebp - 0x18]
push edx
push ecx
push ebx
push esi
push dword [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
inc esi
jmp 0x402e4c
push esi
push dword [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402e46
call fcn.00402162
push 0x12
pop ecx
mov esi, eax
call fcn.00402162
xor ecx, ecx
cmp byte [eax], cl
cmovne ecx, eax
push ecx
xor ecx, ecx
cmp byte [esi], cl
cmovne ecx, esi
push ecx
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x3c], ebx
jl 0x403e04
mov edx, eax
mov ecx, edi
call fcn.004079f6
jmp 0x403e04
xor ecx, ecx
call fcn.0040214b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [ebp - 0x34]
test eax, eax
cmovne ecx, dword [ebp - 0x38]
mov eax, ecx
jmp 0x403e0c
push 2
pop ecx
call fcn.0040214b
xor ecx, ecx
push eax
inc ecx
call fcn.0040214b
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x402a6e
mov eax, dword [0x792c68]
xor ecx, ecx
add eax, dword [ebp - 0x38]
push eax
push 0xffffffffffffffeb
call fcn.0040214b
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4022f2.66
push dword [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x4c]
imul ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
imul eax, dword [ebp - 0x34]
push 0x10
push ecx
xor ecx, ecx
push eax
push ebx
call fcn.00402162
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je case.0x4022f2.66
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4022f2.66
push 0x48
push 0x5a
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.0040214b
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x40bcc0], eax
call fcn.0040214b
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov dword [0x40bcd0], eax
mov al, cl
and al, 1
mov byte [0x40bcd7], 1
mov byte [0x40bcd4], al
mov al, cl
and cl, 4
and al, 2
mov byte [0x40bcd6], cl
mov ecx, 0x40bcdc
mov byte [0x40bcd5], al
call fcn.00407a7b
push 0x40bcc0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x402a6e
xor ecx, ecx
call fcn.0040214b
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.0040214b
mov edi, eax
cmp dword [ebp - 0x34], ebx
je 0x402fb2
push str.HideWindow
call fcn.00407f13
pop ecx
push edi
push esi
cmp dword [ebp - 0x30], ebx
jne 0x402fc4
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4022f2.66
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4022f2.66
xor ecx, ecx
call fcn.00402162
push 0x31
pop ecx
mov esi, eax
call fcn.00402162
push 0x22
pop ecx
mov ebx, eax
call fcn.00402162
push 0x15
pop ecx
mov edi, eax
call fcn.00402162
push 0xffffffffffffffec
mov edx, 0x40c100
pop ecx
call fcn.00406cd8
push dword [ebp - 0x30]
xor ecx, ecx
cmp byte [edi], cl
push 0x799800
cmovne ecx, edi
xor eax, eax
cmp byte [esi], al
push ecx
push ebx
cmovne eax, esi
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge 0x40303f
push eax
push edi
push ebx
push esi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.00407f13
add esp, 0x14
jmp 0x4024b8
push edi
push ebx
push esi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.00407f13
add esp, 0x10
jmp case.0x4022f2.66
xor ecx, ecx
call fcn.00402162
mov ebx, eax
push ebx
push str.Exec:_command__s_
call fcn.00407f13
pop ecx
pop ecx
push 0xffffffffffffffeb
mov edx, ebx
pop ecx
call fcn.00406cd8
mov ecx, ebx
call fcn.004071f7
mov edi, eax
push ebx
test edi, edi
je 0x4030e9
push str.Exec:_success____s__
call fcn.00407f13
cmp dword [ebp - 0x34], 0
pop ecx
pop ecx
je 0x4030dd
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4030a4
push 0xf
pop ecx
call fcn.00407f98
push 0x64
push edi
call ebx
cmp eax, 0x102
je 0x40309c
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x38], 0
jl 0x4030cd
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.004079f6
jmp 0x4030dd
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
cmp dword [ebp - 8], 0
cmovne eax, ecx
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4022f2.66
push str.Exec:_failed_createprocess____s__
jmp 0x40267f
push 2
pop ecx
call fcn.00402162
mov ecx, eax
call fcn.00407f44
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40311e
mov edx, dword [eax + 0x14]
mov ecx, esi
call fcn.004079f6
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x18]
jmp 0x402446
mov byte [edi], bl
mov byte [esi], bl
jmp 0x4024b8
push 0xffffffffffffffee
pop ecx
call fcn.00402162
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov byte [edi], bl
mov byte [esi], bl
xor esi, esi
inc esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403e04
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x403e04
push eax
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4031af
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x409720
push dword [ebp - 0x18]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4031af
mov edx, dword [ebp - 8]
mov ecx, edi
mov edx, dword [edx + 8]
call fcn.004079f6
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + 0xc]
call fcn.004079f6
mov dword [ebp - 4], ebx
mov esi, ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403e04
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp dword [0x792c84], ebx
jl 0x4032c6
push 0xfffffffffffffff0
pop ecx
call fcn.00402162
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x18], edi
call fcn.00402162
mov dword [ebp - 8], eax
cmp dword [ebp - 0x2c], ebx
je 0x4031fb
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40320f
mov edi, dword [ebp - 0x18]
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x4032ac
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40325f
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], ebx
je 0x403240
mov ecx, dword [ebp - 0x34]
mov edx, 0x40c100
call fcn.00406cd8
call dword [ebp - 0x10]
test eax, eax
je 0x40327d
jmp 0x403280
mov eax, dword [ebp - 0x14]
push 0x40b008
push 0x40b0bc
push section..ndata
push 0x400
push eax
call ecx
add esp, 0x14
jmp 0x40327d
mov ebx, dword [ebp - 8]
mov edx, ebx
push 0xfffffffffffffff7
pop ecx
call fcn.00406cd8
push dword [ebp - 0x18]
push ebx
push str.Error_registering_DLL:__s_not_found_in__s
call fcn.00407f13
add esp, 0xc
mov esi, dword [ebp - 4]
cmp dword [ebp - 0x30], 0
jne 0x403e04
mov eax, dword [0x40b0b0]
jmp 0x40329c
cmp dword [eax + 8], edi
je 0x403e04
mov eax, dword [eax]
test eax, eax
jne 0x403291
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403e04
push 0xfffffffffffffff6
mov edx, 0x40c100
pop ecx
call fcn.00406cd8
push dword [ebp - 0x18]
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x40266d
push 0xffffffffffffffe7
mov edx, 0x40c100
pop ecx
call fcn.00406cd8
push str.Error_registering_DLL:_Could_not_initialize_OLE
call fcn.00407f13
jmp 0x402673
push 0xfffffffffffffff0
pop ecx
call fcn.00402162
push 0xffffffffffffffdf
pop ecx
mov dword [ebp - 0x14], eax
call fcn.00402162
push 2
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.00402162
push 0xffffffffffffffcd
pop ecx
mov dword [ebp - 0x18], eax
call fcn.00402162
push 0x45
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
call fcn.00402162
mov ecx, edi
mov dword [ebp - 0x44], eax
call fcn.004075b0
test eax, eax
jne 0x403330
push 0x21
pop ecx
call fcn.00402162
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
sar eax, 0x10
push eax
mov eax, ecx
sar eax, 8
and eax, 0xff
push eax
movzx eax, cl
push eax
push esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push str.CreateShortCut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.00407f13
add esp, 0x20
lea eax, [ebp - 0xc]
xor esi, esi
inc esi
push eax
push 0x4092e8
push esi
push ebx
push 0x4092f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40346a
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
push edx
push 0x409308
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
test edi, edi
js 0x403451
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp - 0xc]
push 0x799800
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 0x2c]
mov eax, edx
sar eax, 8
and eax, 0xff
mov dword [ebp - 0x10], eax
je 0x4033d6
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
sar edx, 0x10
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x4033fb
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 0x2c]
push eax
push dword [ebp - 8]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test edi, edi
js 0x403448
push 0x400
push 0x40b4c0
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov edi, 0x80004005
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403448
mov eax, dword [ebp - 0x1c]
push esi
push 0x40b4c0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
js 0x40346a
mov edx, 0x40c100
push 0xfffffffffffffff4
jmp 0x4025b1
mov dword [ebp - 4], esi
mov edx, 0x40c100
push 0xfffffffffffffff0
jmp 0x4025b1
xor ecx, ecx
call fcn.00402162
push 0x11
pop ecx
mov edi, eax
call fcn.00402162
push 0x23
mov esi, eax
pop ecx
mov dword [ebp - 8], esi
call fcn.00402162
push esi
push edi
push str.CopyFiles___s_____s_
mov dword [ebp - 0x10], eax
call fcn.00407f13
add esp, 0xc
mov ecx, edi
call fcn.00407f44
test eax, eax
jne 0x4034c3
push 0xfffffffffffffff9
xor edx, edx
pop ecx
call fcn.00406cd8
jmp 0x4024b8
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 2
call esi
push dword [ebp - 8]
mov byte [eax + edi + 1], bl
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov byte [eax + ecx + 1], bl
mov ax, word [ebp - 0x34]
mov dword [ebp - 0x58], ecx
xor ecx, ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x4a], edx
mov word [ebp - 0x54], ax
call fcn.00406cd8
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4022f2.66
jmp 0x4034b4
cmp ecx, 0xbadf00d
jne 0x402d19
inc dword [0x792cb4]
jmp case.0x4022f2.66
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, 0x400
push edi
push str._RM_
push 0x40c100
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
call esi
push edi
push 0x40c100
mov edi, 0x40c500
push edi
call esi
cmp dword [ebp - 0x3c], ebx
je 0x403569
xor ecx, ecx
call fcn.00402162
mov ebx, eax
cmp dword [ebp - 0x38], 0
je 0x40357a
push 0x11
pop ecx
call fcn.00402162
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x2c], 0
je 0x40358b
push 0x22
pop ecx
call fcn.00402162
mov dword [ebp - 8], eax
push 0xffffffffffffffcd
pop ecx
call fcn.00402162
mov esi, eax
push esi
push edi
push 0x40c100
push 0x40bd00
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.00407f13
add esp, 0x14
push esi
push dword [ebp - 8]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x402736
push 0xa
xor ecx, ecx
pop eax
inc ecx
mov word [ebp - 0xc], ax
call fcn.00402162
push 0x12
pop ecx
mov edi, eax
call fcn.00402162
push 0xffffffffffffffdd
pop ecx
mov esi, eax
call fcn.00402162
mov ecx, dword [ebp - 0x18]
push eax
push 0x3ff
lea eax, [ecx + section..ndata]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + section..ndata]
cmp byte [eax], 0xa
jne case.0x4022f2.66
xor esi, esi
mov byte [eax], bl
inc esi
jmp 0x403e04
mov ecx, dword [ebp - 0x38]
call fcn.00407e34
cmp dword [ebp - 0x2c], 0
mov ebx, eax
mov dword [ebp - 0x10], ebx
jne 0x403674
push 2
pop ecx
call fcn.0040224d
mov edi, eax
test edi, edi
je 0x4024b8
push 0x33
pop ecx
call fcn.00402162
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push 0x40c500
push dword [ebp - 0x10]
mov ebx, eax
push str.DeleteRegValue:___s_s____s_
call fcn.00407f13
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4036b0
push 0x22
pop ecx
call fcn.00402162
mov esi, eax
push esi
push ebx
push str.DeleteRegKey:___s_s_
call fcn.00407f13
mov ecx, dword [ebp - 0x38]
add esp, 0xc
test ecx, ecx
jne 0x4036a0
mov ecx, dword [0x792ca4]
add ecx, 0x80000001
mov eax, dword [ebp - 0x2c]
mov edx, esi
and eax, 2
push eax
call fcn.0040219e
mov ebx, eax
test ebx, ebx
je case.0x4022f2.66
jmp 0x4024b8
test ecx, ecx
je 0x4036c5
mov edi, ecx
jmp 0x4036d1
mov edi, dword [0x792ca4]
add edi, 0x80000001
mov eax, dword [ebp - 0x2c]
push 2
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
pop ecx
mov dword [ebp - 0x44], eax
call fcn.00402162
push 0x11
pop ecx
mov dword [ebp - 0x14], eax
call fcn.00402162
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.00407e34
mov ecx, dword [0x792cd0]
xor esi, esi
push ebx
mov dword [ebp - 0x1c], eax
or ecx, 2
lea eax, [ebp - 0x10]
inc esi
push eax
push ebx
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40383a
mov eax, dword [ebp - 8]
mov edi, 0x40c500
mov dword [ebp - 0x18], ebx
cmp eax, esi
jne 0x40377e
push 0x23
pop ecx
call fcn.00402162
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push dword [ebp - 0x14]
inc eax
cmp dword [ebp - 0x44], esi
mov esi, dword [ebp - 0xc]
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jne 0x40376c
push str.WriteRegStr:___s_s____s___s_
call fcn.00407f13
add esp, 0x14
jmp 0x4037fc
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00407f13
mov eax, dword [ebp - 8]
add esp, 0x14
jmp 0x403781
mov esi, dword [ebp - 0xc]
cmp eax, 4
jne 0x4037b2
push 3
pop ecx
call fcn.0040214b
push eax
push dword [ebp - 0x14]
mov dword [0x40c500], eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00407f13
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, 3
jne 0x4037fc
mov eax, dword [ebp - 0x24]
xor ecx, ecx
or ecx, dword [ebp - 0x30]
or eax, ebx
push 0xc00
push eax
push ecx
mov edx, edi
xor ecx, ecx
call fcn.0040462b
push eax
push edi
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x18], eax
call fcn.00407e9c
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x1c]
push str.WriteRegBin:___s_s____s___s_
call fcn.00407f13
add esp, 0x1c
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x44]
mov edi, dword [ebp - 0x14]
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40381a
mov dword [ebp - 4], ebx
jmp 0x40382c
push edi
push esi
push dword [ebp - 0x1c]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.00407f13
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4022f2.66
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push str.WriteReg:_error_creating_key___s_s_
jmp 0x402901
mov ecx, 0x20019
call fcn.0040224d
push 0x33
pop ecx
mov esi, eax
call fcn.00402162
mov byte [edi], bl
test esi, esi
je 0x4024b8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x400
push ecx
push edi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4038bd
cmp dword [ebp - 8], 4
je 0x4038a7
cmp dword [ebp - 8], ecx
je 0x403899
cmp dword [ebp - 8], 2
jne 0x4038bd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov byte [edi + 0x3ff], bl
jmp 0x4038c2
mov edx, dword [edi]
xor eax, eax
cmp dword [ebp - 0x2c], eax
mov ecx, edi
sete al
mov dword [ebp - 4], eax
call fcn.004079f6
jmp 0x4038c2
mov byte [edi], bl
mov dword [ebp - 4], ecx
push esi
jmp 0x40382f
mov ecx, 0x20019
call fcn.0040224d
push 3
pop ecx
mov esi, eax
call fcn.0040214b
mov byte [edi], bl
test esi, esi
je 0x4024b8
mov ecx, 0x3ff
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x2c], ebx
je 0x4038ff
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x40389f
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40389f
jmp 0x4024b8
cmp byte [edi], bl
je case.0x4022f2.66
mov ecx, edi
call fcn.00407a07
push eax
jmp 0x4030de
push 0xffffffffffffffed
pop ecx
call fcn.00402162
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.0040773c
cmp eax, 0xffffffff
jne 0x402a6e
mov byte [edi], bl
jmp 0x4024b8
xor esi, esi
inc esi
cmp dword [ebp - 0x34], ebx
je 0x40396b
mov ecx, esi
call fcn.0040214b
mov byte [0x40c100], al
mov eax, esi
jmp 0x40397a
push 0x11
pop ecx
call fcn.00402162
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi], bl
je 0x403e04
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x40c100
mov ecx, edi
call fcn.00407a07
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.0x4022f2.66
jmp 0x403e04
push 2
pop ecx
mov dword [ebp - 0x14], ebx
call fcn.0040214b
xor esi, esi
inc esi
cmp eax, esi
jl case.0x4022f2.66
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [edi], bl
je 0x403a78
mov ecx, edi
mov byte [ebp - 9], bl
call fcn.00407a07
mov ecx, eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x10], ebx
jle 0x403a7b
push ebx
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1d]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a5d
cmp dword [ebp - 8], esi
jne 0x403a5d
cmp dword [ebp - 0x30], ebx
jne 0x403a68
mov al, byte [ebp - 9]
cmp al, 0xd
je 0x403a36
cmp al, 0xa
je 0x403a36
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x1d]
mov byte [ebp - 9], cl
mov byte [eax + edi], cl
inc eax
mov dword [ebp - 0x14], eax
test cl, cl
je 0x403a60
mov ecx, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x10]
jl 0x4039ee
jmp 0x403a60
mov cl, byte [ebp - 0x1d]
cmp al, cl
je 0x403a50
cmp cl, 0xd
je 0x403a47
cmp cl, 0xa
jne 0x403a50
mov eax, dword [ebp - 0x14]
mov byte [eax + edi], cl
inc eax
jmp 0x403a60
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
mov byte [eax + edi], bl
jmp 0x40399b
movzx edx, byte [ebp - 0x1d]
mov ecx, edi
call fcn.004079f6
jmp 0x403e0a
mov edi, dword [ebp - 0x1c]
mov eax, ebx
jmp 0x403a60
cmp byte [edi], bl
je case.0x4022f2.66
push dword [ebp - 0x30]
push ebx
push 2
pop ecx
call fcn.0040214b
push eax
mov ecx, edi
call fcn.00407a07
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x38], ebx
jl case.0x4022f2.66
mov edx, eax
mov ecx, esi
jmp 0x402448
cmp byte [edi], bl
je case.0x4022f2.66
mov ecx, edi
call fcn.00407a07
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4022f2.66
cmp byte [esi], bl
je 0x40271b
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.00407a07
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40271b
push 0x400
lea eax, [ebp - 0x1fc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp case.0x4022f2.66
push 2
pop ecx
call fcn.00402162
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x403b2e
mov byte [esi], bl
jmp 0x40394c
mov edx, eax
mov ecx, esi
call fcn.004079f6
jmp 0x403af4
push 0xfffffffffffffff0
pop ecx
mov dword [ebp - 0x14], 0xfffffd66
or edi, 0xffffffff
call fcn.00402162
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.004075b0
test eax, eax
jne 0x403b63
push 0xffffffffffffffed
pop ecx
call fcn.00402162
mov ecx, esi
call fcn.00407718
push 2
mov edx, 0x40000000
mov ecx, esi
call fcn.0040773c
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x403c5e
mov eax, dword [0x792c28]
push eax
push 0x40
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x403c55
push 3
mov edx, 0x80000000
mov ecx, 0x79ac00
call fcn.0040773c
push ebx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x44]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x403c24
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
xor edx, edx
or edx, dword [ebp - 0x38]
or ecx, ebx
push ecx
push edx
mov edx, esi
xor ecx, ecx
call fcn.0040462b
cmp byte [esi], bl
je 0x403c1b
mov ebx, esi
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
add ebx, 8
mov ecx, dword [ebp - 8]
mov edx, ebx
push esi
add ecx, eax
call fcn.004076fb
add ebx, esi
cmp byte [ebx], 0
jne 0x403bfd
xor ebx, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x18]
xor edx, edx
push ebx
push edi
push edi
call fcn.0040462b
mov esi, dword [ebp - 0x1c]
mov edi, edx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
push dword [ebp - 0x14]
push str.created_uninstaller:__I64d____s_
call fcn.00407f13
add esp, 0x10
push 0xfffffffffffffff3
pop ecx
cmp edi, ebx
jg 0x403c8f
jl 0x403c7e
cmp dword [ebp - 0x14], ebx
jae 0x403c8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xffffffffffffffef
mov dword [ebp - 4], 1
pop ecx
mov edx, 0x40c100
jmp 0x402397
test ecx, ecx
je 0x403cdc
push dword [ebp - 0x38]
push str.settings_logging_to__d
call fcn.00407f13
mov eax, dword [ebp - 0x38]
push eax
push str.logging_set_to__d
mov dword [0x791fc0], eax
call fcn.00407f13
add esp, 0x10
cmp dword [ebp - 0x38], ebx
je 0x403ccf
call fcn.00405611
jmp case.0x4022f2.66
xor ecx, ecx
inc ecx
call fcn.00407d94
jmp case.0x4022f2.66
xor ecx, ecx
inc ecx
call fcn.00402162
push eax
push 0x4095f0
jmp 0x40266d
xor ecx, ecx
call fcn.0040214b
mov ebx, eax
cmp ebx, dword [0x792c4c]
jae 0x4024b8
mov ecx, dword [ebp - 0x34]
imul edi, ebx, 0x418
add edi, dword [0x792c48]
test ecx, ecx
js 0x403d2f
mov edx, dword [edi + ecx*4]
jne 0x403aad
push 0x400
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x403b01
or eax, 0xffffffff
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x403d48
xor ecx, ecx
inc ecx
call fcn.0040214b
mov ecx, eax
mov dword [ebp - 0x38], ecx
jmp 0x403d5d
mov edx, dword [ebp - 0x2c]
lea ecx, [edi + 0x18]
call fcn.00407a7b
or dword [edi + 8], 0x100
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [edi + eax*4], ecx
cmp dword [ebp - 0x30], 0
je case.0x4022f2.66
mov ecx, ebx
call fcn.00401ea8
jmp case.0x4022f2.66
xor ecx, ecx
call fcn.0040214b
mov edi, eax
cmp edi, 0x20
jae 0x4024b8
cmp dword [ebp - 0x30], ebx
je 0x403db3
cmp dword [ebp - 0x34], ebx
je 0x403da7
mov ecx, edi
call fcn.00401fc3
xor edx, edx
xor ecx, ecx
call fcn.00401f13
jmp case.0x4022f2.66
xor ecx, ecx
call fcn.0040200a
jmp 0x403aab
cmp dword [ebp - 0x34], ebx
je 0x403dc9
mov eax, dword [0x792c80]
mov ecx, dword [ebp - 0x38]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4022f2.66
mov edx, dword [0x792c80]
mov ecx, esi
mov edx, dword [edx + edi*4 + 0x94]
call fcn.00407a7b
jmp case.0x4022f2.66
and ecx, dword [0x40b0b4]
push ebx
push ecx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x3c], ebx
je case.0x4022f2.66
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp - 4]
add dword [0x792ca8], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret