Function at 0x4016b3
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
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, 0x198
mov eax, dword [0x42eca0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov ecx, eax
shl ecx, 0xa
add ecx, section..ndata
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x2c]
mov dword [0x40acc0], ecx
mov ecx, dword [ebp - 0x30]
mov edx, esi
xor ebx, ebx
shl edx, 0xa
add ecx, 0xfffffffe
cmp ecx, 0x41
mov dword [ebp - 8], ebx
lea edi, [edx + section..ndata]
ja case.0x40170e.65
jmp dword [ecx*4 + 0x402cc7]
mov eax, esi
jmp 0x402cbd
push ebx
push esi
call fcn.00404831
mov eax, 0x7fffffff
jmp 0x402cbd
inc dword [0x42e474]
cmp dword [ebp - 4], ebx
je 0x401723
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401723
cmp esi, ebx
jge 0x401759
mov eax, section..ndata
sub eax, edx
sub eax, 0x400
push eax
call fcn.004056fc
jmp 0x40175b
mov eax, esi
push ebx
dec eax
push eax
call fcn.00401445
jmp 0x402cbd
cmp eax, ebx
je 0x40178d
test al, 8
je 0x401777
mov eax, dword [0x40900c]
jmp 0x401783
mov ecx, dword [0x40902c]
mov dword [0x40900c], ecx
mov dword [0x40902c], eax
jmp case.0x40170e.65
push ebx
push esi
call fcn.00404831
jmp case.0x40170e.65
xor ecx, ecx
call fcn.00401595
cmp eax, 1
jg 0x4017a8
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x40170e.65
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40170e.65
xor ecx, ecx
inc ecx
call fcn.00401595
mov ecx, dword [ebp - 0x2c]
mov dword [ecx*4 + 0x42ed20], eax
jmp case.0x40170e.65
mov esi, dword [ebp - 0x24]
lea esi, [esi*4 + 0x42ed20]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x20]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x2c]
jmp 0x402cbd
push dword [eax*4 + 0x42ed20]
push edi
call fcn.004056e3
jmp case.0x40170e.65
mov ecx, dword [0x42e480]
cmp ecx, ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x401823
push eax
push ecx
call edi
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x42e46c]
cmp eax, ebx
je case.0x40170e.65
push esi
push eax
call edi
jmp case.0x40170e.65
push 0xfffffffffffffff0
pop esi
call fcn.004015ab
push dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x40170e.65
mov dword [ebp - 8], 1
jmp case.0x40170e.65
push 0xfffffffffffffff0
pop esi
call fcn.004015ab
mov edi, eax
push edi
call fcn.00405571
mov esi, eax
cmp esi, ebx
je 0x4018b7
push 0x5c
push esi
call fcn.00405530
mov esi, eax
mov al, byte [esi]
push ebx
push edi
mov byte [ebp + 0xb], al
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4018ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018aa
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4018ad
inc dword [ebp - 8]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x401875
cmp dword [ebp - 0x28], ebx
je 0x4018da
push 0xffffffffffffffe6
call fcn.00401584
push edi
push 0x434800
call fcn.00405785
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x40170e.65
push 0xfffffffffffffff5
call fcn.00401584
jmp case.0x40170e.65
xor esi, esi
call fcn.004015ab
push eax
call fcn.00405841
test eax, eax
je 0x401d00
mov eax, dword [ebp - 0x28]
jmp 0x402cbd
push 0xffffffffffffffd0
pop esi
call fcn.004015ab
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 8], eax
call fcn.004015ab
push dword [ebp + 8]
mov esi, 0x4094c0
push esi
mov dword [ebp - 4], eax
call fcn.00405785
push dword [ebp - 4]
call sub.KERNEL32.dll_lstrlenA
push dword [ebp + 8]
mov edi, eax
call sub.KERNEL32.dll_lstrlenA
add edi, eax
cmp edi, 0x3fd
jge 0x401957
push 0x4072c8
push esi
call sub.KERNEL32.dll_lstrcatA
push dword [ebp - 4]
push esi
call sub.KERNEL32.dll_lstrcatA
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40196e
push 0xffffffffffffffe3
jmp 0x4018dc
cmp dword [ebp - 0x24], ebx
je 0x401853
push dword [ebp + 8]
call fcn.00405841
test eax, eax
je 0x401853
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00405c1a
push 0xffffffffffffffe4
jmp 0x4018dc
xor esi, esi
call fcn.004015ab
mov edi, dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4019dd
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x4019e6
cmp byte [eax], bl
je 0x4019e6
push esi
call fcn.00405841
cmp eax, ebx
je 0x4019dd
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405785
jmp 0x4019e6
mov byte [edi], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 0x24], ebx
jne case.0x40170e.65
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x40170e.65
or esi, 0xffffffff
call fcn.004015ab
lea ecx, [ebp + 8]
push ecx
push edi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x40170e.65
mov dword [ebp - 8], 1
mov byte [edi], bl
jmp case.0x40170e.65
push 0xffffffffffffffef
pop esi
call fcn.004015ab
push eax
push edi
call fcn.00405631
jmp 0x40184b
push 0x31
pop esi
call fcn.004015ab
mov esi, eax
mov eax, dword [ebp - 0x2c]
and eax, 7
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
call fcn.0040554c
test eax, eax
push esi
mov esi, 0x4090c0
je 0x401a74
push esi
call fcn.00405785
jmp 0x401a8b
push 0x434800
push esi
call fcn.00405785
push eax
call fcn.004058dc
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.004057a7
mov edi, 0x4098c0
cmp dword [ebp + 8], 3
jl 0x401acd
push esi
call fcn.00405841
xor ecx, ecx
cmp eax, ebx
je 0x401ab8
lea ecx, [ebp - 0x20]
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 0x401ad8
push esi
call fcn.004055e2
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405602
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401b6c
cmp dword [ebp + 8], ebx
jne 0x401b4e
push section..ndata
push edi
call fcn.00405785
push esi
push section..ndata
call fcn.00405785
push dword [ebp - 0x18]
push 0x4094c0
call fcn.00405a07
push edi
push section..ndata
call fcn.00405785
mov eax, dword [ebp - 0x2c]
sar eax, 3
push eax
push 0x4094c0
call fcn.004054ee
sub eax, 4
je 0x401a96
dec eax
je 0x401b61
push esi
push 0xfffffffffffffffa
jmp 0x40171e
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.00404831
cmp dword [ebp + 8], 2
jmp 0x40184d
inc dword [0x42ed28]
jmp 0x402cbb
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.00404831
inc dword [0x40902c]
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 0x24]
call fcn.00402ed8
dec dword [0x40902c]
cmp dword [ebp - 0x20], 0xffffffff
mov edi, eax
jne 0x401b9d
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401bac
lea eax, [ebp - 0x20]
push eax
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge case.0x40170e.65
cmp edi, 0xfffffffe
jne 0x401bd5
push 0xffffffffffffffe9
push esi
call fcn.00405a07
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401bdd
push 0xffffffffffffffee
push esi
call fcn.00405a07
push 0x200010
push esi
call fcn.004054ee
jmp 0x401723
xor esi, esi
call fcn.004015ab
push dword [ebp - 0x28]
push eax
call fcn.00405dbb
jmp case.0x40170e.65
push 0x31
pop esi
call fcn.004015ab
push dword [ebp - 0x2c]
push eax
call fcn.004054ee
cmp eax, ebx
je 0x401853
cmp eax, dword [ebp - 0x24]
jne 0x401c28
mov eax, dword [ebp - 0x20]
jmp 0x402cbd
cmp eax, dword [ebp - 0x1c]
jne case.0x40170e.65
mov eax, dword [ebp - 0x18]
jmp 0x402cbd
push 0xfffffffffffffff0
pop esi
jmp 0x401bef
xor esi, esi
inc esi
call fcn.004015ab
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x401801
push 2
pop ecx
call fcn.00401595
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401595
xor esi, esi
inc esi
mov dword [ebp - 4], eax
call fcn.004015ab
cmp dword [ebp - 0x24], ebx
mov esi, eax
mov byte [edi], bl
je 0x401c82
cmp dword [ebp + 8], ebx
je case.0x40170e.65
push esi
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp - 4], ebx
jge 0x401c96
add dword [ebp - 4], eax
js case.0x40170e.65
mov ecx, dword [ebp - 4]
cmp ecx, eax
jle 0x401c9f
mov ecx, eax
add esi, ecx
push esi
push edi
call fcn.00405785
cmp dword [ebp + 8], ebx
je case.0x40170e.65
jge 0x401cc1
push edi
call sub.KERNEL32.dll_lstrlenA
add dword [ebp + 8], eax
jns 0x401cc1
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x400
jge case.0x40170e.65
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp case.0x40170e.65
push 0x20
pop esi
call fcn.004015ab
push 0x31
pop esi
mov edi, eax
call fcn.004015ab
cmp dword [ebp - 0x1c], ebx
push eax
push edi
jne 0x401d08
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401c20
mov eax, dword [ebp - 0x24]
jmp 0x402cbd
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401cf8
xor esi, esi
inc esi
call fcn.004015ab
push 0x400
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401d3c
cmp dword [ebp - 0x24], ebx
je 0x401d45
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d45
mov dword [ebp - 8], 1
mov byte [edi], bl
mov byte [edi + 0x3ff], bl
jmp case.0x40170e.65
xor ecx, ecx
call fcn.00401595
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401595
cmp dword [ebp - 0x18], ebx
jne 0x401d78
cmp esi, eax
jl 0x401c20
jle 0x401d00
mov eax, dword [ebp - 0x1c]
jmp 0x402cbd
cmp esi, eax
jb 0x401c20
jbe 0x401d00
jmp 0x401d70
xor ecx, ecx
inc ecx
call fcn.00401595
push 2
pop ecx
mov esi, eax
call fcn.00401595
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
ja case.default.0x401da4
jmp dword [eax*4 + 0x402dcf]
add esi, ecx
jmp case.default.0x401da4
sub esi, ecx
jmp case.default.0x401da4
imul ecx, esi
mov esi, ecx
jmp case.default.0x401da4
cmp ecx, ebx
je 0x401dc5
mov eax, esi
cdq
idiv ecx
jmp 0x401de3
xor esi, esi
mov dword [ebp - 8], 1
jmp case.default.0x401da4
or esi, ecx
jmp case.default.0x401da4
and esi, ecx
jmp case.default.0x401da4
xor esi, ecx
jmp case.default.0x401da4
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
jmp case.default.0x401da4
cmp esi, ebx
jne 0x401def
cmp ecx, ebx
je 0x401df8
xor esi, esi
inc esi
jmp case.default.0x401da4
cmp esi, ebx
jne 0x401deb
xor esi, esi
jmp case.default.0x401da4
cmp ecx, ebx
je 0x401dc5
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401da4
shl esi, cl
jmp case.default.0x401da4
sar esi, cl
push esi
jmp 0x401801
xor esi, esi
inc esi
call fcn.004015ab
push 2
pop ecx
mov esi, eax
call fcn.00401595
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x40170e.65
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
mov esi, dword [0x409080]
je 0x401e94
dec ecx
cmp esi, ebx
je 0x401e54
cmp ecx, ebx
mov esi, dword [esi]
jne 0x401e45
cmp esi, ebx
jne 0x401e67
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405a07
push eax
jmp 0x401be3
lea edi, [esi + 4]
push edi
mov esi, 0x4090c0
push esi
call fcn.00405785
mov eax, dword [0x409080]
add eax, 4
push eax
push edi
call fcn.00405785
mov eax, dword [0x409080]
push esi
add eax, 4
push eax
jmp 0x402a6c
cmp eax, ebx
je 0x401eb7
cmp esi, ebx
je 0x401853
lea eax, [esi + 4]
push eax
push edi
call fcn.00405785
mov eax, dword [esi]
mov dword [0x409080], eax
push esi
jmp 0x4022b5
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x2c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405a07
mov eax, dword [0x409080]
mov dword [esi], eax
mov dword [0x409080], esi
jmp case.0x40170e.65
push 0x33
pop esi
call fcn.004015ab
push 0x44
pop esi
mov dword [ebp - 4], eax
call fcn.004015ab
test byte [ebp - 0x18], 1
mov dword [ebp + 8], eax
jne 0x401f0b
push dword [ebp - 4]
call fcn.004056fc
mov dword [ebp - 4], eax
test byte [ebp - 0x18], 2
jne 0x401f1c
push dword [ebp + 8]
call fcn.004056fc
mov dword [ebp + 8], eax
cmp dword [ebp - 0x30], 0x21
jne 0x401f6a
xor ecx, ecx
inc ecx
call fcn.00401595
push 2
pop ecx
mov esi, eax
call fcn.00401595
mov ecx, dword [ebp - 0x18]
sar ecx, 2
je 0x401f5a
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x401fa1
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401f9e
xor esi, esi
inc esi
call fcn.004015ab
push 0x12
pop esi
mov dword [ebp - 0x10], eax
call fcn.004015ab
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], ebx
jl case.0x40170e.65
push dword [ebp - 0xc]
jmp 0x401801
xor ecx, ecx
call fcn.00401595
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4018f3
push 2
pop ecx
call fcn.00401595
xor ecx, ecx
push eax
inc ecx
call fcn.00401595
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401c4c
mov ecx, dword [0x42ece8]
add eax, ecx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401595
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x40170e.65
push eax
push dword [ebp - 4]
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 - 0x24]
push 0x10
push eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x24]
push eax
push ebx
xor esi, esi
call fcn.004015ab
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je case.0x40170e.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x40170e.65
push 0x48
push 0x5a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401595
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x409084], eax
call fcn.00401595
push dword [ebp - 0x28]
mov dword [0x409094], eax
mov al, byte [ebp - 0x1c]
mov cl, al
and cl, 1
mov byte [0x409098], cl
mov cl, al
and cl, 2
and al, 4
push 0x4090a0
mov byte [0x409099], cl
mov byte [0x40909a], al
mov byte [0x40909b], 1
call fcn.00405a07
push 0x409084
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401c4c
xor ecx, ecx
call fcn.00401595
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401595
cmp dword [ebp - 0x20], ebx
push eax
push esi
jne 0x4020fa
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40170e.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40170e.65
xor esi, esi
call fcn.004015ab
push 0x31
pop esi
mov edi, eax
call fcn.004015ab
push 0x22
pop esi
mov ebx, eax
call fcn.004015ab
push ebx
push edi
push str._s__s
push 0x4094c0
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xffffffffffffffec
call fcn.00401584
mov al, byte [esi]
push dword [ebp - 0x20]
neg al
push 0x434800
sbb eax, eax
and eax, esi
push eax
mov al, byte [edi]
neg al
push ebx
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x40170e.65
jmp 0x401853
xor esi, esi
call fcn.004015ab
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404831
push 0x434800
push esi
call fcn.00405476
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401853
cmp dword [ebp - 0x24], ebx
je 0x4021eb
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x4021bc
push 0xf
call fcn.004058a9
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x4021ae
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x28], ebx
jl 0x4021df
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004056e3
jmp 0x4021eb
cmp dword [ebp - 4], ebx
je 0x4021eb
mov dword [ebp - 8], 1
push dword [ebp + 8]
jmp 0x40287f
push 2
pop esi
call fcn.004015ab
push eax
call fcn.00405841
mov esi, eax
cmp esi, ebx
je 0x40221a
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.004056e3
push dword [esi + 0x18]
jmp 0x401801
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x401853
push 0xffffffffffffffee
lea eax, [ebp - 0x4c]
pop esi
mov dword [ebp + 8], eax
call fcn.004015ab
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x10], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
mov dword [ebp - 8], 1
je case.0x40170e.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je case.0x40170e.65
push eax
push esi
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4022b2
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
push 0x4072bc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4022b2
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.004056e3
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.004056e3
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x40170e.65
xor edi, edi
inc edi
push ShowWindow
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x42ed50], ebx
jl 0x4023ca
push 0xfffffffffffffff0
pop esi
call fcn.004015ab
mov esi, edi
mov dword [ebp - 0x10], eax
call fcn.004015ab
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], eax
je 0x402307
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40231e
push 8
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4023c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NSIS_KeepLibraryLoaded
push dword [ebp + 8]
call edi
mov esi, eax
neg esi
push str.NSIS_Init
push dword [ebp + 8]
sbb esi, esi
inc esi
call edi
cmp eax, ebx
je 0x40234b
push fcn.00401373
call eax
pop ecx
push str.NSIS_KeepLibraryLoaded
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4023bb
push dword [ebp - 0xc]
push dword [ebp + 8]
call edi
mov edi, eax
cmp edi, ebx
je 0x4023a8
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
je 0x40238a
push dword [ebp - 0x24]
call fcn.00401584
call edi
test eax, eax
je 0x4023b2
mov dword [ebp - 8], 1
jmp 0x4023b2
push section..data
push 0x409080
push section..ndata
push 0x400
push dword [ebp - 4]
call edi
add esp, 0x14
jmp 0x4023b2
push dword [ebp - 0xc]
push 0xfffffffffffffff7
call fcn.00404831
cmp dword [ebp - 0x20], ebx
jne 0x4023d1
cmp esi, ebx
je 0x4023d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4023d1
push 0xfffffffffffffff6
jmp 0x4023cc
push 0xffffffffffffffe7
call fcn.00401584
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp case.0x40170e.65
push 0xfffffffffffffff0
pop esi
call fcn.004015ab
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x34], eax
call fcn.004015ab
push 2
pop esi
mov dword [ebp - 0x10], eax
call fcn.004015ab
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x40], eax
call fcn.004015ab
push 0x45
pop esi
mov dword [ebp - 4], eax
call fcn.004015ab
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call fcn.0040554c
test eax, eax
jne 0x402428
push 0x21
pop esi
call fcn.004015ab
lea eax, [ebp + 8]
push eax
push 0x4077b4
push 1
push ebx
push 0x4077c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402521
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x4077d4
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x402514
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x434800
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x40249c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x4024c2
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and edx, esi
push edx
push dword [ebp - 4]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp edi, ebx
jl 0x40250b
push 0x400
mov esi, 0x40a4c0
push esi
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov word [0x40a4c0], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
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 edi, ebx
jge 0x40252f
mov dword [ebp - 8], 1
push 0xfffffffffffffff0
jmp 0x4018dc
push 0xfffffffffffffff4
jmp 0x4018dc
xor esi, esi
call fcn.004015ab
push 0x11
mov edi, eax
pop esi
mov dword [ebp + 8], edi
call fcn.004015ab
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 2
call sub.KERNEL32.dll_lstrlenA
push esi
mov byte [eax + edi + 1], bl
call sub.KERNEL32.dll_lstrlenA
push 0xfffffffffffffff8
mov edi, 0x4098c0
push edi
mov byte [eax + esi + 1], bl
call fcn.00405a07
push esi
push edi
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov ax, word [ebp - 0x24]
push edi
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3e], edi
mov word [ebp - 0x48], ax
call fcn.00404831
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x40170e.65
push ebx
push 0xfffffffffffffff9
call fcn.00404831
jmp 0x401853
cmp esi, 0xbadf00d
jne 0x401e54
inc dword [0x42ed34]
jmp case.0x40170e.65
xor edi, edi
cmp esi, ebx
mov dword [ebp + 8], ebx
je 0x4025e7
xor esi, esi
call fcn.004015ab
mov edi, eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4025f6
push 0x11
pop esi
call fcn.004015ab
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], ebx
je 0x402605
push 0x22
pop esi
call fcn.004015ab
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.004015ab
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40184b
xor esi, esi
inc esi
mov dword [ebp + 8], 0x7e4e21
call fcn.004015ab
push 0x12
pop esi
mov dword [ebp - 0x38], eax
call fcn.004015ab
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x34], eax
call fcn.004015ab
push eax
push 0x3ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi]
cmp eax, dword [ebp + 8]
jmp 0x401a1e
cmp dword [ebp - 0x1c], ebx
jne 0x402695
push 2
call fcn.0040166a
mov edi, eax
cmp edi, ebx
je 0x401853
push 0x33
pop esi
call fcn.004015ab
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4026c0
push 0x22
pop esi
call fcn.004015ab
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x4026b0
mov ecx, dword [0x42ed24]
add ecx, 0x80000001
mov edx, dword [ebp - 0x1c]
and edx, 2
push edx
push eax
push ecx
call fcn.004015e3
mov esi, eax
cmp esi, ebx
je case.0x40170e.65
jmp 0x401853
cmp esi, ebx
je 0x4026d5
mov edi, esi
jmp 0x4026e1
mov edi, dword [0x42ed24]
add edi, 0x80000001
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
push 2
pop esi
mov dword [ebp - 0x34], eax
call fcn.004015ab
push 0x11
pop esi
mov dword [ebp - 0x38], eax
call fcn.004015ab
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push edi
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x40170e.65
cmp dword [ebp + 8], 1
mov edi, 0x4098c0
jne 0x40273c
push 0x23
pop esi
call fcn.004015ab
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp dword [ebp + 8], 4
jne 0x402752
push 3
pop ecx
call fcn.00401595
push 4
mov dword [0x4098c0], eax
pop eax
cmp dword [ebp + 8], 3
jne 0x402767
push 0xc00
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00402ed8
push eax
push edi
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402780
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40170e.65
push 0x20019
call fcn.0040166a
push 0x33
pop esi
mov dword [ebp - 4], eax
call fcn.004015ab
cmp dword [ebp - 4], ebx
mov byte [edi], bl
je 0x401853
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402807
cmp dword [ebp + 8], 4
je 0x4027f1
cmp dword [ebp + 8], ecx
je 0x4027e1
cmp dword [ebp + 8], 2
jne 0x402807
cmp dword [ebp - 0x1c], ebx
je 0x4027e9
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], bl
jmp 0x40280c
cmp dword [ebp - 0x1c], ebx
jne 0x4027fd
mov dword [ebp - 8], 1
push dword [edi]
push edi
call fcn.004056e3
jmp 0x40280c
mov byte [edi], bl
mov dword [ebp - 8], ecx
push dword [ebp - 4]
jmp 0x402783
push 0x20019
call fcn.0040166a
push 3
pop ecx
mov esi, eax
call fcn.00401595
cmp esi, ebx
mov byte [edi], bl
je 0x401853
cmp dword [ebp - 0x1c], ebx
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
je 0x40284b
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402864
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_RegEnumValueA]
test eax, eax
jne 0x401853
mov byte [edi + 0x3ff], bl
push esi
jmp 0x402783
cmp byte [edi], bl
je case.0x40170e.65
push edi
call fcn.004056fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40170e.65
push 0xffffffffffffffed
pop esi
call fcn.004015ab
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00405602
cmp eax, 0xffffffff
jne 0x401c4c
mov byte [edi], bl
jmp 0x401853
cmp dword [ebp - 0x24], ebx
je 0x4028c5
xor ecx, ecx
inc ecx
call fcn.00401595
mov byte [0x4094c0], al
xor eax, eax
inc eax
jmp 0x4028d3
push 0x11
pop esi
call fcn.004015ab
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], bl
je 0x401853
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push 0x4094c0
push edi
call fcn.004056fc
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40184b
push 2
pop ecx
xor esi, esi
call fcn.00401595
cmp eax, 1
mov dword [ebp - 4], eax
jl case.0x40170e.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x40291a
mov dword [ebp - 4], ecx
cmp byte [edi], bl
je 0x4029b0
push edi
mov byte [ebp + 0xb], bl
call fcn.004056fc
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jle 0x4029b0
mov edi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4029b3
cmp dword [ebp - 0x34], 1
jne 0x4029b3
cmp dword [ebp - 0x20], ebx
jne 0x40297a
cmp byte [ebp + 0xb], 0xd
je 0x40298a
cmp byte [ebp + 0xb], 0xa
je 0x40298a
mov al, byte [ebp - 0x11]
mov byte [esi + edi], al
inc esi
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4029b3
cmp esi, dword [ebp - 4]
jl 0x402936
jmp 0x4029b3
movzx eax, byte [ebp - 0x11]
push eax
push edi
call fcn.004056e3
jmp 0x402cbb
mov al, byte [ebp - 0x11]
cmp byte [ebp + 0xb], al
je 0x4029a0
cmp al, 0xd
je 0x40299a
cmp al, 0xa
jne 0x4029a0
mov byte [esi + edi], al
inc esi
jmp 0x4029b3
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4029b3
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x40184d
cmp byte [edi], bl
je case.0x40170e.65
push dword [ebp - 0x20]
push ebx
push 2
pop ecx
call fcn.00401595
push eax
push edi
call fcn.004056fc
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x28], ebx
jl case.0x40170e.65
push eax
push dword [ebp - 0xc]
jmp 0x401802
cmp byte [edi], bl
je case.0x40170e.65
push edi
call fcn.004056fc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x40170e.65
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
je 0x401a24
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0xc]
call fcn.004056fc
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401a24
jmp 0x402a64
push 2
pop esi
call fcn.004015ab
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402a5b
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
jmp 0x4028a7
push eax
push dword [ebp - 0xc]
call fcn.004056e3
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.00405785
jmp case.0x40170e.65
xor esi, esi
mov dword [ebp - 4], 0xfffffd66
call fcn.004015ab
mov esi, eax
push esi
call fcn.0040554c
test eax, eax
push esi
je 0x402a9e
mov esi, 0x4094c0
push esi
call fcn.00405785
jmp 0x402abe
push 0x434400
push 0x4094c0
call fcn.00405785
push eax
call fcn.004058dc
push eax
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x4094c0
push esi
call fcn.004057a7
push esi
call fcn.004055e2
push 2
push 0x40000000
push esi
call fcn.00405602
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402b85
mov eax, dword [0x42ed08]
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 0x402b77
push ebx
call fcn.00402ec1
push dword [ebp - 0x10]
push edi
call fcn.00402e8f
push dword [ebp - 0x24]
push 0x40
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x34], esi
je 0x402b4f
push dword [ebp - 0x24]
push esi
push ebx
push dword [ebp - 0x28]
call fcn.00402ed8
jmp 0x402b42
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x44], ecx
call fcn.004055be
add esi, dword [ebp - 0x44]
cmp byte [esi], bl
jne 0x402b2a
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
lea eax, [ebp - 0x38]
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.00402ed8
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4094c0
cmp dword [ebp - 4], ebx
push 0xfffffffffffffff3
pop edi
jge 0x402b9e
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], 1
push edi
jmp 0x4018dc
xor ecx, ecx
call fcn.00401595
mov edi, eax
cmp edi, dword [0x42eccc]
jae 0x401853
mov eax, dword [ebp - 0x24]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x42ecc8]
cmp eax, ebx
jl 0x402be5
mov ecx, dword [esi + eax*4]
jne 0x402bdf
add esi, 0x18
push esi
push dword [ebp - 0xc]
jmp 0x402a6c
push ecx
jmp 0x4029e9
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x402bfc
xor ecx, ecx
inc ecx
call fcn.00401595
mov dword [ebp - 0x28], eax
jmp 0x402c0f
push dword [ebp - 0x1c]
lea eax, [esi + 0x18]
push eax
call fcn.00405a07
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x20], ebx
je case.0x40170e.65
push edi
call fcn.0040117d
jmp case.0x40170e.65
xor ecx, ecx
call fcn.00401595
cmp eax, 0x20
jae 0x401853
cmp dword [ebp - 0x20], ebx
je 0x402c60
cmp dword [ebp - 0x24], ebx
je 0x402c55
push eax
call fcn.0040129d
push ebx
push ebx
call fcn.004011ef
jmp case.0x40170e.65
push ebx
call fcn.004012e8
jmp 0x4029e8
cmp dword [ebp - 0x24], ebx
je 0x402c77
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x42eca8]
mov dword [edx + eax*4 + 0x98], ecx
jmp case.0x40170e.65
mov ecx, dword [0x42eca8]
push dword [ecx + eax*4 + 0x98]
push dword [ebp - 0xc]
call fcn.00405a07
jmp case.0x40170e.65
mov eax, dword [0x42b10c]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x2c], ebx
je case.0x40170e.65
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 8]
add dword [0x42ed28], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4