Function at 0x40165a
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, 0x3a4
mov eax, dword [0x473dd4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 4], 0
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edi, edx
mov ebx, ecx
imul edi, edi, 0x4008
imul ebx, ebx, 0x4008
mov dword [ebp - 8], eax
mov eax, section..ndata
add edi, eax
add ebx, eax
lea eax, [ebp - 0x28]
mov dword [0x40c0c4], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffe
cmp eax, 0x47
ja case.0x4016b3.70
jmp dword [eax*4 + 0x4031da]
push edx
push str.Jump:__d
call fcn.004065e3
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jmp 0x4031d1
xor esi, esi
call fcn.0040151a
push eax
push str.Aborting:___s_
call fcn.004065e3
pop ecx
pop ecx
push esi
push dword [ebp - 0x28]
call fcn.004052ae
mov eax, 0x7fffffff
jmp 0x4031d1
inc dword [0x46bd94]
cmp dword [ebp - 8], 0
je 0x4016ec
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4016ec
push edx
call fcn.0040137c
mov esi, eax
dec esi
push esi
push str.Call:__d
call fcn.004065e3
pop ecx
pop ecx
push 0
push esi
call fcn.0040139b
jmp 0x4031d1
xor esi, esi
call fcn.0040151a
push eax
push str.detailprint:__s
call fcn.004065e3
pop ecx
pop ecx
push esi
push dword [ebp - 0x28]
call fcn.004052ae
jmp case.0x4016b3.70
xor ecx, ecx
call fcn.00401504
mov esi, eax
push esi
push str.Sleep__d_
call fcn.004065e3
cmp esi, 1
pop ecx
pop ecx
jg 0x40176f
xor esi, esi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4016b3.70
push str.BringToFront
call fcn.004065e3
pop ecx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4016b3.70
mov eax, edx
shl eax, 2
cmp dword [ebp - 0x20], 0
jne 0x4017c2
mov ecx, dword [eax + 0x473e80]
mov dword [eax + 0x473e40], ecx
xor ecx, ecx
inc ecx
call fcn.00401504
mov ecx, dword [ebp - 0x28]
mov dword [ecx*4 + 0x473e80], eax
jmp case.0x4016b3.70
mov ecx, dword [eax + 0x473e40]
mov dword [eax + 0x473e80], ecx
jmp case.0x4016b3.70
mov edx, dword [ebp - 0x20]
lea edx, [edx*4 + 0x473e80]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 - 0x28]
jmp 0x4031d1
push dword [ecx*4 + 0x473e80]
jmp 0x4031c0
mov eax, dword [0x46bda0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x401816
push ecx
push eax
call esi
mov edx, dword [ebp - 0x28]
mov eax, dword [0x46bd8c]
test eax, eax
je case.0x4016b3.70
push edx
push eax
call esi
jmp case.0x4016b3.70
push 0xfffffffffffffff0
pop esi
call fcn.0040151a
push dword [ebp - 0x24]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.004065e3
add esp, 0xc
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4016b3.70
mov dword [ebp - 4], 1
push str.SetFileAttributes_failed.
call fcn.004065e3
pop ecx
jmp case.0x4016b3.70
push 0xfffffffffffffff0
pop esi
call fcn.0040151a
push dword [ebp - 0x24]
mov ebx, eax
push ebx
push str.CreateDirectory:___s____d_
call fcn.004065e3
add esp, 0xc
push ebx
call fcn.00406096
mov esi, eax
test esi, esi
je 0x40190e
push 0x5c
push esi
call fcn.00406042
mov esi, eax
movzx edi, word [esi]
xor eax, eax
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4018dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.004065e3
add esp, 0xc
inc dword [ebp - 4]
jmp 0x401904
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401904
push ebx
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.004065e3
inc dword [ebp - 4]
jmp 0x401902
push ebx
push str.CreateDirectory:___s__created
call fcn.004065e3
pop ecx
pop ecx
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x401897
cmp dword [ebp - 0x24], 0
je 0x401932
push 0xffffffffffffffe6
call fcn.004014f3
push ebx
push 0x4cc0b0
call fcn.00406347
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp case.0x4016b3.70
push 0xfffffffffffffff5
call fcn.004014f3
jmp case.0x4016b3.70
xor esi, esi
call fcn.0040151a
mov esi, eax
push esi
call fcn.00406615
test eax, eax
je 0x40196a
push dword [ebp - 0x24]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.004065e3
add esp, 0xc
mov eax, dword [ebp - 0x24]
jmp 0x4031d1
push dword [ebp - 0x20]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.004065e3
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x4031d1
push 0xffffffffffffffd0
pop esi
call fcn.0040151a
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.0040151a
push 0x13
pop esi
mov ebx, eax
call fcn.0040151a
mov esi, eax
push esi
push str.Rename:__s
call fcn.004065e3
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 - 0x20], 0
je 0x4019e7
push edi
call fcn.00406615
test eax, eax
je 0x4019e7
push ebx
push edi
call fcn.00406fa3
push 0xffffffffffffffe4
call fcn.004014f3
push esi
push str.Rename_on_reboot:__s
jmp 0x4019f4
push esi
push str.Rename_failed:__s
mov dword [ebp - 4], 1
call fcn.004065e3
pop ecx
jmp 0x40186a
xor esi, esi
call fcn.0040151a
mov esi, eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401a42
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401a4e
cmp word [eax], 0
je 0x401a4e
push esi
call fcn.00406615
test eax, eax
je 0x401a42
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00406347
jmp 0x401a4e
xor eax, eax
mov word [ebx], ax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne case.0x4016b3.70
push 0x2004
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4016b3.70
or esi, 0xffffffff
call fcn.0040151a
lea ecx, [ebp + 8]
push ecx
push edi
push 0x2004
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4016b3.70
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
jmp case.0x4016b3.70
push 0xffffffffffffffef
pop esi
call fcn.0040151a
push eax
push edi
call fcn.004061bc
test eax, eax
jne case.0x4016b3.70
mov dword [ebp - 4], 1
jmp case.0x4016b3.70
push 0x31
pop esi
call fcn.0040151a
mov esi, eax
mov eax, dword [ebp - 0x28]
mov ecx, eax
sar eax, 3
push esi
and eax, 2
and ecx, 7
push eax
push ecx
push str.File:_overwriteflag_d__allowskipfilesflag_d__name__s_
mov dword [ebp - 8], esi
mov dword [ebp + 8], ecx
call fcn.004065e3
add esp, 0x10
push esi
call fcn.00406061
push esi
mov esi, 0x40c0c8
test eax, eax
je 0x401b09
push esi
call fcn.00406347
jmp 0x401b20
push 0x4cc0b0
push esi
call fcn.00406347
push eax
call fcn.00406a63
push eax
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.00406376
mov edi, 0x4140d8
mov ebx, 0x4100d0
cmp dword [ebp + 8], 3
jl 0x401b67
push esi
call fcn.00406615
xor ecx, ecx
test eax, eax
je 0x401b52
lea ecx, [ebp - 0x1c]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x401b73
push esi
call fcn.0040616d
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.0040618d
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x401c4d
cmp dword [ebp + 8], 0
jne 0x401c0a
push esi
push str.File:_error_creating___s_
call fcn.004065e3
pop ecx
pop ecx
push section..ndata
push edi
call fcn.00406347
push esi
push section..ndata
call fcn.00406347
push dword [ebp - 0x14]
push ebx
call fcn.00406b47
push edi
push section..ndata
call fcn.00406347
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push ebx
call fcn.00405fdc
sub eax, 4
jne 0x401bf4
push str.File:_error__user_retry
call fcn.004065e3
pop ecx
jmp 0x401b30
dec eax
je 0x401c37
push str.File:_error__user_abort
call fcn.004065e3
pop ecx
push esi
push 0xfffffffffffffffa
jmp 0x4016e7
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.004052ae
cmp dword [ebp + 8], 2
jne 0x401c21
mov dword [ebp - 4], 1
push dword [ebp + 8]
push esi
push str.File:_skipped:___s___overwriteflag_d_
call fcn.004065e3
add esp, 0xc
jmp case.0x4016b3.70
push str.File:_error__user_cancel
call fcn.004065e3
inc dword [0x473e88]
pop ecx
jmp 0x4031cf
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.004052ae
inc dword [0x473eb4]
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00403632
dec dword [0x473eb4]
mov edi, eax
push esi
push edi
push str.File:_wrote__d_to___s_
call fcn.004065e3
add esp, 0xc
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401c8f
cmp dword [ebp - 0x18], 0xffffffff
je 0x401c9e
lea eax, [ebp - 0x1c]
push eax
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge case.0x4016b3.70
cmp edi, 0xfffffffe
jne 0x401cc7
push 0xffffffffffffffe9
push esi
call fcn.00406b47
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x401ccf
push 0xffffffffffffffee
push esi
call fcn.00406b47
push esi
push 0x409a8c
call fcn.004065e3
pop ecx
pop ecx
push 0x200010
push esi
call fcn.00405fdc
jmp 0x4016ec
xor esi, esi
call fcn.0040151a
mov esi, eax
push esi
push str.Delete:___s_
call fcn.004065e3
pop ecx
pop ecx
push dword [ebp - 0x24]
push esi
call fcn.00406fd6
jmp case.0x4016b3.70
push 0x31
pop esi
call fcn.0040151a
mov esi, eax
push esi
push dword [ebp - 0x28]
push str.MessageBox:__d___s_
call fcn.004065e3
add esp, 0xc
push dword [ebp - 0x28]
push esi
call fcn.00405fdc
test eax, eax
je 0x401ab7
cmp eax, dword [ebp - 0x20]
jne 0x401d49
mov eax, dword [ebp - 0x1c]
jmp 0x4031d1
cmp eax, dword [ebp - 0x18]
jne case.0x4016b3.70
mov eax, dword [ebp - 0x14]
jmp 0x4031d1
push 0xfffffffffffffff0
pop esi
call fcn.0040151a
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401cfb
xor esi, esi
inc esi
call fcn.0040151a
push eax
call sub.KERNEL32.dll_lstrlenW
jmp 0x4031bf
push 2
pop ecx
call fcn.00401504
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401504
xor esi, esi
inc esi
mov ebx, eax
call fcn.0040151a
mov esi, eax
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x20], eax
je 0x401db1
cmp dword [ebp + 8], eax
je case.0x4016b3.70
push esi
call sub.KERNEL32.dll_lstrlenW
test ebx, ebx
jge 0x401dc3
add ebx, eax
js case.0x4016b3.70
cmp ebx, eax
jle 0x401dc9
mov ebx, eax
lea eax, [esi + ebx*2]
push eax
push edi
call fcn.00406347
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4016b3.70
jge 0x401df1
push edi
call sub.KERNEL32.dll_lstrlenW
add esi, eax
jns 0x401df1
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x2004
jge case.0x4016b3.70
xor eax, eax
mov word [edi + esi*2], ax
jmp case.0x4016b3.70
push 0x20
pop esi
call fcn.0040151a
push 0x31
pop esi
mov edi, eax
call fcn.0040151a
cmp dword [ebp - 0x18], 0
push eax
push edi
jne 0x401e35
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401d41
jmp 0x40197b
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401e28
xor esi, esi
inc esi
call fcn.0040151a
push 0x2004
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401e6a
cmp dword [ebp - 0x20], 0
je 0x401e72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401e72
xor eax, eax
mov dword [ebp - 4], esi
mov word [edi], ax
xor eax, eax
mov word [edi + 0x4006], ax
jmp case.0x4016b3.70
xor ecx, ecx
call fcn.00401504
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401504
cmp dword [ebp - 0x14], 0
jne 0x401ead
cmp esi, eax
jl 0x401d41
jle 0x40197b
mov eax, dword [ebp - 0x18]
jmp 0x4031d1
cmp esi, eax
jb 0x401d41
jbe 0x40197b
jmp 0x401ea5
xor ebx, ebx
inc ebx
mov ecx, ebx
call fcn.00401504
push 2
pop ecx
mov esi, eax
call fcn.00401504
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc
ja case.default.0x401edb
jmp dword [eax*4 + 0x4032fa]
add esi, ecx
jmp case.default.0x401edb
sub esi, ecx
jmp case.default.0x401edb
imul ecx, esi
mov esi, ecx
jmp case.default.0x401edb
test ecx, ecx
je 0x401efc
mov eax, esi
cdq
idiv ecx
jmp 0x401f16
xor esi, esi
mov dword [ebp - 4], ebx
jmp case.default.0x401edb
or esi, ecx
jmp case.default.0x401edb
and esi, ecx
jmp case.default.0x401edb
xor esi, ecx
jmp case.default.0x401edb
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401edb
test esi, esi
jne 0x401f22
test ecx, ecx
je 0x401f2a
mov esi, ebx
jmp case.default.0x401edb
test esi, esi
jne 0x401f1e
xor esi, esi
jmp case.default.0x401edb
test ecx, ecx
je 0x401efc
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401edb
shl esi, cl
jmp case.default.0x401edb
sar esi, cl
push esi
jmp 0x4031c0
xor esi, esi
inc esi
call fcn.0040151a
push 2
pop ecx
mov esi, eax
call fcn.00401504
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x401c2f
mov eax, dword [ebp - 0x20]
mov esi, dword [0x40c0c0]
test eax, eax
je 0x401fd3
dec eax
test esi, esi
je 0x401f83
mov esi, dword [esi]
test eax, eax
jne 0x401f74
test esi, esi
jne 0x401fa6
push dword [ebp - 0x20]
push str.Exch:_stack____d_elements
call fcn.004065e3
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00406b47
push eax
jmp 0x401ce2
lea edi, [esi + 4]
push edi
mov esi, 0x40c0c8
push esi
call fcn.00406347
mov eax, dword [0x40c0c0]
add eax, 4
push eax
push edi
call fcn.00406347
mov eax, dword [0x40c0c0]
push esi
add eax, 4
push eax
jmp 0x402f2f
test ecx, ecx
je 0x402002
test esi, esi
jne 0x401feb
push str.Pop:_stack_empty
call fcn.004065e3
pop ecx
jmp 0x401ab7
lea eax, [esi + 4]
push eax
push edi
call fcn.00406347
mov eax, dword [esi]
mov dword [0x40c0c0], eax
push esi
jmp 0x402455
push 0x400c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406b47
mov eax, dword [0x40c0c0]
mov dword [esi], eax
mov dword [0x40c0c0], esi
jmp case.0x4016b3.70
push 3
pop ecx
call fcn.00401504
push 4
pop ecx
mov dword [ebp - 0xc], eax
call fcn.00401504
test byte [ebp - 0x14], 1
mov dword [ebp + 8], eax
je 0x402056
push 0x33
pop esi
call fcn.0040151a
mov dword [ebp - 0xc], eax
test byte [ebp - 0x14], 2
je 0x402067
push 0x44
pop esi
call fcn.0040151a
mov dword [ebp + 8], eax
cmp dword [ebp - 0x2c], 0x21
jne 0x4020b8
xor ecx, ecx
inc ecx
call fcn.00401504
push 2
pop ecx
mov esi, eax
call fcn.00401504
mov ecx, dword [ebp - 0x14]
sar ecx, 2
test ecx, ecx
je 0x4020a8
lea edx, [ebp - 8]
push edx
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x4020ed
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4020ea
xor esi, esi
inc esi
call fcn.0040151a
push 0x12
pop esi
mov ebx, eax
call fcn.0040151a
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jl case.0x4016b3.70
push dword [ebp - 8]
jmp 0x4031c0
xor ecx, ecx
call fcn.00401504
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40197b
jmp 0x401962
push 2
pop ecx
call fcn.00401504
xor ecx, ecx
push eax
inc ecx
call fcn.00401504
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4031bf
mov eax, dword [0x473e08]
add eax, ecx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401504
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4016b3.70
push ecx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x20]
push 0x10
push eax
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x20]
push eax
xor ebx, ebx
push ebx
xor esi, esi
call fcn.0040151a
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebx
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je case.0x4016b3.70
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4016b3.70
push 0x48
push 0x5a
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401504
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x4200f0], eax
call fcn.00401504
push dword [ebp - 0x24]
mov dword [0x420100], eax
mov al, byte [ebp - 0x18]
mov cl, al
and cl, 1
mov byte [0x420104], cl
mov cl, al
and cl, 2
and al, 4
push 0x42010c
mov byte [0x420105], cl
mov byte [0x420106], al
mov byte [0x420107], 1
call fcn.00406b47
push 0x4200f0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x4031bf
xor ecx, ecx
call fcn.00401504
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401504
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x402251
push str.HideWindow
call fcn.004065e3
pop ecx
cmp dword [ebp - 0x1c], 0
push edi
push esi
jne 0x402264
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4016b3.70
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4016b3.70
xor esi, esi
call fcn.0040151a
push 0x31
pop esi
mov edi, eax
call fcn.0040151a
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.0040151a
push 0x15
pop esi
mov ebx, eax
call fcn.0040151a
push 0xffffffffffffffec
call fcn.004014f3
movzx eax, word [ebx]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ebx
push 0x4cc0b0
push eax
movzx eax, word [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jge 0x4022e1
push eax
push ebx
push dword [ebp + 8]
push edi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.004065e3
add esp, 0x14
jmp 0x401ab7
push ebx
push dword [ebp + 8]
push edi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.004065e3
add esp, 0x10
jmp case.0x4016b3.70
xor esi, esi
call fcn.0040151a
mov esi, eax
push esi
push str.Exec:_command__s_
call fcn.004065e3
pop ecx
pop ecx
push esi
push 0xffffffffffffffeb
call fcn.004052ae
push esi
call fcn.00405f7b
mov dword [ebp + 8], eax
push esi
test eax, eax
je 0x40238f
push str.Exec:_success____s__
call fcn.004065e3
cmp dword [ebp - 0x20], 0
pop ecx
pop ecx
je 0x402387
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push dword [ebp + 8]
call esi
mov edi, 0x102
jmp 0x402358
push 0xf
call fcn.00406673
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40234a
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0
jl 0x40237a
push dword [ebp - 0x10]
push ebx
call fcn.0040628e
jmp 0x402387
cmp dword [ebp - 0x10], 0
je 0x402387
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x402bc7
push str.Exec:_failed_createprocess____s__
jmp 0x4019ed
push 2
pop esi
call fcn.0040151a
push eax
call fcn.00406615
mov esi, eax
test esi, esi
je 0x4023be
push dword [esi + 0x14]
push ebx
call fcn.0040628e
push dword [esi + 0x18]
jmp 0x4031c0
xor eax, eax
mov word [edi], ax
mov word [ebx], ax
jmp 0x401ab7
push 0xffffffffffffffee
pop esi
call fcn.0040151a
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
xor eax, eax
mov word [edi], ax
mov word [ebx], ax
mov dword [ebp - 4], 1
test esi, esi
je case.0x4016b3.70
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je case.0x4016b3.70
push eax
push esi
push 0
push dword [ebp - 0x3c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402452
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
push 0x409840
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402452
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.0040628e
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push ebx
call fcn.0040628e
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4016b3.70
push 0x11
pop esi
call fcn.0040151a
push 0x2004
mov esi, eax
push edi
push esi
call fcn.00407549
add esp, 0xc
test eax, eax
jne 0x402484
mov dword [ebp - 4], 1
push edi
push esi
push str.GetTTFVersionString__s__returned__s
jmp 0x401c2a
push 0x11
pop esi
call fcn.0040151a
push 0x2004
mov esi, eax
push edi
push esi
call fcn.004075bb
add esp, 0xc
test eax, eax
jne 0x4024b4
mov dword [ebp - 4], 1
push edi
push esi
push str.GetTTFFontName__s__returned__s
jmp 0x401c2a
cmp dword [0x473eb8], 0
mov dword [ebp - 4], 1
jl 0x4025b1
push 0xfffffffffffffff0
pop esi
call fcn.0040151a
xor esi, esi
inc esi
mov ebx, eax
call fcn.0040151a
cmp dword [ebp - 0x18], 0
mov esi, eax
je 0x4024fc
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x402512
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40259f
push esi
push dword [ebp + 8]
call fcn.004066a6
mov edi, eax
test edi, edi
je 0x402560
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x402542
push dword [ebp - 0x20]
call fcn.004014f3
call edi
test eax, eax
je 0x402577
mov dword [ebp - 4], 1
jmp 0x402577
push section..data
push 0x40c0c0
push section..ndata
push 0x2004
push dword [ebp - 8]
call edi
add esp, 0x14
jmp 0x402577
push esi
push 0xfffffffffffffff7
call fcn.004052ae
push ebx
push esi
push str.Error_registering_DLL:__s_not_found_in__s
call fcn.004065e3
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne case.0x4016b3.70
push dword [ebp + 8]
call fcn.00403fee
test eax, eax
je case.0x4016b3.70
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4016b3.70
push 0xfffffffffffffff6
call fcn.004014f3
push ebx
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x4019f4
push 0xffffffffffffffe7
call fcn.004014f3
push str.Error_registering_DLL:_Could_not_initialize_OLE
jmp 0x401865
push 0xfffffffffffffff0
pop esi
call fcn.0040151a
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 8], eax
call fcn.0040151a
push 2
pop esi
mov edi, eax
call fcn.0040151a
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x10], eax
call fcn.0040151a
push 0x45
pop esi
mov ebx, eax
call fcn.0040151a
push edi
mov dword [ebp - 0x3c], eax
call fcn.00406061
test eax, eax
jne 0x402609
push 0x21
pop esi
call fcn.0040151a
mov eax, dword [ebp - 0x18]
mov ecx, eax
sar ecx, 0x10
push ecx
mov ecx, eax
sar ecx, 8
mov esi, 0xff
and ecx, esi
push ecx
and eax, esi
push eax
push ebx
push dword [ebp - 0x10]
push edi
push dword [ebp - 8]
push str.CreateShortCut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.004065e3
add esp, 0x20
lea eax, [ebp + 8]
push eax
push 0x40ab54
push 1
push 0
push 0x40ab74
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402711
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x40ab64
push eax
call dword [ecx]
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x402702
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x4cc0b0
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sar eax, 8
and eax, esi
je 0x4026a7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
cmp word [ebx], 0
je 0x4026ca
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and edx, esi
push edx
push ebx
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0xc], 0
jl 0x4026f9
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push 1
push dword [ebp - 8]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
jge 0x40271f
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x401934
push 0xfffffffffffffff4
jmp 0x401934
xor esi, esi
call fcn.0040151a
push 0x11
pop esi
mov edi, eax
call fcn.0040151a
push 0x23
pop esi
mov ebx, eax
call fcn.0040151a
push ebx
push edi
push str.CopyFiles___s_____s_
mov esi, eax
call fcn.004065e3
add esp, 0xc
push edi
call fcn.00406615
test eax, eax
jne 0x40276a
push 0
push 0xfffffffffffffff9
call fcn.004052ae
jmp 0x401ab7
mov eax, dword [ebp - 8]
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 2
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
push ebx
mov word [edi + eax*2 + 2], cx
call sub.KERNEL32.dll_lstrlenW
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
mov ax, word [ebp - 0x20]
push esi
push ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3a], esi
mov word [ebp - 0x44], ax
call fcn.004052ae
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4016b3.70
jmp 0x40275c
cmp edx, 0xbadf00d
jne 0x401f92
inc dword [0x473e94]
jmp case.0x4016b3.70
xor esi, esi
push str._RM_
mov ebx, 0x4100d0
push ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], esi
mov dword [ebp + 8], esi
call fcn.00406347
push ebx
mov edi, 0x4140d8
push edi
call fcn.00406347
cmp dword [ebp - 0x28], esi
je 0x402808
call fcn.0040151a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x24], 0
je 0x402819
push 0x11
pop esi
call fcn.0040151a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
je 0x40282a
push 0x22
pop esi
call fcn.0040151a
mov dword [ebp + 8], eax
push 0xffffffffffffffcd
pop esi
call fcn.0040151a
mov esi, eax
push esi
push edi
push ebx
push 0x40c0c8
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.004065e3
add esp, 0x14
push esi
push dword [ebp + 8]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401aaf
mov eax, dword [0x409594]
mov dword [ebp - 0x40], eax
mov eax, dword [0x409598]
xor esi, esi
inc esi
mov dword [ebp - 0x3c], eax
call fcn.0040151a
push 0x12
pop esi
mov ebx, eax
call fcn.0040151a
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 8], eax
call fcn.0040151a
push eax
push 0x2003
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401a87
push ecx
call fcn.00406500
cmp dword [ebp - 0x18], 0
pop ecx
mov dword [ebp + 8], eax
jne 0x402904
push 2
call fcn.0040160b
mov edi, eax
test edi, edi
je 0x401ab7
push 0x33
pop esi
call fcn.0040151a
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x4140d8
push dword [ebp + 8]
mov ebx, eax
push str.DeleteRegValue:___s_s____s_
call fcn.004065e3
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402940
push 0x22
pop esi
call fcn.0040151a
mov esi, eax
push esi
push dword [ebp + 8]
push str.DeleteRegKey:___s_s_
call fcn.004065e3
mov eax, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
jne 0x402930
mov eax, dword [0x473e84]
add eax, 0x80000001
mov ecx, dword [ebp - 0x18]
and ecx, 2
push ecx
push esi
push eax
call fcn.00401555
mov ebx, eax
test ebx, ebx
je case.0x4016b3.70
jmp 0x401ab7
test edx, edx
je 0x402955
mov edi, edx
jmp 0x402961
mov edi, dword [0x473e84]
add edi, 0x80000001
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push 2
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040151a
push 0x11
pop esi
mov dword [ebp - 8], eax
call fcn.0040151a
push edi
mov dword [ebp + 8], eax
call fcn.00406500
pop ecx
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [0x473eb0]
push eax
or ecx, 2
push ecx
push eax
push eax
push eax
push dword [ebp + 8]
xor ebx, ebx
inc ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402abb
xor esi, esi
mov edi, 0x4140d8
cmp dword [ebp - 0x10], ebx
jne 0x402a06
push 0x23
pop esi
call fcn.0040151a
push edi
call sub.KERNEL32.dll_lstrlenW
push edi
push dword [ebp - 8]
lea esi, [eax + eax + 2]
push dword [ebp + 8]
push dword [ebp - 0xc]
cmp dword [ebp - 0x30], ebx
jne 0x4029f9
push str.WriteRegStr:___s_s____s___s_
call fcn.004065e3
add esp, 0x14
jmp 0x402a7b
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.004065e3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jne 0x402a33
push 3
pop ecx
call fcn.00401504
push 4
pop esi
push eax
push dword [ebp - 8]
mov dword [0x4140d8], eax
push dword [ebp + 8]
push dword [ebp - 0xc]
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.004065e3
add esp, 0x14
cmp dword [ebp - 0x10], 3
jne 0x402a7b
push 0xc018
push edi
push 0
push dword [ebp - 0x1c]
call fcn.00403632
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x154]
push 0x100
push eax
call fcn.00406564
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push str.WriteRegBin:___s_s____s___s_
call fcn.004065e3
add esp, 0x24
push esi
push edi
push dword [ebp - 0x30]
push 0
push dword [ebp - 8]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402a97
and dword [ebp - 4], eax
jmp 0x402aad
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.004065e3
add esp, 0x10
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4016b3.70
push dword [ebp + 8]
push dword [ebp - 0xc]
push str.WriteReg:_error_creating_key___s_s_
jmp 0x401c2a
push 0x20019
call fcn.0040160b
push 0x33
pop esi
mov ebx, eax
call fcn.0040151a
xor ecx, ecx
mov word [edi], cx
test ebx, ebx
je 0x401ab7
lea ecx, [ebp - 0x3c]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
mov dword [ebp - 0x3c], 0x4008
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402b44
cmp dword [ebp + 8], 4
je 0x402b2f
cmp dword [ebp + 8], ecx
je 0x402b1e
cmp dword [ebp + 8], 2
jne 0x402b44
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x402b4c
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.0040628e
jmp 0x402b4c
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], ecx
push ebx
jmp 0x402ab0
push 0x20019
call fcn.0040160b
push 3
pop ecx
mov esi, eax
call fcn.00401504
xor ecx, ecx
xor edx, edx
mov word [edi], cx
cmp esi, edx
je 0x401ab7
mov ecx, 0x2003
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], edx
je 0x402b8e
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ba7
push edx
push edx
push edx
push edx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x401ab7
xor eax, eax
mov word [edi + 0x4006], ax
push esi
jmp 0x402ab0
cmp word [edi], 0
je case.0x4016b3.70
push edi
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4016b3.70
push 0xffffffffffffffed
pop esi
call fcn.0040151a
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.0040618d
cmp eax, 0xffffffff
jne 0x4031bf
xor eax, eax
mov word [edi], ax
jmp 0x401ab7
mov ebx, 0x2004
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp dword [ebp - 0x20], 0
mov esi, eax
mov dword [ebp + 8], esi
je 0x402c21
xor ecx, ecx
inc ecx
call fcn.00401504
mov byte [esi], al
xor eax, eax
inc eax
jmp 0x402c49
push 0x11
pop esi
call fcn.0040151a
xor eax, eax
push eax
push eax
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
push 0x4100d0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp word [edi], 0
je 0x402c6a
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp + 8]
push edi
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402c71
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x402455
push 2
pop ecx
xor esi, esi
call fcn.00401504
cmp eax, 1
mov dword [ebp - 0x10], eax
jl case.0x4016b3.70
mov ecx, 0x2003
cmp eax, ecx
jle 0x402c9b
mov dword [ebp - 0x10], ecx
cmp word [edi], si
je 0x402d57
push edi
mov byte [ebp - 0x31], 0
call fcn.004062a7
cmp dword [ebp - 0x10], esi
mov dword [ebp - 0x3c], eax
jle 0x402d57
push 0
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d57
cmp dword [ebp - 0x30], 1
jne 0x402d57
xor edi, edi
cmp dword [ebp - 0x1c], edi
jne 0x402d1d
push 2
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [ebp - 0x31]
cmp al, 0xd
je 0x402d2d
cmp al, 0xa
je 0x402d2d
mov ax, word [ebp - 8]
mov word [ebx + esi*2], ax
mov al, byte [ebp + 0xb]
inc esi
mov byte [ebp - 0x31], al
test al, al
je 0x402d57
cmp esi, dword [ebp - 0x10]
jl 0x402cba
jmp 0x402d57
movzx eax, byte [ebp + 0xb]
push eax
push ebx
call fcn.0040628e
jmp 0x4031cf
cmp al, byte [ebp + 0xb]
je 0x402d49
cmp byte [ebp + 0xb], 0xd
je 0x402d3e
cmp byte [ebp + 0xb], 0xa
jne 0x402d49
mov ax, word [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
jmp 0x402d57
push 1
push edi
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov word [ebx + esi*2], ax
test esi, esi
jmp 0x401ab1
cmp dword [ebp - 0x20], 0
je 0x402d7d
xor ecx, ecx
inc ecx
call fcn.00401504
mov word [0x4100d0], ax
xor eax, eax
inc eax
jmp 0x402d8b
push 0x11
pop esi
call fcn.0040151a
push eax
call sub.KERNEL32.dll_lstrlenW
cmp word [edi], 0
je 0x401ab7
push 0
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push 0x4100d0
push edi
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401aaf
push 2
pop ecx
xor esi, esi
call fcn.00401504
cmp eax, 1
mov dword [ebp - 0xc], eax
jl case.0x4016b3.70
mov ecx, 0x2003
cmp eax, ecx
jle 0x402dd7
mov dword [ebp - 0xc], ecx
cmp word [edi], si
je 0x402d57
and dword [ebp + 8], esi
push edi
call fcn.004062a7
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x3c], eax
jle 0x402d57
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x30]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d57
cmp dword [ebp - 0x30], 2
jne 0x402d57
cmp dword [ebp - 0x1c], 0
jne 0x402e50
cmp di, 0xd
je 0x402e59
cmp di, 0xa
je 0x402e59
mov ax, word [ebp + 8]
mov word [ebx + esi*2], ax
inc esi
movzx edi, ax
test ax, ax
je 0x402d57
cmp esi, dword [ebp - 0xc]
jl 0x402df8
jmp 0x402d57
movzx eax, word [ebp + 8]
jmp 0x402d21
mov ax, word [ebp + 8]
cmp di, ax
je 0x402e76
cmp ax, 0xd
je 0x402d42
cmp ax, 0xa
je 0x402d42
push 1
push 0
push 0xfffffffffffffffe
jmp 0x402d4e
cmp word [edi], 0
je case.0x4016b3.70
push dword [ebp - 0x1c]
push 0
push 2
pop ecx
call fcn.00401504
push eax
push edi
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], 0
jl case.0x4016b3.70
push eax
push ebx
jmp 0x4031c1
cmp word [edi], 0
je case.0x4016b3.70
push edi
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4016b3.70
cmp word [ebx], 0
je 0x401a8f
lea eax, [ebp - 0x3a4]
push eax
push ebx
call fcn.004062a7
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x401a8f
jmp 0x402f27
push 2
pop esi
call fcn.0040151a
lea ecx, [ebp - 0x3a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402f20
xor eax, eax
mov word [ebx], ax
jmp 0x402bef
push eax
push ebx
call fcn.0040628e
lea eax, [ebp - 0x378]
push eax
push edi
call fcn.00406347
jmp case.0x4016b3.70
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.0040151a
mov edi, eax
push edi
mov dword [ebp - 0x30], edi
call fcn.00406061
test eax, eax
jne 0x402f5d
push 0xffffffffffffffed
pop esi
call fcn.0040151a
push edi
call fcn.0040616d
push 2
push 0x40000000
push edi
call fcn.0040618d
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x403019
mov eax, dword [0x473e2c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call esi
mov edi, eax
test edi, edi
je 0x403010
push 0
call fcn.0040349d
push dword [ebp - 0x3c]
push edi
call fcn.0040346b
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x402fe7
push dword [ebp - 0x20]
push esi
push 0
push dword [ebp - 0x24]
call fcn.00403632
jmp 0x402fd9
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.00406149
add esi, ebx
cmp byte [esi], 0
jne 0x402fc5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x3c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00403632
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
push ebx
push str.created_uninstaller:__d____s_
call fcn.004065e3
add esp, 0xc
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x403044
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x401934
test edx, edx
je 0x40308b
push ecx
push str.settings_logging_to__d
call fcn.004065e3
mov eax, dword [ebp - 0x24]
push eax
push str.logging_set_to__d
mov dword [0x462538], eax
call fcn.004065e3
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x40307f
call fcn.004041aa
jmp case.0x4016b3.70
push 1
call fcn.00406427
jmp case.0x4016b3.70
xor esi, esi
inc esi
call fcn.0040151a
push eax
push 0x409a8c
jmp 0x4019f4
xor ecx, ecx
call fcn.00401504
mov edi, eax
cmp edi, dword [0x473dec]
jae 0x401ab7
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x4020
add esi, dword [0x473de8]
test eax, eax
jl 0x4030dd
mov ecx, dword [esi + eax*4]
jne 0x4030d7
add esi, 0x18
push esi
push ebx
jmp 0x402f2f
push ecx
jmp 0x402eb1
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x4030f4
xor ecx, ecx
inc ecx
call fcn.00401504
mov dword [ebp - 0x24], eax
jmp 0x403107
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00406b47
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x1c], 0
je case.0x4016b3.70
push edi
call fcn.00401186
jmp case.0x4016b3.70
xor ecx, ecx
call fcn.00401504
cmp eax, 0x20
jae 0x401ab7
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x40315b
cmp dword [ebp - 0x20], esi
je 0x403150
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4016b3.70
push esi
call fcn.004012f1
jmp 0x402eb0
cmp dword [ebp - 0x20], esi
je 0x403172
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x473ddc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4016b3.70
mov ecx, dword [0x473ddc]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00406b47
jmp case.0x4016b3.70
mov eax, dword [0x458284]
push 0
and eax, edx
push eax
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x28], 0
je case.0x4016b3.70
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4016b3.70
xor esi, esi
inc esi
call fcn.0040151a
push eax
call fcn.004066ed
push eax
push edi
call fcn.0040628e
mov eax, dword [ebp - 4]
add dword [0x473e88], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4