Function at 0x40155d
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 [0x42f0a0]
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 - 8], eax
mov eax, dword [ebp - 0x28]
mov ecx, eax
shl ecx, 0xa
add ecx, 0x430000
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 - 4], ebx
lea edi, [edx + 0x430000]
ja case.0x4015b8.65
jmp dword [ecx*4 + 0x402b21]
mov eax, esi
jmp 0x402b17
push ebx
push esi
call fcn.004046a0
mov eax, 0x7fffffff
jmp 0x402b17
inc dword [0x42e874]
cmp dword [ebp - 8], ebx
je 0x4015cd
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015cd
cmp esi, ebx
jge 0x401603
mov eax, 0x430000
sub eax, edx
sub eax, 0x400
push eax
call fcn.0040558c
jmp 0x401605
mov eax, esi
push ebx
dec eax
push eax
call fcn.00401373
jmp 0x402b17
cmp eax, ebx
je 0x401637
test al, 8
je 0x401621
mov eax, dword [0x40900c]
jmp 0x40162d
mov ecx, dword [0x409034]
mov dword [0x40900c], ecx
mov dword [0x409034], eax
jmp case.0x4015b8.65
push ebx
push esi
call fcn.004046a0
jmp case.0x4015b8.65
xor ecx, ecx
call fcn.0040143f
cmp eax, 1
jg 0x401652
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015b8.65
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015b8.65
xor ecx, ecx
inc ecx
call fcn.0040143f
mov ecx, dword [ebp - 0x2c]
mov dword [ecx*4 + 0x42f120], eax
jmp case.0x4015b8.65
mov esi, dword [ebp - 0x24]
lea esi, [esi*4 + 0x42f120]
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 0x402b17
push dword [eax*4 + 0x42f120]
push edi
call fcn.00405573
jmp case.0x4015b8.65
mov ecx, dword [0x42e880]
cmp ecx, ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4016cd
push eax
push ecx
call edi
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x42e86c]
cmp eax, ebx
je case.0x4015b8.65
push esi
push eax
call edi
jmp case.0x4015b8.65
push 0xfffffffffffffff0
pop esi
call fcn.00401455
push dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4015b8.65
mov dword [ebp - 4], 1
jmp case.0x4015b8.65
push 0xfffffffffffffff0
pop esi
call fcn.00401455
mov edi, eax
push edi
call fcn.00405401
mov esi, eax
cmp esi, ebx
je 0x401761
push 0x5c
push esi
call fcn.004053c0
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 0x401757
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401754
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401757
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x40171f
cmp dword [ebp - 0x28], ebx
je 0x401784
push 0xffffffffffffffe6
call fcn.0040142e
push edi
push 0x435800
call fcn.00405615
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015b8.65
push 0xfffffffffffffff5
call fcn.0040142e
jmp case.0x4015b8.65
xor esi, esi
call fcn.00401455
push eax
call fcn.004056d1
test eax, eax
je 0x401baa
mov eax, dword [ebp - 0x28]
jmp 0x402b17
push 0xffffffffffffffd0
pop esi
call fcn.00401455
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 8], eax
call fcn.00401455
push dword [ebp + 8]
mov esi, 0x409cc0
push esi
mov dword [ebp - 8], eax
call fcn.00405615
push dword [ebp - 8]
call sub.KERNEL32.dll_lstrlenA
push dword [ebp + 8]
mov edi, eax
call sub.KERNEL32.dll_lstrlenA
add edi, eax
cmp edi, 0x3fd
jge 0x401801
push 0x407294
push esi
call sub.KERNEL32.dll_lstrcatA
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatA
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x401818
push 0xffffffffffffffe3
jmp 0x401786
cmp dword [ebp - 0x24], ebx
je 0x4016fd
push dword [ebp + 8]
call fcn.004056d1
test eax, eax
je 0x4016fd
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405897
push 0xffffffffffffffe4
jmp 0x401786
xor esi, esi
call fcn.00401455
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 0x401887
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401890
cmp byte [eax], bl
je 0x401890
push esi
call fcn.004056d1
cmp eax, ebx
je 0x401887
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405615
jmp 0x401890
mov byte [edi], bl
mov dword [ebp - 4], 1
cmp dword [ebp - 0x24], ebx
jne case.0x4015b8.65
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015b8.65
or esi, 0xffffffff
call fcn.00401455
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.0x4015b8.65
mov dword [ebp - 4], 1
mov byte [edi], bl
jmp case.0x4015b8.65
push 0xffffffffffffffef
pop esi
call fcn.00401455
push eax
push edi
call fcn.004054c1
jmp 0x4016f5
push 0x31
pop esi
call fcn.00401455
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.004053dc
test eax, eax
push esi
mov esi, 0x4098c0
je 0x40191e
push esi
call fcn.00405615
jmp 0x401935
push 0x435800
push esi
call fcn.00405615
push eax
call fcn.0040576c
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.00405637
mov edi, 0x40a0c0
cmp dword [ebp + 8], 3
jl 0x401977
push esi
call fcn.004056d1
xor ecx, ecx
cmp eax, ebx
je 0x401962
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 0x401982
push esi
call fcn.00405472
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405492
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x401a16
cmp dword [ebp + 8], ebx
jne 0x4019f8
push 0x430000
push edi
call fcn.00405615
push esi
push 0x430000
call fcn.00405615
push dword [ebp - 0x18]
push 0x409cc0
call fcn.00405a3f
push edi
push 0x430000
call fcn.00405615
mov eax, dword [ebp - 0x2c]
sar eax, 3
push eax
push 0x409cc0
call fcn.0040537e
sub eax, 4
je 0x401940
dec eax
je 0x401a0b
push esi
push 0xfffffffffffffffa
jmp 0x4015c8
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.004046a0
cmp dword [ebp + 8], 2
jmp 0x4016f7
inc dword [0x42f128]
jmp 0x402b15
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.004046a0
inc dword [0x409034]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00402d32
dec dword [0x409034]
cmp dword [ebp - 0x20], 0xffffffff
mov edi, eax
jne 0x401a47
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401a56
lea eax, [ebp - 0x20]
push eax
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge case.0x4015b8.65
cmp edi, 0xfffffffe
jne 0x401a7f
push 0xffffffffffffffe9
push esi
call fcn.00405a3f
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a87
push 0xffffffffffffffee
push esi
call fcn.00405a3f
push 0x200010
push esi
call fcn.0040537e
jmp 0x4015cd
xor esi, esi
call fcn.00401455
push dword [ebp - 0x28]
push eax
call fcn.00405c46
jmp case.0x4015b8.65
push 0x31
pop esi
call fcn.00401455
push dword [ebp - 0x2c]
push eax
call fcn.0040537e
cmp eax, ebx
je 0x4016fd
cmp eax, dword [ebp - 0x24]
jne 0x401ad2
mov eax, dword [ebp - 0x20]
jmp 0x402b17
cmp eax, dword [ebp - 0x1c]
jne case.0x4015b8.65
mov eax, dword [ebp - 0x18]
jmp 0x402b17
push 0xfffffffffffffff0
pop esi
jmp 0x401a99
xor esi, esi
inc esi
call fcn.00401455
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x4016ab
push 2
pop ecx
call fcn.0040143f
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.0040143f
xor esi, esi
inc esi
mov dword [ebp - 8], eax
call fcn.00401455
cmp dword [ebp - 0x24], ebx
mov esi, eax
mov byte [edi], bl
je 0x401b2c
cmp dword [ebp + 8], ebx
je case.0x4015b8.65
push esi
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp - 8], ebx
jge 0x401b40
add dword [ebp - 8], eax
js case.0x4015b8.65
mov ecx, dword [ebp - 8]
cmp ecx, eax
jle 0x401b49
mov ecx, eax
add esi, ecx
push esi
push edi
call fcn.00405615
cmp dword [ebp + 8], ebx
je case.0x4015b8.65
jge 0x401b6b
push edi
call sub.KERNEL32.dll_lstrlenA
add dword [ebp + 8], eax
jns 0x401b6b
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x400
jge case.0x4015b8.65
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp case.0x4015b8.65
push 0x20
pop esi
call fcn.00401455
push 0x31
pop esi
mov edi, eax
call fcn.00401455
cmp dword [ebp - 0x1c], ebx
push eax
push edi
jne 0x401bb2
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401aca
mov eax, dword [ebp - 0x24]
jmp 0x402b17
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401ba2
xor esi, esi
inc esi
call fcn.00401455
cmp dword [ebp - 0x24], ebx
push 0x400
push edi
push eax
je 0x401bd6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x401bdc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x401be9
mov byte [edi], bl
mov dword [ebp - 4], 1
mov byte [edi + 0x3ff], bl
jmp case.0x4015b8.65
xor ecx, ecx
call fcn.0040143f
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.0040143f
cmp dword [ebp - 0x18], ebx
jne 0x401c1c
cmp esi, eax
jl 0x401aca
jle 0x401baa
mov eax, dword [ebp - 0x1c]
jmp 0x402b17
cmp esi, eax
jb 0x401aca
jbe 0x401baa
jmp 0x401c14
xor ecx, ecx
inc ecx
call fcn.0040143f
push 2
pop ecx
mov esi, eax
call fcn.0040143f
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
ja case.default.0x401c44
jmp dword [eax*4 + 0x402c29]
add esi, ecx
jmp case.default.0x401c44
sub esi, ecx
jmp case.default.0x401c44
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c44
cmp ecx, ebx
je 0x401c65
mov eax, esi
cdq
idiv ecx
jmp 0x401c83
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401c44
or esi, ecx
jmp case.default.0x401c44
and esi, ecx
jmp case.default.0x401c44
xor esi, ecx
jmp case.default.0x401c44
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
jmp case.default.0x401c44
cmp esi, ebx
jne 0x401c8f
cmp ecx, ebx
je 0x401c98
xor esi, esi
inc esi
jmp case.default.0x401c44
cmp esi, ebx
jne 0x401c8b
xor esi, esi
jmp case.default.0x401c44
cmp ecx, ebx
je 0x401c65
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c44
shl esi, cl
jmp case.default.0x401c44
sar esi, cl
push esi
jmp 0x4016ab
xor esi, esi
inc esi
call fcn.00401455
push 2
pop ecx
mov esi, eax
call fcn.0040143f
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4015b8.65
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
mov esi, dword [0x409080]
je 0x401d34
dec ecx
cmp esi, ebx
je 0x401cf4
cmp ecx, ebx
mov esi, dword [esi]
jne 0x401ce5
cmp esi, ebx
jne 0x401d07
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405a3f
push eax
jmp 0x401a8d
lea edi, [esi + 4]
push edi
mov esi, 0x4098c0
push esi
call fcn.00405615
mov eax, dword [0x409080]
add eax, 4
push eax
push edi
call fcn.00405615
mov eax, dword [0x409080]
push esi
add eax, 4
push eax
jmp 0x4028c6
cmp eax, ebx
je 0x401d57
cmp esi, ebx
je 0x4016fd
lea eax, [esi + 4]
push eax
push edi
call fcn.00405615
mov eax, dword [esi]
mov dword [0x409080], eax
push esi
jmp 0x402155
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.00405a3f
mov eax, dword [0x409080]
mov dword [esi], eax
mov dword [0x409080], esi
jmp case.0x4015b8.65
push 0x33
pop esi
call fcn.00401455
push 0x44
pop esi
mov dword [ebp - 8], eax
call fcn.00401455
test byte [ebp - 0x18], 1
mov dword [ebp + 8], eax
jne 0x401dab
push dword [ebp - 8]
call fcn.0040558c
mov dword [ebp - 8], eax
test byte [ebp - 0x18], 2
jne 0x401dbc
push dword [ebp + 8]
call fcn.0040558c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x30], 0x21
jne 0x401e0a
xor ecx, ecx
inc ecx
call fcn.0040143f
push 2
pop ecx
mov esi, eax
call fcn.0040143f
mov ecx, dword [ebp - 0x18]
sar ecx, 2
je 0x401dfa
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e41
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e3e
xor esi, esi
inc esi
call fcn.00401455
push 0x12
pop esi
mov dword [ebp - 0x10], eax
call fcn.00401455
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 - 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], ebx
jl case.0x4015b8.65
push dword [ebp - 0xc]
jmp 0x4016ab
xor ecx, ecx
call fcn.0040143f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x40179d
push 2
pop ecx
call fcn.0040143f
xor ecx, ecx
push eax
inc ecx
call fcn.0040143f
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401af6
mov ecx, dword [0x42f0e8]
add eax, ecx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.0040143f
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015b8.65
push eax
push dword [ebp - 8]
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.00401455
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.0x4015b8.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015b8.65
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.0040143f
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x409084], eax
call fcn.0040143f
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.00405a3f
push 0x409084
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401af6
xor ecx, ecx
call fcn.0040143f
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.0040143f
cmp dword [ebp - 0x20], ebx
push eax
push esi
jne 0x401f9a
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015b8.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015b8.65
xor esi, esi
call fcn.00401455
push 0x31
pop esi
mov edi, eax
call fcn.00401455
push 0x22
pop esi
mov ebx, eax
call fcn.00401455
push ebx
push edi
push str._s__s
push 0x409cc0
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xffffffffffffffec
call fcn.0040142e
mov al, byte [esi]
push dword [ebp - 0x20]
neg al
push 0x435800
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 - 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015b8.65
jmp 0x4016fd
xor esi, esi
call fcn.00401455
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004046a0
push 0x435800
push esi
call fcn.00405306
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4016fd
cmp dword [ebp - 0x24], ebx
je 0x40208b
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x40205c
push 0xf
call fcn.00405739
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40204e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x28], ebx
jl 0x40207f
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00405573
jmp 0x40208b
cmp dword [ebp - 8], ebx
je 0x40208b
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4026d9
push 2
pop esi
call fcn.00401455
push eax
call fcn.004056d1
mov esi, eax
cmp esi, ebx
je 0x4020ba
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.00405573
push dword [esi + 0x18]
jmp 0x4016ab
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x4016fd
push 0xffffffffffffffee
lea eax, [ebp - 0x4c]
pop esi
mov dword [ebp + 8], eax
call fcn.00401455
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 - 4], 1
je case.0x4015b8.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je case.0x4015b8.65
push eax
push esi
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402152
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
push 0x407288
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402152
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.00405573
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.00405573
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015b8.65
push 0x8001
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x42f150], ebx
jl 0x402224
push 0xfffffffffffffff0
pop esi
call fcn.00401455
xor esi, esi
inc esi
mov edi, eax
call fcn.00401455
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], eax
je 0x4021a6
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x4021b7
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402220
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402206
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
je 0x4021e8
push dword [ebp - 0x24]
call fcn.0040142e
call esi
test eax, eax
je 0x402210
mov dword [ebp - 4], 1
jmp 0x402210
push section..data
push 0x409080
push 0x430000
push 0x400
push dword [ebp - 8]
call esi
add esp, 0x14
jmp 0x402210
push dword [ebp - 0xc]
push 0xfffffffffffffff7
call fcn.004046a0
cmp dword [ebp - 0x20], ebx
jne 0x40222b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40222b
push 0xfffffffffffffff6
jmp 0x402226
push 0xffffffffffffffe7
call fcn.0040142e
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp case.0x4015b8.65
push 0xfffffffffffffff0
pop esi
call fcn.00401455
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401455
push 2
pop esi
mov dword [ebp - 8], eax
call fcn.00401455
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x40], eax
call fcn.00401455
push 0x45
pop esi
mov dword [ebp - 0xc], eax
call fcn.00401455
push dword [ebp - 8]
mov dword [ebp - 0x38], eax
call fcn.004053dc
test eax, eax
jne 0x402282
push 0x21
pop esi
call fcn.00401455
lea eax, [ebp + 8]
push eax
push 0x4077a0
push 1
push ebx
push 0x4077b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40237b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4077c0
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x40236e
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x435800
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x4022f6
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 - 0xc]
cmp byte [eax], bl
je 0x40231c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and edx, esi
push edx
push dword [ebp - 0xc]
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 0x402365
push 0x400
mov esi, 0x4090c0
push esi
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov word [0x4090c0], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, 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 edi, ebx
jge 0x402389
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x401786
push 0xfffffffffffffff4
jmp 0x401786
xor esi, esi
call fcn.00401455
push 0x11
mov edi, eax
pop esi
mov dword [ebp + 8], edi
call fcn.00401455
mov esi, eax
mov eax, dword [ebp - 8]
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, 0x40a0c0
push edi
mov byte [eax + esi + 1], bl
call fcn.00405a3f
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.004046a0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015b8.65
push ebx
push 0xfffffffffffffff9
call fcn.004046a0
jmp 0x4016fd
cmp esi, 0xbadf00d
jne 0x401cf4
inc dword [0x42f134]
jmp case.0x4015b8.65
xor edi, edi
cmp esi, ebx
mov dword [ebp + 8], ebx
je 0x402441
xor esi, esi
call fcn.00401455
mov edi, eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x402450
push 0x11
pop esi
call fcn.00401455
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], ebx
je 0x40245f
push 0x22
pop esi
call fcn.00401455
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401455
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4016f5
xor esi, esi
inc esi
mov dword [ebp + 8], 0x7e4e21
call fcn.00401455
push 0x12
pop esi
mov dword [ebp - 0x38], eax
call fcn.00401455
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401455
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 0x4018c8
cmp dword [ebp - 0x1c], ebx
jne 0x4024ef
push 2
call fcn.00401514
mov edi, eax
cmp edi, ebx
je 0x4016fd
push 0x33
pop esi
call fcn.00401455
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40251a
push 0x22
pop esi
call fcn.00401455
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x40250a
mov ecx, dword [0x42f124]
add ecx, 0x80000001
mov edx, dword [ebp - 0x1c]
and edx, 2
push edx
push eax
push ecx
call fcn.0040148d
mov esi, eax
cmp esi, ebx
je case.0x4015b8.65
jmp 0x4016fd
cmp esi, ebx
je 0x40252f
mov edi, esi
jmp 0x40253b
mov edi, dword [0x42f124]
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.00401455
push 0x11
pop esi
mov dword [ebp - 0x38], eax
call fcn.00401455
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 - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x4015b8.65
cmp dword [ebp + 8], 1
mov edi, 0x40a0c0
jne 0x402596
push 0x23
pop esi
call fcn.00401455
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp dword [ebp + 8], 4
jne 0x4025ac
push 3
pop ecx
call fcn.0040143f
push 4
mov dword [0x40a0c0], eax
pop eax
cmp dword [ebp + 8], 3
jne 0x4025c1
push 0xc00
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00402d32
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 0x4025da
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015b8.65
push 0x20019
call fcn.00401514
push 0x33
pop esi
mov dword [ebp - 8], eax
call fcn.00401455
cmp dword [ebp - 8], ebx
mov byte [edi], bl
je 0x4016fd
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], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402661
cmp dword [ebp + 8], 4
je 0x40264b
cmp dword [ebp + 8], ecx
je 0x40263b
cmp dword [ebp + 8], 2
jne 0x402661
cmp dword [ebp - 0x1c], ebx
je 0x402643
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], bl
jmp 0x402666
cmp dword [ebp - 0x1c], ebx
jne 0x402657
mov dword [ebp - 4], 1
push dword [edi]
push edi
call fcn.00405573
jmp 0x402666
mov byte [edi], bl
mov dword [ebp - 4], ecx
push dword [ebp - 8]
jmp 0x4025dd
push 0x20019
call fcn.00401514
push 3
pop ecx
mov esi, eax
call fcn.0040143f
cmp esi, ebx
mov byte [edi], bl
je 0x4016fd
cmp dword [ebp - 0x1c], ebx
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
je 0x4026a5
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026be
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 0x4016fd
mov byte [edi + 0x3ff], bl
push esi
jmp 0x4025dd
cmp byte [edi], bl
je case.0x4015b8.65
push edi
call fcn.0040558c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015b8.65
push 0xffffffffffffffed
pop esi
call fcn.00401455
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00405492
cmp eax, 0xffffffff
jne 0x401af6
mov byte [edi], bl
jmp 0x4016fd
cmp dword [ebp - 0x24], ebx
je 0x40271f
xor ecx, ecx
inc ecx
call fcn.0040143f
mov byte [0x409cc0], al
xor eax, eax
inc eax
jmp 0x40272d
push 0x11
pop esi
call fcn.00401455
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], bl
je 0x4016fd
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push 0x409cc0
push edi
call fcn.0040558c
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4016f5
push 2
pop ecx
xor esi, esi
call fcn.0040143f
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015b8.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402774
mov dword [ebp - 8], ecx
cmp byte [edi], bl
je 0x40280a
push edi
mov byte [ebp + 0xb], bl
call fcn.0040558c
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jle 0x40280a
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 0x40280d
cmp dword [ebp - 0x34], 1
jne 0x40280d
cmp dword [ebp - 0x20], ebx
jne 0x4027d4
cmp byte [ebp + 0xb], 0xd
je 0x4027e4
cmp byte [ebp + 0xb], 0xa
je 0x4027e4
mov al, byte [ebp - 0x11]
mov byte [esi + edi], al
inc esi
cmp al, bl
mov byte [ebp + 0xb], al
je 0x40280d
cmp esi, dword [ebp - 8]
jl 0x402790
jmp 0x40280d
movzx eax, byte [ebp - 0x11]
push eax
push edi
call fcn.00405573
jmp 0x402b15
mov al, byte [ebp - 0x11]
cmp byte [ebp + 0xb], al
je 0x4027fa
cmp al, 0xd
je 0x4027f4
cmp al, 0xa
jne 0x4027fa
mov byte [esi + edi], al
inc esi
jmp 0x40280d
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40280d
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x4016f7
cmp byte [edi], bl
je case.0x4015b8.65
push dword [ebp - 0x20]
push ebx
push 2
pop ecx
call fcn.0040143f
push eax
push edi
call fcn.0040558c
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x28], ebx
jl case.0x4015b8.65
push eax
push dword [ebp - 0xc]
jmp 0x4016ac
cmp byte [edi], bl
je case.0x4015b8.65
push edi
call fcn.0040558c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015b8.65
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
je 0x4018ce
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0xc]
call fcn.0040558c
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018ce
jmp 0x4028be
push 2
pop esi
call fcn.00401455
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4028b5
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
jmp 0x402701
push eax
push dword [ebp - 0xc]
call fcn.00405573
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.00405615
jmp case.0x4015b8.65
xor esi, esi
mov dword [ebp - 8], 0xfffffd66
call fcn.00401455
mov esi, eax
push esi
call fcn.004053dc
test eax, eax
push esi
je 0x4028f8
mov esi, 0x409cc0
push esi
call fcn.00405615
jmp 0x402918
push 0x435400
push 0x409cc0
call fcn.00405615
push eax
call fcn.0040576c
push eax
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x409cc0
push esi
call fcn.00405637
push esi
call fcn.00405472
push 2
push 0x40000000
push esi
call fcn.00405492
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4029df
mov eax, dword [0x42f108]
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 0x4029d1
push ebx
call fcn.00402d1b
push dword [ebp - 0x10]
push edi
call fcn.00402ce9
push dword [ebp - 0x24]
push 0x40
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x34], esi
je 0x4029a9
push dword [ebp - 0x24]
push esi
push ebx
push dword [ebp - 0x28]
call fcn.00402d32
jmp 0x40299c
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.0040544e
add esi, dword [ebp - 0x44]
cmp byte [esi], bl
jne 0x402984
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.00402d32
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x409cc0
cmp dword [ebp - 8], ebx
push 0xfffffffffffffff3
pop edi
jge 0x4029f8
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push edi
jmp 0x401786
xor ecx, ecx
call fcn.0040143f
mov edi, eax
cmp edi, dword [0x42f0cc]
jae 0x4016fd
mov eax, dword [ebp - 0x24]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x42f0c8]
cmp eax, ebx
jl 0x402a3f
mov ecx, dword [esi + eax*4]
jne 0x402a39
add esi, 0x18
push esi
push dword [ebp - 0xc]
jmp 0x4028c6
push ecx
jmp 0x402843
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x402a56
xor ecx, ecx
inc ecx
call fcn.0040143f
mov dword [ebp - 0x28], eax
jmp 0x402a69
push dword [ebp - 0x1c]
lea eax, [esi + 0x18]
push eax
call fcn.00405a3f
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.0x4015b8.65
push edi
call fcn.0040117d
jmp case.0x4015b8.65
xor ecx, ecx
call fcn.0040143f
cmp eax, 0x20
jae 0x4016fd
cmp dword [ebp - 0x20], ebx
je 0x402aba
cmp dword [ebp - 0x24], ebx
je 0x402aaf
push eax
call fcn.0040129d
push ebx
push ebx
call fcn.004011ef
jmp case.0x4015b8.65
push ebx
call fcn.004012e8
jmp 0x402842
cmp dword [ebp - 0x24], ebx
je 0x402ad1
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x42f0a8]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015b8.65
mov ecx, dword [0x42f0a8]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.00405a3f
jmp case.0x4015b8.65
mov eax, dword [0x42b50c]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x2c], ebx
je case.0x4015b8.65
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x42f128], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4