Function at 0x401596
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, 0x3bc
mov eax, dword [0x47ea04]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
mov dword [ebp - 0xc], eax
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, edx
shl eax, 0xe
mov ecx, section..ndata
add eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp - 0x30]
mov dword [0x40c0e4], eax
mov eax, dword [ebp - 0x34]
mov edi, esi
shl edi, 0xe
xor ebx, ebx
add eax, 0xfffffffe
add edi, ecx
mov dword [ebp - 4], ebx
cmp eax, 0x47
ja case.0x4015ed.70
jmp dword [eax*4 + 0x40314a]
push esi
push str.Jump:__d
call fcn.00406318
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
jmp 0x403140
xor esi, esi
call fcn.00401459
push eax
push str.Aborting:___s_
call fcn.00406318
pop ecx
pop ecx
push ebx
push dword [ebp - 0x30]
call fcn.00404fe3
mov eax, 0x7fffffff
jmp 0x403140
inc dword [0x4769d4]
cmp dword [ebp - 0xc], ebx
je 0x401626
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401626
push esi
call fcn.0040137c
mov esi, eax
dec esi
push esi
push str.Call:__d
call fcn.00406318
pop ecx
pop ecx
push ebx
push esi
call fcn.00401398
jmp 0x403140
xor esi, esi
call fcn.00401459
push eax
push str.detailprint:__s
call fcn.00406318
pop ecx
pop ecx
push ebx
push dword [ebp - 0x30]
call fcn.00404fe3
jmp case.0x4015ed.70
xor ecx, ecx
call fcn.00401443
mov esi, eax
push esi
push str.Sleep__d_
call fcn.00406318
cmp esi, 1
pop ecx
pop ecx
jg 0x4016a6
xor esi, esi
inc esi
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp case.0x4015ed.70
push str.BringToFront
call fcn.00406318
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015ed.70
mov eax, esi
shl eax, 2
cmp dword [ebp - 0x28], ebx
jne 0x4016f8
mov ecx, dword [eax + 0x47eac0]
mov dword [eax + 0x47ea80], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp - 0x30]
mov dword [ecx*4 + 0x47eac0], eax
jmp case.0x4015ed.70
mov ecx, dword [eax + 0x47ea80]
mov dword [eax + 0x47eac0], ecx
jmp case.0x4015ed.70
mov esi, dword [ebp - 0x28]
lea esi, [esi*4 + 0x47eac0]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x24]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x30]
jmp 0x403140
push dword [edx*4 + 0x47eac0]
jmp 0x40312f
mov eax, dword [0x4769e0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, ebx
je 0x40174c
push edx
push eax
call edi
mov esi, dword [ebp - 0x30]
mov eax, dword [0x4769cc]
cmp eax, ebx
je case.0x4015ed.70
push esi
push eax
call edi
jmp case.0x4015ed.70
push 0xfffffffffffffff0
pop esi
call fcn.00401459
push dword [ebp - 0x2c]
mov esi, eax
push esi
push str.SetFileAttributes:___s_:_08X
call fcn.00406318
add esp, 0xc
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne case.0x4015ed.70
mov dword [ebp - 4], 1
push str.SetFileAttributes_failed.
call fcn.00406318
pop ecx
jmp case.0x4015ed.70
push 0xfffffffffffffff0
pop esi
call fcn.00401459
push dword [ebp - 0x2c]
mov dword [ebp + 8], eax
push eax
push str.CreateDirectory:___s____d_
call fcn.00406318
add esp, 0xc
push dword [ebp + 8]
call fcn.00405dcb
mov esi, eax
cmp esi, ebx
je 0x401859
push 0x5c
push esi
call fcn.00405d77
mov esi, eax
movzx edi, word [esi]
push ebx
push dword [ebp + 8]
xor eax, eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x40183c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40181d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 8]
push str.CreateDirectory:_cant_create___s___err_d_
call fcn.00406318
add esp, 0xc
inc dword [ebp - 4]
jmp 0x40184b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x40184b
push dword [ebp + 8]
push str.CreateDirectory:_cant_create___s____a_file_already_exists
call fcn.00406318
inc dword [ebp - 4]
jmp 0x401849
push dword [ebp + 8]
push str.CreateDirectory:___s__created
call fcn.00406318
pop ecx
pop ecx
mov word [esi], di
inc esi
inc esi
cmp di, bx
jne 0x4017d4
cmp dword [ebp - 0x2c], ebx
je 0x401880
push 0xffffffffffffffe6
call fcn.00401432
push dword [ebp + 8]
push 0x4d7000
call fcn.0040607c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
jmp case.0x4015ed.70
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x4015ed.70
xor esi, esi
call fcn.00401459
mov esi, eax
push esi
call fcn.0040634a
test eax, eax
je 0x4018b8
push dword [ebp - 0x2c]
push esi
push str.IfFileExists:_file___s__exists__jumping__d
call fcn.00406318
add esp, 0xc
mov eax, dword [ebp - 0x2c]
jmp 0x403140
push dword [ebp - 0x28]
push esi
push str.IfFileExists:_file___s__does_not_exist__jumping__d
call fcn.00406318
add esp, 0xc
mov eax, dword [ebp - 0x28]
jmp 0x403140
push 0xffffffffffffffd0
pop esi
call fcn.00401459
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401459
push 0x13
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
mov esi, eax
push esi
push str.Rename:__s
call fcn.00406318
pop ecx
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x401912
push 0xffffffffffffffe3
jmp 0x401882
cmp dword [ebp - 0x28], ebx
je 0x401939
push edi
call fcn.0040634a
test eax, eax
je 0x401939
push dword [ebp + 8]
push edi
call fcn.00406d34
push 0xffffffffffffffe4
call fcn.00401432
push esi
push str.Rename_on_reboot:__s
jmp 0x401946
push esi
push str.Rename_failed:__s
mov dword [ebp - 4], 1
call fcn.00406318
pop ecx
jmp 0x4017a0
xor esi, esi
call fcn.00401459
mov edi, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 8]
push eax
push edi
push 0x2000
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x401996
mov eax, dword [ebp - 8]
cmp eax, esi
jbe 0x4019a2
cmp word [eax], bx
je 0x4019a2
push esi
call fcn.0040634a
cmp eax, ebx
je 0x401996
add eax, 0x2c
push eax
push dword [ebp - 8]
call fcn.0040607c
jmp 0x4019a2
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x28], ebx
jne case.0x4015ed.70
push 0x2000
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
jmp case.0x4015ed.70
or esi, 0xffffffff
call fcn.00401459
lea ecx, [ebp + 8]
push ecx
push edi
push 0x2000
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SearchPathW]
test eax, eax
jne case.0x4015ed.70
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
jmp case.0x4015ed.70
push 0xffffffffffffffef
pop esi
call fcn.00401459
push eax
push edi
call fcn.00405ef1
test eax, eax
jne case.0x4015ed.70
mov dword [ebp - 4], 1
jmp case.0x4015ed.70
push 0x31
pop esi
call fcn.00401459
mov esi, eax
mov eax, dword [ebp - 0x30]
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 - 0xc], esi
mov dword [ebp + 8], ecx
call fcn.00406318
add esp, 0x10
push esi
call fcn.00405d96
push esi
mov esi, 0x40c0e8
test eax, eax
je 0x401a5a
push esi
call fcn.0040607c
jmp 0x401a71
push 0x4d7000
push esi
call fcn.0040607c
push eax
call fcn.004067f7
push eax
call sub.KERNEL32.DLL_lstrcatW
push esi
call fcn.004060ab
mov edi, 0x4140e8
cmp dword [ebp + 8], 3
jl 0x401ab3
push esi
call fcn.0040634a
xor ecx, ecx
cmp eax, ebx
je 0x401a9e
lea ecx, [ebp - 0x24]
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], ebx
jne 0x401abe
push esi
call fcn.00405ea2
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405ec2
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x401b9f
cmp dword [ebp + 8], ebx
jne 0x401b5c
push esi
push str.File:_error_creating___s_
call fcn.00406318
pop ecx
pop ecx
push section..ndata
push edi
call fcn.0040607c
push esi
push section..ndata
call fcn.0040607c
push dword [ebp - 0x1c]
push 0x4100e8
call fcn.004068db
push edi
push section..ndata
call fcn.0040607c
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x4100e8
call fcn.00405d11
sub eax, 4
jne 0x401b46
push str.File:_error__user_retry
call fcn.00406318
pop ecx
jmp 0x401a7c
dec eax
je 0x401b89
push str.File:_error__user_abort
call fcn.00406318
pop ecx
push esi
push 0xfffffffffffffffa
jmp 0x401621
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.00404fe3
cmp dword [ebp + 8], 2
jne 0x401b73
mov dword [ebp - 4], 1
push dword [ebp + 8]
push esi
push str.File:_skipped:___s___overwriteflag_d_
call fcn.00406318
add esp, 0xc
jmp case.0x4015ed.70
push str.File:_error__user_cancel
call fcn.00406318
inc dword [0x47eac8]
pop ecx
jmp 0x40313e
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.00404fe3
inc dword [0x47eaf4]
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.004033d1
dec dword [0x47eaf4]
mov edi, eax
push esi
push edi
push str.File:_wrote__d_to___s_
call fcn.00406318
add esp, 0xc
cmp dword [ebp - 0x24], 0xffffffff
jne 0x401bdf
cmp dword [ebp - 0x20], 0xffffffff
je 0x401bee
lea eax, [ebp - 0x24]
push eax
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
jge case.0x4015ed.70
cmp edi, 0xfffffffe
jne 0x401c17
push 0xffffffffffffffe9
push esi
call fcn.004068db
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.DLL_lstrcatW
jmp 0x401c1f
push 0xffffffffffffffee
push esi
call fcn.004068db
push esi
push 0x409a84
call fcn.00406318
pop ecx
pop ecx
push 0x200010
push esi
call fcn.00405d11
jmp 0x401626
xor esi, esi
call fcn.00401459
mov esi, eax
push esi
push str.Delete:___s_
call fcn.00406318
pop ecx
pop ecx
push dword [ebp - 0x2c]
push esi
call fcn.00406d67
jmp case.0x4015ed.70
push 0x31
pop esi
call fcn.00401459
mov esi, eax
push esi
push dword [ebp - 0x30]
push str.MessageBox:__d___s_
call fcn.00406318
add esp, 0xc
push dword [ebp - 0x30]
push esi
call fcn.00405d11
cmp eax, ebx
je 0x401a08
cmp eax, dword [ebp - 0x28]
jne 0x401c99
mov eax, dword [ebp - 0x24]
jmp 0x403140
cmp eax, dword [ebp - 0x20]
jne case.0x4015ed.70
mov eax, dword [ebp - 0x1c]
jmp 0x403140
push 0xfffffffffffffff0
pop esi
call fcn.00401459
mov esi, eax
push esi
push str.RMDir:___s_
jmp 0x401c4b
xor esi, esi
inc esi
call fcn.00401459
push eax
call sub.KERNEL32.DLL_lstrlenW
jmp 0x40312e
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401443
xor esi, esi
inc esi
mov dword [ebp - 0x14], eax
call fcn.00401459
mov esi, eax
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x28], ebx
je 0x401d02
cmp dword [ebp + 8], ebx
je case.0x4015ed.70
push esi
call sub.KERNEL32.DLL_lstrlenW
cmp dword [ebp - 0x14], ebx
jge 0x401d16
add dword [ebp - 0x14], eax
js case.0x4015ed.70
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jle 0x401d1f
mov ecx, eax
lea eax, [esi + ecx*2]
push eax
push edi
call fcn.0040607c
cmp dword [ebp + 8], ebx
je case.0x4015ed.70
jge 0x401d42
push edi
call sub.KERNEL32.DLL_lstrlenW
add dword [ebp + 8], eax
jns 0x401d42
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x2000
jge case.0x4015ed.70
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [edi + ecx*2], ax
jmp case.0x4015ed.70
push 0x20
pop esi
call fcn.00401459
push 0x31
pop esi
mov edi, eax
call fcn.00401459
push eax
push edi
cmp dword [ebp - 0x20], ebx
jne 0x401d89
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x401c91
jmp 0x4018c9
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
jmp 0x401d7c
xor esi, esi
inc esi
call fcn.00401459
push 0x2000
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x401dbd
cmp dword [ebp - 0x28], ebx
je 0x401dc9
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x401dc9
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
xor eax, eax
mov word [edi + 0x3ffe], ax
jmp case.0x4015ed.70
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
cmp dword [ebp - 0x1c], ebx
jne 0x401e03
cmp esi, eax
jl 0x401c91
jle 0x4018c9
mov eax, dword [ebp - 0x20]
jmp 0x403140
cmp esi, eax
jb 0x401c91
jbe 0x4018c9
jmp 0x401dfb
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xc
ja case.default.0x401e2f
jmp dword [eax*4 + 0x40326a]
add esi, ecx
jmp case.default.0x401e2f
sub esi, ecx
jmp case.default.0x401e2f
imul ecx, esi
mov esi, ecx
jmp case.default.0x401e2f
cmp ecx, ebx
je 0x401e50
mov eax, esi
cdq
idiv ecx
jmp 0x401e6e
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401e2f
or esi, ecx
jmp case.default.0x401e2f
and esi, ecx
jmp case.default.0x401e2f
xor esi, ecx
jmp case.default.0x401e2f
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
jmp case.default.0x401e2f
cmp esi, ebx
jne 0x401e7a
cmp ecx, ebx
je 0x401e83
xor esi, esi
inc esi
jmp case.default.0x401e2f
cmp esi, ebx
jne 0x401e76
xor esi, esi
jmp case.default.0x401e2f
cmp ecx, ebx
je 0x401e50
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401e2f
shl esi, cl
jmp case.default.0x401e2f
sar esi, cl
push esi
jmp 0x40312f
xor esi, esi
inc esi
call fcn.00401459
push 2
pop ecx
mov esi, eax
call fcn.00401443
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x401b81
mov eax, dword [ebp - 0x28]
mov esi, dword [0x40c0e0]
cmp eax, ebx
je 0x401f2b
dec eax
cmp esi, ebx
je 0x401edc
mov esi, dword [esi]
cmp eax, ebx
jne 0x401ecd
cmp esi, ebx
jne 0x401efe
push dword [ebp - 0x28]
push str.Exch:_stack____d_elements
call fcn.00406318
pop ecx
pop ecx
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.004068db
push eax
jmp 0x401c32
lea edi, [esi + 4]
push edi
mov esi, 0x40c0e8
push esi
call fcn.0040607c
mov eax, dword [0x40c0e0]
add eax, 4
push eax
push edi
call fcn.0040607c
mov eax, dword [0x40c0e0]
push esi
add eax, 4
push eax
jmp 0x402e9d
cmp edx, ebx
je 0x401f5a
cmp esi, ebx
jne 0x401f43
push str.Pop:_stack_empty
call fcn.00406318
pop ecx
jmp 0x401a08
lea eax, [esi + 4]
push eax
push edi
call fcn.0040607c
mov eax, dword [esi]
mov dword [0x40c0e0], eax
push esi
jmp 0x4023b2
push 0x4004
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push dword [ebp - 0x30]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004068db
mov eax, dword [0x40c0e0]
mov dword [esi], eax
mov dword [0x40c0e0], esi
jmp case.0x4015ed.70
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp - 0x14], eax
call fcn.00401443
test byte [ebp - 0x1c], 1
mov dword [ebp + 8], eax
je 0x401fae
push 0x33
pop esi
call fcn.00401459
mov dword [ebp - 0x14], eax
test byte [ebp - 0x1c], 2
je 0x401fbf
push 0x44
pop esi
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x34], 0x21
jne 0x40200f
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
call fcn.00401443
mov ecx, dword [ebp - 0x1c]
sar ecx, 2
cmp ecx, ebx
je 0x401fff
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x402048
push dword [ebp + 8]
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x402045
xor esi, esi
inc esi
call fcn.00401459
push 0x12
pop esi
mov dword [ebp - 0x10], eax
call fcn.00401459
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x30], ebx
jl case.0x4015ed.70
push dword [ebp - 0xc]
jmp 0x40312f
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4018c9
jmp 0x4018b0
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
push eax
inc ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x40312e
mov eax, dword [0x47ea48]
add eax, edx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015ed.70
push edx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x28]
push 0x10
push eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x28]
push eax
push ebx
xor esi, esi
call fcn.00401459
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.0x4015ed.70
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015ed.70
push 0x48
push 0x5a
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401443
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x4200e8], eax
call fcn.00401443
push dword [ebp - 0x2c]
mov dword [0x4200f8], eax
mov al, byte [ebp - 0x20]
mov cl, al
and cl, 1
mov byte [0x4200fc], cl
mov cl, al
and cl, 2
and al, 4
push 0x420104
mov byte [0x4200fd], cl
mov byte [0x4200fe], al
mov byte [0x4200ff], 1
call fcn.004068db
push 0x4200e8
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x40312e
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
mov edi, eax
cmp dword [ebp - 0x28], ebx
je 0x4021a8
push str.HideWindow
call fcn.00406318
pop ecx
push edi
push esi
cmp dword [ebp - 0x24], ebx
jne 0x4021ba
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015ed.70
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015ed.70
xor esi, esi
call fcn.00401459
push 0x31
pop esi
mov edi, eax
call fcn.00401459
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
push 0x15
pop esi
mov ebx, eax
call fcn.00401459
push 0xffffffffffffffec
call fcn.00401432
movzx eax, word [ebx]
push dword [ebp - 0x24]
neg eax
sbb eax, eax
and eax, ebx
push 0x4d7000
push eax
movzx eax, word [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jge 0x402237
push eax
push ebx
push dword [ebp + 8]
push edi
push str.ExecShell:_warning:_error____s_:_file:__s__params:__s___d
call fcn.00406318
add esp, 0x14
jmp 0x401a08
push ebx
push dword [ebp + 8]
push edi
push str.ExecShell:_success____s_:_file:__s__params:__s__
call fcn.00406318
add esp, 0x10
jmp case.0x4015ed.70
xor esi, esi
call fcn.00401459
mov esi, eax
push esi
push str.Exec:_command__s_
call fcn.00406318
pop ecx
pop ecx
push esi
push 0xffffffffffffffeb
call fcn.00404fe3
push esi
call fcn.00405cb0
mov dword [ebp - 0x14], eax
push esi
cmp eax, ebx
je 0x4022e4
push str.Exec:_success____s__
call fcn.00406318
pop ecx
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x4022dc
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x64
push dword [ebp - 0x14]
call esi
mov edi, 0x102
jmp 0x4022ad
push 0xf
call fcn.00406407
push 0x64
push dword [ebp - 0x14]
call esi
cmp eax, edi
je 0x40229f
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x2c], ebx
jl 0x4022d0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405fc3
jmp 0x4022dc
cmp dword [ebp - 8], ebx
je 0x4022dc
mov dword [ebp - 4], 1
push dword [ebp - 0x14]
jmp 0x402b2c
push str.Exec:_failed_createprocess____s__
jmp 0x40193f
push 2
pop esi
call fcn.00401459
push eax
call fcn.0040634a
mov esi, eax
cmp esi, ebx
je 0x402315
push dword [esi + 0x14]
push dword [ebp + 8]
call fcn.00405fc3
push dword [esi + 0x18]
jmp 0x40312f
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [edi], ax
mov word [ecx], ax
jmp 0x401a08
push 0xffffffffffffffee
pop esi
call fcn.00401459
lea ecx, [ebp - 0x40]
push ecx
push eax
mov dword [ebp - 0x10], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, dword [ebp + 8]
mov esi, eax
xor eax, eax
mov word [edi], ax
mov word [ecx], ax
mov dword [ebp - 4], 1
cmp esi, ebx
je case.0x4015ed.70
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je case.0x4015ed.70
push eax
push esi
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4023af
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x409838
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4023af
mov eax, dword [ebp - 8]
push dword [eax + 8]
push edi
call fcn.00405fc3
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00405fc3
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp case.0x4015ed.70
push 0x11
pop esi
call fcn.00401459
push 0x2000
mov esi, eax
push edi
push esi
call fcn.004072da
add esp, 0xc
test eax, eax
jne 0x4023e1
mov dword [ebp - 4], 1
push edi
push esi
push str.GetTTFVersionString__s__returned__s
jmp 0x401b7c
push 0x11
pop esi
call fcn.00401459
push 0x2000
mov esi, eax
push edi
push esi
call fcn.0040734c
add esp, 0xc
test eax, eax
jne 0x402411
mov dword [ebp - 4], 1
push edi
push esi
push str.GetTTFFontName__s__returned__s
jmp 0x401b7c
cmp dword [0x47eaf8], ebx
mov dword [ebp - 4], 1
jl 0x40250f
push 0xfffffffffffffff0
pop esi
call fcn.00401459
xor esi, esi
inc esi
mov edi, eax
call fcn.00401459
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], ebx
je 0x402458
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x40246d
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4024fd
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040643a
mov esi, eax
cmp esi, ebx
je 0x4024bb
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x28], ebx
je 0x40249d
push dword [ebp - 0x28]
call fcn.00401432
call esi
test eax, eax
je 0x4024d6
mov dword [ebp - 4], 1
jmp 0x4024d6
push section..data
push 0x40c0e0
push section..ndata
push 0x2000
push dword [ebp - 0xc]
call esi
add esp, 0x14
jmp 0x4024d6
push dword [ebp - 0x14]
push 0xfffffffffffffff7
call fcn.00404fe3
push edi
push dword [ebp - 0x14]
push str.Error_registering_DLL:__s_not_found_in__s
call fcn.00406318
add esp, 0xc
cmp dword [ebp - 0x24], ebx
jne case.0x4015ed.70
push dword [ebp + 8]
call fcn.00403d31
test eax, eax
je case.0x4015ed.70
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp case.0x4015ed.70
push 0xfffffffffffffff6
call fcn.00401432
push edi
push str.Error_registering_DLL:_Could_not_load__s
jmp 0x401946
push 0xffffffffffffffe7
call fcn.00401432
push str.Error_registering_DLL:_Could_not_initialize_OLE
jmp 0x40179b
push 0xfffffffffffffff0
pop esi
call fcn.00401459
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x3c], eax
call fcn.00401459
push 2
pop esi
mov edi, eax
call fcn.00401459
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0xc], eax
call fcn.00401459
push 0x45
pop esi
mov dword [ebp - 8], eax
call fcn.00401459
push edi
mov dword [ebp - 0x40], eax
call fcn.00405d96
test eax, eax
jne 0x402568
push 0x21
pop esi
call fcn.00401459
mov eax, dword [ebp - 0x20]
mov ecx, eax
sar ecx, 0x10
push ecx
mov ecx, eax
sar ecx, 8
mov esi, 0xff
and ecx, esi
push ecx
and eax, esi
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x3c]
push str.CreateShortCut:_out:___s___in:___s__s___icon:__s__d__sw_d__hk_d
call fcn.00406318
add esp, 0x20
lea eax, [ebp + 8]
push eax
push 0x40ac28
push 1
push ebx
push 0x40ac48
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402671
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x40ac38
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x402663
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x4d7000
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, ecx
sar eax, 8
and eax, esi
je 0x402607
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 8]
cmp word [eax], bx
je 0x40262c
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edi, esi
push edi
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x14], ebx
jl 0x40265a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x3c]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
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 - 0x14], ebx
jge 0x40267f
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x401882
push 0xfffffffffffffff4
jmp 0x401882
xor esi, esi
call fcn.00401459
push 0x11
pop esi
mov edi, eax
call fcn.00401459
push 0x23
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
mov esi, dword [ebp + 8]
push esi
push edi
push str.CopyFiles___s_____s_
mov dword [ebp - 0x40], eax
call fcn.00406318
add esp, 0xc
push edi
call fcn.0040634a
test eax, eax
jne 0x4026ce
push ebx
push 0xfffffffffffffff9
call fcn.00404fe3
jmp 0x401a08
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 2
call sub.KERNEL32.DLL_lstrlenW
xor ecx, ecx
push esi
mov word [edi + eax*2 + 2], cx
call sub.KERNEL32.DLL_lstrlenW
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
mov eax, dword [ebp - 0x40]
mov cx, word [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x52], eax
mov word [ebp - 0x5c], cx
call fcn.00404fe3
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015ed.70
jmp 0x4026c1
cmp esi, 0xbadf00d
jne 0x401eeb
inc dword [0x47ead4]
jmp case.0x4015ed.70
push str._RM_
mov esi, 0x4100e8
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
call fcn.0040607c
push esi
mov edi, 0x4140e8
push edi
call fcn.0040607c
cmp dword [ebp - 0x30], ebx
je 0x40276c
xor esi, esi
call fcn.00401459
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x2c], ebx
je 0x40277c
push 0x11
pop esi
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x20], ebx
je 0x40278b
push 0x22
pop esi
call fcn.00401459
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401459
mov esi, eax
push esi
push edi
push 0x4100e8
push 0x40c0e8
push str.WriteINIStr:_wrote___s___s_s_in__s
call fcn.00406318
add esp, 0x14
push esi
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x401a00
mov eax, dword [0x40958c]
mov dword [ebp - 0x44], eax
mov eax, dword [0x409590]
xor esi, esi
inc esi
mov dword [ebp - 0x40], eax
call fcn.00401459
push 0x12
pop esi
mov ebx, eax
call fcn.00401459
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
push eax
push 0x1fff
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
jmp 0x4019d8
push edx
call fcn.00406235
pop ecx
mov dword [ebp + 8], eax
cmp dword [ebp - 0x20], ebx
jne 0x402867
push 2
call fcn.00401547
mov edi, eax
cmp edi, ebx
je 0x401a08
push 0x33
pop esi
call fcn.00401459
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push 0x4140e8
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push str.DeleteRegValue:___s_s____s_
call fcn.00406318
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028a4
push 0x22
pop esi
call fcn.00401459
mov esi, eax
push esi
push dword [ebp + 8]
push str.DeleteRegKey:___s_s_
call fcn.00406318
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, ebx
jne 0x402893
mov eax, dword [0x47eac4]
add eax, 0x80000001
mov ecx, dword [ebp - 0x20]
and ecx, 2
push ecx
push esi
push eax
call fcn.00401491
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
je case.0x4015ed.70
jmp 0x401a08
cmp esi, ebx
je 0x4028ba
mov edi, esi
jmp 0x4028c6
mov edi, dword [0x47eac4]
add edi, 0x80000001
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
push 2
pop esi
mov dword [ebp - 0x10], eax
call fcn.00401459
push 0x11
pop esi
mov dword [ebp - 0xc], eax
call fcn.00401459
push edi
mov dword [ebp + 8], eax
call fcn.00406235
pop ecx
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [0x47eaf0]
push ebx
or eax, 2
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402a1e
xor esi, esi
cmp dword [ebp - 8], 1
mov edi, 0x4140e8
jne 0x40296b
push 0x23
pop esi
call fcn.00401459
push edi
call sub.KERNEL32.DLL_lstrlenW
cmp dword [ebp - 0x10], 1
push edi
push dword [ebp - 0xc]
lea esi, [eax + eax + 2]
push dword [ebp + 8]
push dword [ebp - 0x14]
jne 0x40295e
push str.WriteRegStr:___s_s____s___s_
call fcn.00406318
add esp, 0x14
jmp 0x4029df
push str.WriteRegExpandStr:___s_s____s___s_
call fcn.00406318
add esp, 0x14
cmp dword [ebp - 8], 4
jne 0x402998
push 3
pop ecx
call fcn.00401443
push 4
pop esi
push eax
push dword [ebp - 0xc]
mov dword [0x4140e8], eax
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.WriteRegDWORD:___s_s____s__0x_08x_
call fcn.00406318
add esp, 0x14
cmp dword [ebp - 8], 3
jne 0x4029df
push 0xc000
push edi
push ebx
push dword [ebp - 0x24]
call fcn.004033d1
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x16c]
push 0x100
push eax
call fcn.00406299
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.WriteRegBin:___s_s____s___s_
call fcn.00406318
add esp, 0x24
push esi
push edi
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4029fa
mov dword [ebp - 4], ebx
jmp 0x402a10
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.WriteReg:_error_writing_into___s_s____s_
call fcn.00406318
add esp, 0x10
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015ed.70
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.WriteReg:_error_creating_key___s_s_
jmp 0x401b7c
push 0x20019
call fcn.00401547
push 0x33
pop esi
mov dword [ebp - 8], eax
call fcn.00401459
xor ecx, ecx
mov word [edi], cx
cmp dword [ebp - 8], ebx
je 0x401a08
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x4000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402aaa
cmp dword [ebp + 8], 4
je 0x402a95
cmp dword [ebp + 8], ecx
je 0x402a84
cmp dword [ebp + 8], 2
jne 0x402aaa
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x402ab2
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x20], ebx
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00405fc3
jmp 0x402ab2
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], ecx
push dword [ebp - 8]
jmp 0x402a13
push 0x20019
call fcn.00401547
push 3
pop ecx
mov esi, eax
call fcn.00401443
xor ecx, ecx
mov word [edi], cx
cmp esi, ebx
je 0x401a08
mov ecx, 0x1fff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x20], ebx
je 0x402af4
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402b0d
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x401a08
xor eax, eax
mov word [edi + 0x3ffe], ax
push esi
jmp 0x402a13
cmp word [edi], bx
je case.0x4015ed.70
push edi
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp case.0x4015ed.70
push 0xffffffffffffffed
pop esi
call fcn.00401459
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.00405ec2
cmp eax, 0xffffffff
jne 0x40312e
xor eax, eax
mov word [edi], ax
jmp 0x401a08
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
mov dword [ebp + 8], esi
cmp dword [ebp - 0x28], ebx
je 0x402b84
xor ecx, ecx
inc ecx
call fcn.00401443
mov byte [esi], al
xor eax, eax
inc eax
jmp 0x402bae
push 0x11
pop esi
call fcn.00401459
push ebx
push ebx
push 0x2000
push dword [ebp + 8]
push 0xffffffffffffffff
push 0x4100e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp word [edi], bx
je 0x402bcd
push ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp + 8]
push edi
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x402bd4
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4023b2
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015ed.70
mov ecx, 0x1fff
cmp eax, ecx
jle 0x402bfe
mov dword [ebp - 8], ecx
cmp word [edi], bx
je 0x402cbb
push edi
mov byte [ebp - 0x35], bl
call fcn.00405fdc
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jle 0x402cbb
mov edi, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402cbe
cmp dword [ebp - 0x40], 1
jne 0x402cbe
cmp dword [ebp - 0x24], ebx
jne 0x402c7f
push 2
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov al, byte [ebp - 0x35]
cmp al, 0xd
je 0x402c8f
cmp al, 0xa
je 0x402c8f
mov ax, word [ebp - 0xc]
mov word [edi + esi*2], ax
mov al, byte [ebp + 0xb]
inc esi
mov byte [ebp - 0x35], al
cmp al, bl
je 0x402cbe
cmp esi, dword [ebp - 8]
jl 0x402c1f
jmp 0x402cbe
movzx eax, byte [ebp + 0xb]
push eax
push edi
call fcn.00405fc3
jmp 0x40313e
cmp al, byte [ebp + 0xb]
je 0x402cab
cmp byte [ebp + 0xb], 0xd
je 0x402ca0
cmp byte [ebp + 0xb], 0xa
jne 0x402cab
mov ax, word [ebp - 0xc]
mov word [edi + esi*2], ax
inc esi
jmp 0x402cbe
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x402cbe
mov edi, dword [ebp + 8]
xor eax, eax
mov word [edi + esi*2], ax
cmp esi, ebx
jmp 0x401a02
cmp dword [ebp - 0x28], ebx
je 0x402ce3
xor ecx, ecx
inc ecx
call fcn.00401443
mov word [0x4100e8], ax
xor eax, eax
inc eax
jmp 0x402cf1
push 0x11
pop esi
call fcn.00401459
push eax
call sub.KERNEL32.DLL_lstrlenW
cmp word [edi], bx
je 0x401a08
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push 0x4100e8
push edi
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x401a00
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015ed.70
mov ecx, 0x1fff
cmp eax, ecx
jle 0x402d3b
mov dword [ebp - 8], ecx
cmp word [edi], bx
je 0x402cbb
push edi
mov dword [ebp - 0x14], ebx
call fcn.00405fdc
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jle 0x402cbb
mov edi, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x40]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402cbe
cmp dword [ebp - 0x40], 2
jne 0x402cbe
cmp dword [ebp - 0x24], ebx
jne 0x402db7
cmp word [ebp - 0x14], 0xd
je 0x402dc0
cmp word [ebp - 0x14], 0xa
je 0x402dc0
mov ax, word [ebp + 8]
movzx ecx, ax
mov word [edi + esi*2], ax
inc esi
mov dword [ebp - 0x14], ecx
cmp ax, bx
je 0x402cbe
cmp esi, dword [ebp - 8]
jl 0x402d5c
jmp 0x402cbe
movzx eax, word [ebp + 8]
jmp 0x402c83
mov ax, word [ebp + 8]
cmp word [ebp - 0x14], ax
je 0x402dde
cmp ax, 0xd
je 0x402ca4
cmp ax, 0xa
je 0x402ca4
push 1
push ebx
push 0xfffffffffffffffe
jmp 0x402cb0
cmp word [edi], bx
je case.0x4015ed.70
push dword [ebp - 0x24]
push ebx
push 2
pop ecx
call fcn.00401443
push eax
push edi
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [ebp - 0x2c], ebx
jl case.0x4015ed.70
push eax
push dword [ebp + 8]
jmp 0x403130
cmp word [edi], bx
je case.0x4015ed.70
push edi
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp case.0x4015ed.70
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x4019e0
lea eax, [ebp - 0x3bc]
push eax
push dword [ebp + 8]
call fcn.00405fdc
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x4019e0
jmp 0x402e95
push 2
pop esi
call fcn.00401459
lea ecx, [ebp - 0x3bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402e8c
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx], ax
jmp 0x402b54
push eax
push dword [ebp + 8]
call fcn.00405fc3
lea eax, [ebp - 0x390]
push eax
push edi
call fcn.0040607c
jmp case.0x4015ed.70
push 0xfffffffffffffff0
pop esi
mov dword [ebp - 8], 0xfffffd66
call fcn.00401459
mov edi, eax
push edi
mov dword [ebp - 0x3c], edi
call fcn.00405d96
test eax, eax
jne 0x402ecd
push 0xffffffffffffffed
pop esi
call fcn.00401459
push edi
call fcn.00405ea2
push 2
push 0x40000000
push edi
call fcn.00405ec2
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402f89
mov eax, dword [0x47ea6c]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x10], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x402f80
push ebx
call fcn.004033ba
push dword [ebp - 0x10]
push edi
call fcn.00403388
push dword [ebp - 0x28]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x402f58
push dword [ebp - 0x28]
push esi
push ebx
push dword [ebp - 0x2c]
call fcn.004033d1
jmp 0x402f4b
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x18], ecx
call fcn.00405e7e
add esi, dword [ebp - 0x18]
cmp byte [esi], bl
jne 0x402f33
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebx
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.004033d1
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x3c]
push dword [ebp - 8]
push str.created_uninstaller:__d____s_
call fcn.00406318
add esp, 0xc
cmp dword [ebp - 8], ebx
push 0xfffffffffffffff3
pop esi
jge 0x402fb7
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x401882
cmp esi, ebx
je 0x402ffd
push edx
push str.settings_logging_to__d
call fcn.00406318
mov eax, dword [ebp - 0x2c]
push eax
push str.logging_set_to__d
mov dword [0x46d184], eax
call fcn.00406318
add esp, 0x10
cmp dword [ebp - 0x2c], ebx
je 0x402ff1
call fcn.00403eed
jmp case.0x4015ed.70
push 1
call fcn.0040615c
jmp case.0x4015ed.70
xor esi, esi
inc esi
call fcn.00401459
push eax
push 0x409a84
jmp 0x401946
xor ecx, ecx
call fcn.00401443
mov edi, eax
cmp edi, dword [0x47ea2c]
jae 0x401a08
mov eax, dword [ebp - 0x28]
mov esi, edi
imul esi, esi, 0x4018
add esi, dword [0x47ea28]
cmp eax, ebx
jl 0x403051
mov ecx, dword [esi + eax*4]
jne 0x40304b
add esi, 0x18
push esi
push dword [ebp + 8]
jmp 0x402e9d
push ecx
jmp 0x402e15
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x28], ecx
je 0x403068
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp - 0x2c], eax
jmp 0x40307b
push dword [ebp - 0x20]
lea eax, [esi + 0x18]
push eax
call fcn.004068db
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x24], ebx
je case.0x4015ed.70
push edi
call fcn.00401186
jmp case.0x4015ed.70
xor ecx, ecx
call fcn.00401443
cmp eax, 0x20
jae 0x401a08
cmp dword [ebp - 0x24], ebx
je 0x4030cc
cmp dword [ebp - 0x28], ebx
je 0x4030c1
push eax
call fcn.004012a6
push ebx
push ebx
call fcn.004011f8
jmp case.0x4015ed.70
push ebx
call fcn.004012f1
jmp 0x402e14
cmp dword [ebp - 0x28], ebx
je 0x4030e3
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x47ea0c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015ed.70
mov ecx, dword [0x47ea0c]
push dword [ecx + eax*4 + 0x94]
push dword [ebp + 8]
call fcn.004068db
jmp case.0x4015ed.70
mov eax, dword [0x461d5c]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x30], ebx
je case.0x4015ed.70
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4015ed.70
xor esi, esi
inc esi
call fcn.00401459
push eax
call fcn.00406481
push eax
push edi
call fcn.00405fc3
mov eax, dword [ebp - 4]
add dword [0x47eac8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4