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 [0x4243a0]
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 edx, eax
shl edx, 0xa
add edx, section..ndata
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x2c]
mov dword [0x40aca4], edx
mov edx, dword [ebp - 0x30]
mov ecx, esi
xor ebx, ebx
shl ecx, 0xa
add edx, 0xfffffffe
cmp edx, 0x41
mov dword [ebp - 4], ebx
lea edi, [ecx + section..ndata]
ja case.0x4015b8.65
jmp dword [edx*4 + 0x402b12]
mov eax, esi
jmp 0x402b0b
push ebx
push esi
call fcn.0040463c
jmp 0x40240c
inc dword [0x423b74]
cmp dword [ebp - 8], ebx
je 0x40240c
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40240c
cmp esi, ebx
jge 0x401605
mov eax, section..ndata
sub eax, ecx
sub eax, 0x400
push eax
call fcn.00405534
jmp 0x401607
mov eax, esi
push ebx
dec eax
push eax
call fcn.00401373
jmp 0x402b0b
cmp eax, ebx
je 0x401639
test al, 8
je 0x401623
mov eax, dword [0x40900c]
jmp 0x40162f
mov ecx, dword [0x409034]
mov dword [0x40900c], ecx
mov dword [0x409034], eax
jmp case.0x4015b8.65
push ebx
push esi
call fcn.0040463c
jmp case.0x4015b8.65
xor ecx, ecx
call fcn.0040143f
cmp eax, 1
jg 0x401654
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 + 0x424420], eax
jmp case.0x4015b8.65
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
xor eax, eax
lea ecx, [ecx*4 + 0x424420]
cmp dword [ecx], ebx
sete al
and dword [ecx], edx
mov eax, dword [ebp + eax*4 - 0x2c]
jmp 0x402b0b
push dword [eax*4 + 0x424420]
push edi
jmp 0x402aa7
mov ecx, dword [0x423b80]
cmp ecx, ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4016c8
push eax
push ecx
call edi
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x423b6c]
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
jmp 0x40289d
push 0xfffffffffffffff0
pop esi
call fcn.00401455
mov edi, eax
push edi
call fcn.004053ad
cmp byte [edi], bl
mov esi, eax
je 0x401759
cmp esi, ebx
je 0x401759
push 0x5c
push esi
call fcn.0040536a
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 0x40174f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40174c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40174f
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x401717
cmp dword [ebp - 0x28], ebx
je 0x40177c
push 0xffffffffffffffe6
call fcn.0040142e
push edi
push 0x42a800
call fcn.004055bd
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015b8.65
push 0xfffffffffffffff5
jmp 0x40235e
xor esi, esi
call fcn.00401455
push eax
call fcn.0040567a
jmp 0x401e32
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, 0x409c68
push esi
mov dword [ebp - 8], eax
call fcn.004055bd
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 0x4017e9
push 0x40728c
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 0x401800
push 0xffffffffffffffe3
jmp 0x40235e
cmp dword [ebp - 0x24], ebx
je 0x40289d
push dword [ebp + 8]
call fcn.0040567a
test eax, eax
je 0x40289d
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00405840
push 0xffffffffffffffe4
jmp 0x40235e
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 0x40186f
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401878
cmp byte [eax], bl
je 0x401878
push esi
call fcn.0040567a
cmp eax, ebx
je 0x40186f
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.004055bd
jmp 0x401878
mov dword [ebp - 4], 1
mov byte [edi], bl
cmp dword [ebp - 0x24], ebx
jne case.0x4015b8.65
push 0x400
push dword [ebp - 0xc]
push dword [ebp - 0xc]
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
jmp 0x40286d
push 0xffffffffffffffef
pop esi
call fcn.00401455
push eax
push edi
call fcn.00405469
jmp 0x4016f0
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.00405386
test eax, eax
push esi
mov esi, 0x409868
je 0x401901
push esi
call fcn.004055bd
jmp 0x401918
push 0x42a800
push esi
call fcn.004055bd
push eax
call fcn.00405715
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.004055df
mov edi, 0x40a068
cmp dword [ebp + 8], 3
jl 0x40195a
push esi
call fcn.0040567a
xor ecx, ecx
cmp eax, ebx
je 0x401945
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 0x401965
push esi
call fcn.0040541a
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.0040543a
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4019f9
cmp dword [ebp + 8], ebx
jne 0x4019db
push section..ndata
push edi
call fcn.004055bd
push esi
push section..ndata
call fcn.004055bd
push dword [ebp - 0x18]
push 0x409c68
call fcn.004059e8
push edi
push section..ndata
call fcn.004055bd
mov eax, dword [ebp - 0x2c]
sar eax, 3
push eax
push 0x409c68
call fcn.00405328
sub eax, 4
je 0x401923
dec eax
je 0x4019ee
push esi
push 0xfffffffffffffffa
jmp 0x4015c8
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.0040463c
cmp dword [ebp + 8], 2
jmp 0x4016f2
inc dword [0x424428]
jmp 0x402b09
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.0040463c
inc dword [0x409034]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00402d23
dec dword [0x409034]
cmp dword [ebp - 0x20], 0xffffffff
mov edi, eax
jne 0x401a2a
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401a39
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 0x401a62
push 0xffffffffffffffe9
push esi
call fcn.004059e8
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a6a
push 0xffffffffffffffee
push esi
call fcn.004059e8
push 0x200010
push esi
jmp 0x402407
xor esi, esi
jmp 0x401aaf
push 0x31
pop esi
call fcn.00401455
push dword [ebp - 0x2c]
push eax
call fcn.00405328
cmp eax, ebx
je 0x40289d
cmp eax, dword [ebp - 0x24]
je 0x401beb
cmp eax, dword [ebp - 0x1c]
jne case.0x4015b8.65
mov eax, dword [ebp - 0x18]
jmp 0x402b0b
push 0xfffffffffffffff0
pop esi
call fcn.00401455
push dword [ebp - 0x28]
push eax
call fcn.00405c08
jmp case.0x4015b8.65
xor esi, esi
inc esi
call fcn.00401455
push eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x4026ed
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 0x401b05
cmp dword [ebp + 8], ebx
je case.0x4015b8.65
push esi
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp - 8], ebx
jge 0x401b19
add dword [ebp - 8], eax
js case.0x4015b8.65
mov ecx, dword [ebp - 8]
cmp ecx, eax
jle 0x401b22
mov ecx, eax
add esi, ecx
push esi
push edi
call fcn.004055bd
cmp dword [ebp + 8], ebx
je case.0x4015b8.65
jge 0x401b44
push edi
call sub.KERNEL32.dll_lstrlenA
add dword [ebp + 8], eax
jns 0x401b44
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 0x401b87
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401beb
mov eax, dword [ebp - 0x24]
jmp 0x402b0b
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401b7b
xor esi, esi
inc esi
call fcn.00401455
cmp dword [ebp - 0x24], ebx
push 0x400
push edi
push eax
je 0x401bab
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x401bb1
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x401bbe
mov dword [ebp - 4], 1
mov byte [edi], bl
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 0x401be7
cmp esi, eax
jl 0x401beb
jle 0x401b7f
jmp 0x401bf5
cmp esi, eax
jae 0x401bf3
mov eax, dword [ebp - 0x20]
jmp 0x402b0b
jbe 0x401b7f
mov eax, dword [ebp - 0x1c]
jmp 0x402b0b
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.0x401c19
jmp dword [eax*4 + 0x402c1a]
add esi, ecx
jmp case.default.0x401c19
sub esi, ecx
jmp case.default.0x401c19
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c19
cmp ecx, ebx
je 0x401c75
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp case.default.0x401c19
or esi, ecx
jmp case.default.0x401c19
and esi, ecx
jmp case.default.0x401c19
xor esi, ecx
jmp case.default.0x401c19
xor eax, eax
cmp esi, ebx
sete al
jmp 0x401c38
cmp esi, ebx
jne 0x401c63
jmp 0x401c5f
xor esi, esi
jmp case.default.0x401c19
cmp esi, ebx
je 0x401c57
cmp ecx, ebx
je 0x401c57
xor esi, esi
inc esi
jmp case.default.0x401c19
cmp ecx, ebx
je 0x401c75
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c19
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401c19
shl esi, cl
jmp case.default.0x401c19
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 [0x409060]
je 0x401d00
dec ecx
cmp esi, ebx
je 0x4023f9
cmp ecx, ebx
mov esi, dword [esi]
jne 0x401cbc
cmp esi, ebx
je 0x4023f9
lea edi, [esi + 4]
push edi
mov esi, 0x409868
push esi
call fcn.004055bd
mov eax, dword [0x409060]
add eax, 4
push eax
push edi
call fcn.004055bd
mov eax, dword [0x409060]
push esi
add eax, 4
push eax
jmp 0x402a23
cmp eax, ebx
je 0x401d29
cmp esi, ebx
je 0x40289d
lea eax, [esi + 4]
push eax
push edi
call fcn.004055bd
mov eax, dword [esi]
mov dword [0x409060], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015b8.65
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.004059e8
mov eax, dword [0x409060]
mov dword [esi], eax
mov dword [0x409060], 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 0x401d7d
push dword [ebp - 8]
call fcn.00405534
mov dword [ebp - 8], eax
test byte [ebp - 0x18], 2
jne 0x401d8e
push dword [ebp + 8]
call fcn.00405534
mov dword [ebp + 8], eax
cmp dword [ebp - 0x30], 0x21
jne 0x401ddc
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 0x401dcc
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 0x401e13
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e10
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]
test eax, eax
je 0x401b7f
mov eax, dword [ebp - 0x28]
jmp 0x402b0b
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 0x4026ed
mov ecx, dword [0x4243e8]
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 [0x40ac68], eax
call fcn.0040143f
push dword [ebp - 0x28]
mov dword [0x40ac78], eax
mov al, byte [ebp - 0x1c]
mov cl, al
and cl, 1
mov byte [0x40ac7c], cl
mov cl, al
and cl, 2
and al, 4
push 0x40ac84
mov byte [0x40ac7d], cl
mov byte [0x40ac7e], al
mov byte [0x40ac7f], 1
call fcn.004059e8
push 0x40ac68
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4026ed
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 0x401f77
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 0x409c68
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 0x42a800
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 0x40289d
xor esi, esi
call fcn.00401455
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.0040463c
push 0x42a800
push esi
call fcn.004052b0
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40289d
cmp dword [ebp - 0x24], ebx
je 0x402068
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402039
push 0xf
call fcn.004056e2
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40202b
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x28], ebx
jl 0x40205c
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040551b
jmp 0x402068
cmp dword [ebp - 8], ebx
je 0x402068
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015b8.65
push 2
pop esi
call fcn.00401455
push eax
call fcn.0040567a
mov esi, eax
cmp esi, ebx
je 0x40209d
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.0040551b
push dword [esi + 0x18]
jmp 0x4016ab
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x40289d
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 0x402135
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
push 0x407280
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402135
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.0040551b
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.0040551b
mov dword [ebp - 4], ebx
push dword [ebp - 8]
jmp 0x401d1e
push 0x8001
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x424450], ebx
jl 0x4021fe
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 0x402183
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x402191
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4021fa
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4021e0
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
je 0x4021c2
push dword [ebp - 0x24]
call fcn.0040142e
call esi
test eax, eax
je 0x4021ea
mov dword [ebp - 4], 1
jmp 0x4021ea
push section..data
push 0x409060
push section..ndata
push 0x400
push dword [ebp - 8]
call esi
add esp, 0x14
jmp 0x4021ea
push dword [ebp - 0xc]
push 0xfffffffffffffff7
call fcn.0040463c
cmp dword [ebp - 0x20], ebx
jne 0x402205
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402205
push 0xfffffffffffffff6
jmp 0x402200
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.00405386
test eax, eax
jne 0x40225c
push 0x21
pop esi
call fcn.00401455
lea eax, [ebp + 8]
push eax
push 0x40768c
push 1
push ebx
push 0x40769c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402355
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4076ac
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x402348
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 0x42a800
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x4022d0
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 0x4022f6
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 0x40233f
push 0x400
mov esi, 0x409068
push esi
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov word [0x409068], 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 0x402368
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
call fcn.0040142e
jmp case.0x4015b8.65
push 0xfffffffffffffff4
jmp 0x40235e
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, 0x40a068
push edi
mov byte [eax + esi + 1], bl
call fcn.004059e8
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.0040463c
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.0040463c
jmp 0x40289d
cmp esi, 0xbadf00d
je 0x402416
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.004059e8
push eax
call fcn.00405328
mov eax, 0x7fffffff
jmp 0x402b0b
inc dword [0x424434]
jmp case.0x4015b8.65
xor edi, edi
cmp esi, ebx
mov dword [ebp + 8], ebx
je 0x402436
xor esi, esi
call fcn.00401455
mov edi, eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x402445
push 0x11
pop esi
call fcn.00401455
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], ebx
je 0x402454
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 0x4016f0
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 0x4018b4
cmp dword [ebp - 0x1c], ebx
jne 0x4024e4
push 2
call fcn.00401514
mov edi, eax
cmp edi, ebx
je 0x40289d
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 0x40250f
push 0x22
pop esi
call fcn.00401455
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x4024ff
mov ecx, dword [0x424424]
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 0x40289d
cmp esi, ebx
je 0x402524
mov edi, esi
jmp 0x402530
mov edi, dword [0x424424]
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, 0x40a068
jne 0x40258b
push 0x23
pop esi
call fcn.00401455
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp dword [ebp + 8], 4
jne 0x4025a1
push 3
pop ecx
call fcn.0040143f
push 4
mov dword [0x40a068], eax
pop eax
cmp dword [ebp + 8], 3
jne 0x4025b6
push 0xc00
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00402d23
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 0x4025cf
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
jmp 0x4026b1
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 0x40289d
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 0x402650
cmp dword [ebp + 8], 4
je 0x40263a
cmp dword [ebp + 8], ecx
je 0x40262a
cmp dword [ebp + 8], 2
jne 0x402650
cmp dword [ebp - 0x1c], ebx
je 0x402632
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax + edi], bl
jmp 0x402655
cmp dword [ebp - 0x1c], ebx
jne 0x402646
mov dword [ebp - 4], 1
push dword [edi]
push edi
call fcn.0040551b
jmp 0x402655
mov byte [edi], bl
mov dword [ebp - 4], ecx
push dword [ebp - 8]
jmp 0x4026b1
push 0x20019
call fcn.00401514
push 3
pop ecx
mov esi, eax
call fcn.0040143f
cmp esi, ebx
mov byte [edi], bl
je 0x40289d
cmp dword [ebp - 0x1c], ebx
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
je 0x402691
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026aa
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 0x40289d
mov byte [edi + 0x3ff], bl
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015b8.65
cmp byte [edi], bl
je case.0x4015b8.65
push edi
call fcn.00405534
push eax
jmp 0x40206b
push 0xffffffffffffffed
pop esi
call fcn.00401455
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.0040543a
cmp eax, 0xffffffff
je 0x40289b
push eax
jmp 0x4016ab
cmp dword [ebp - 0x24], ebx
je 0x40270a
xor ecx, ecx
inc ecx
call fcn.0040143f
mov byte [0x409c68], al
xor eax, eax
inc eax
jmp 0x402718
push 0x11
pop esi
call fcn.00401455
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], bl
je 0x40289d
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push 0x409c68
push edi
call fcn.00405534
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4016f0
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 0x40275f
mov dword [ebp - 8], ecx
cmp byte [edi], bl
je 0x4027f5
push edi
mov byte [ebp + 0xb], bl
call fcn.00405534
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jle 0x4027f5
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 0x4027f8
cmp dword [ebp - 0x34], 1
jne 0x4027f8
cmp dword [ebp - 0x20], ebx
jne 0x4027bf
cmp byte [ebp + 0xb], 0xd
je 0x4027cf
cmp byte [ebp + 0xb], 0xa
je 0x4027cf
mov al, byte [ebp - 0x11]
mov byte [esi + edi], al
inc esi
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4027f8
cmp esi, dword [ebp - 8]
jl 0x40277b
jmp 0x4027f8
movzx eax, byte [ebp - 0x11]
push eax
push edi
call fcn.0040551b
jmp 0x402b09
mov al, byte [ebp - 0x11]
cmp byte [ebp + 0xb], al
je 0x4027e5
cmp al, 0xd
je 0x4027df
cmp al, 0xa
jne 0x4027e5
mov byte [esi + edi], al
inc esi
jmp 0x4027f8
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4027f8
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x4016f2
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.00405534
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x28], ebx
jl case.0x4015b8.65
jmp 0x402aa3
cmp byte [edi], bl
je case.0x4015b8.65
push edi
call fcn.00405534
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015b8.65
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
je 0x40286d
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0xc]
call fcn.00405534
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4028b2
mov dword [ebp - 4], 1
mov byte [edi], bl
jmp case.0x4015b8.65
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 0x4028a9
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
mov byte [edi], bl
mov dword [ebp - 4], 1
jmp case.0x4015b8.65
push eax
push dword [ebp - 0xc]
call fcn.0040551b
lea eax, [ebp - 0x16c]
push eax
push edi
jmp 0x402a23
xor esi, esi
mov dword [ebp - 8], 0xfffffd66
call fcn.00401455
mov esi, eax
push esi
call fcn.00405386
test eax, eax
push esi
je 0x4028e7
mov esi, 0x409c68
push esi
call fcn.004055bd
jmp 0x402907
push 0x42a400
push 0x409c68
call fcn.004055bd
push eax
call fcn.00405715
push eax
call sub.KERNEL32.dll_lstrcatA
mov esi, 0x409c68
push esi
call fcn.004055df
push esi
call fcn.0040541a
push 2
push 0x40000000
push esi
call fcn.0040543a
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4029ce
mov eax, dword [0x424408]
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 0x4029c0
push ebx
call fcn.00402d0c
push dword [ebp - 0x10]
push edi
call fcn.00402cda
push dword [ebp - 0x24]
push 0x40
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x34], esi
je 0x402998
push dword [ebp - 0x24]
push esi
push ebx
push dword [ebp - 0x28]
call fcn.00402d23
jmp 0x40298b
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.004053fa
add esi, dword [ebp - 0x44]
cmp byte [esi], bl
jne 0x402973
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.00402d23
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x409c68
cmp dword [ebp - 8], ebx
push 0xfffffffffffffff3
pop edi
jge 0x4029e7
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push edi
jmp 0x40235e
xor ecx, ecx
call fcn.0040143f
mov edi, eax
cmp edi, dword [0x4243cc]
jae 0x40289d
mov eax, dword [ebp - 0x24]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x4243c8]
cmp eax, ebx
jl 0x402a30
mov ecx, dword [esi + eax*4]
jne 0x402a2d
add esi, 0x18
push esi
push dword [ebp - 0xc]
call fcn.004055bd
jmp case.0x4015b8.65
push ecx
jmp 0x402aa4
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x402a47
xor ecx, ecx
inc ecx
call fcn.0040143f
mov dword [ebp - 0x28], eax
jmp 0x402a57
push dword [ebp - 0x1c]
lea eax, [esi + 0x18]
push eax
call fcn.004059e8
or byte [esi + 9], 1
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 0x40289d
cmp dword [ebp - 0x20], ebx
je 0x402aae
cmp dword [ebp - 0x24], ebx
je 0x402a9d
push eax
call fcn.0040129d
push ebx
push ebx
call fcn.004011ef
jmp case.0x4015b8.65
push ebx
call fcn.004012e8
push eax
push dword [ebp - 0xc]
call fcn.0040551b
jmp case.0x4015b8.65
cmp dword [ebp - 0x24], ebx
je 0x402ac5
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x4243a8]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015b8.65
mov ecx, dword [0x4243a8]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.004059e8
jmp case.0x4015b8.65
mov eax, dword [0x4219b4]
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 [0x424428], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4