Function at 0x40159d
Capabilities:
Create shortcut via ishelllink
Delete registry value
Move file
Query environment variable
Query or enumerate registry value
Read .ini file
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x4233e4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
shl ecx, 0xa
mov edx, section..ndata
add ecx, edx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x28]
mov dword [0x4090c0], ecx
mov ecx, dword [ebp - 0x2c]
mov edi, esi
shl edi, 0xa
xor ebx, ebx
add ecx, 0xfffffffe
add edi, edx
mov dword [ebp - 4], ebx
cmp ecx, 0x41
ja case.0x4015f5.65
jmp dword [ecx*4 + 0x402b7d]
mov eax, esi
jmp 0x402b75
push ebx
push esi
call fcn.004048f0
mov eax, 0x7fffffff
jmp 0x402b75
inc dword [0x422bb4]
cmp dword [ebp - 8], ebx
je 0x40160a
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40160a
push esi
call fcn.0040137c
dec eax
push ebx
push eax
call fcn.00401398
jmp 0x402b75
push ebx
push esi
call fcn.004048f0
jmp case.0x4015f5.65
xor ecx, ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp - 0x34], edx
jg 0x401659
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015f5.65
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f5.65
mov eax, esi
shl eax, 2
cmp dword [ebp - 0x20], ebx
jne 0x4016a3
mov ecx, dword [eax + 0x4234a0]
mov dword [eax + 0x423460], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov dword [ecx*4 + 0x4234a0], eax
jmp case.0x4015f5.65
mov ecx, dword [eax + 0x423460]
mov dword [eax + 0x4234a0], ecx
jmp case.0x4015f5.65
mov esi, dword [ebp - 0x20]
lea esi, [esi*4 + 0x4234a0]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x28]
jmp 0x402b75
push dword [eax*4 + 0x4234a0]
push edi
call fcn.0040591d
jmp case.0x4015f5.65
mov ecx, dword [0x422bc0]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x4016fe
push eax
push ecx
call edi
mov esi, dword [ebp - 0x28]
mov eax, dword [0x422bac]
cmp eax, ebx
je case.0x4015f5.65
push esi
push eax
call edi
jmp case.0x4015f5.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4015f5.65
mov dword [ebp - 4], 1
jmp case.0x4015f5.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
mov edi, eax
push edi
call fcn.004056dc
mov esi, eax
cmp esi, ebx
je 0x4017a4
push 0x5c
push esi
call fcn.00405696
mov esi, eax
mov al, byte [esi]
mov byte [ebp + 0xb], al
mov byte [esi], bl
cmp al, bl
jne 0x40177b
cmp dword [ebp - 0x20], ebx
je 0x40177b
call fcn.00405b83
test eax, eax
je 0x40177b
push edi
call fcn.0040552c
jmp 0x401781
push edi
call fcn.004055ae
cmp eax, ebx
je 0x40179a
cmp eax, 0xb7
jne 0x401797
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40179a
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x401750
cmp dword [ebp - 0x24], ebx
je 0x4017d2
push 0xffffffffffffffe6
call fcn.00401432
push edi
push 0x429800
call fcn.004059bf
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x4015f5.65
inc dword [ebp - 4]
jmp case.0x4015f5.65
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x4015f5.65
xor esi, esi
call fcn.00401460
push eax
call fcn.00405a7b
test eax, eax
je 0x401bc3
mov eax, dword [ebp - 0x24]
jmp 0x402b75
push 0xffffffffffffffd0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401460
push 0x13
pop esi
mov dword [ebp + 8], eax
call fcn.00401460
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40182a
push 0xffffffffffffffe3
jmp 0x4017d4
cmp dword [ebp - 0x20], ebx
je 0x40172e
push edi
call fcn.00405a7b
test eax, eax
je 0x40172e
push dword [ebp + 8]
push edi
call fcn.0040607d
push 0xffffffffffffffe4
jmp 0x4017d4
xor esi, esi
call fcn.00401460
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 0x401892
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40189b
cmp byte [eax], bl
je 0x40189b
push esi
call fcn.00405a7b
cmp eax, ebx
je 0x401892
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.004059bf
jmp 0x40189b
mov byte [edi], bl
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
jne case.0x4015f5.65
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015f5.65
or esi, 0xffffffff
call fcn.00401460
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.0x4015f5.65
mov dword [ebp - 4], 1
mov byte [edi], bl
jmp case.0x4015f5.65
push 0xffffffffffffffef
pop esi
call fcn.00401460
push eax
push edi
call fcn.00405800
jmp 0x401726
push 0x31
pop esi
call fcn.00401460
mov esi, eax
mov eax, dword [ebp - 0x28]
and eax, 7
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
call fcn.004056b2
push esi
mov esi, 0x4090c8
test eax, eax
je 0x401929
push esi
call fcn.004059bf
jmp 0x401940
push 0x429800
push esi
call fcn.004059bf
push eax
call fcn.00405be3
push eax
call fcn.004059db
push esi
call fcn.004059e1
mov edi, 0x4098c8
cmp dword [ebp + 8], 3
jl 0x401982
push esi
call fcn.00405a7b
xor ecx, ecx
cmp eax, ebx
je 0x40196d
lea ecx, [ebp - 0x1c]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jne 0x40198d
push esi
call fcn.004057ab
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.004057d1
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401a21
cmp dword [ebp + 8], ebx
jne 0x401a03
push section..ndata
push edi
call fcn.004059bf
push esi
push section..ndata
call fcn.004059bf
push dword [ebp - 0x14]
push 0x4094c8
call fcn.00405cb9
push edi
push section..ndata
call fcn.004059bf
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x4094c8
call fcn.00405630
sub eax, 4
je 0x40194b
dec eax
je 0x401a16
push esi
push 0xfffffffffffffffa
jmp 0x401605
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.004048f0
cmp dword [ebp + 8], 2
jmp 0x401728
inc dword [0x4234a8]
jmp 0x402b73
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.004048f0
inc dword [0x4234d4]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.00402e7d
dec dword [0x4234d4]
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, eax
jne 0x401a52
cmp dword [ebp - 0x18], 0xffffffff
je 0x401a61
lea eax, [ebp - 0x1c]
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.0x4015f5.65
cmp edi, 0xfffffffe
jne 0x401a8a
push 0xffffffffffffffe9
push esi
call fcn.00405cb9
push dword [ebp - 0xc]
push esi
call fcn.004059db
jmp 0x401a92
push 0xffffffffffffffee
push esi
call fcn.00405cb9
push 0x200010
push esi
call fcn.00405630
jmp 0x40160a
xor esi, esi
call fcn.00401460
push dword [ebp - 0x24]
push eax
call fcn.004060a9
jmp case.0x4015f5.65
push 0x31
pop esi
call fcn.00401460
push dword [ebp - 0x28]
push eax
call fcn.00405630
cmp eax, ebx
je 0x40172e
cmp eax, dword [ebp - 0x20]
jne 0x401add
mov eax, dword [ebp - 0x1c]
jmp 0x402b75
cmp eax, dword [ebp - 0x18]
jne case.0x4015f5.65
mov eax, dword [ebp - 0x14]
jmp 0x402b75
push 0xfffffffffffffff0
pop esi
jmp 0x401aa4
xor esi, esi
inc esi
call fcn.00401460
push eax
call fcn.004059d5
push eax
jmp 0x4016dc
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov esi, eax
mov dword [ebp - 0x44], edx
call fcn.00401443
mov dword [ebp + 8], esi
xor esi, esi
inc esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], eax
call fcn.00401460
mov esi, eax
push esi
call fcn.004059d5
mov byte [edi], bl
cmp dword [ebp - 0x44], ebx
jne 0x401b42
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
je case.0x4015f5.65
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jge 0x401b5f
add ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
jl case.0x4015f5.65
mov ecx, dword [ebp - 8]
cmp ecx, eax
jle 0x401b68
mov ecx, eax
add esi, ecx
push esi
push edi
call fcn.004059bf
cmp dword [ebp + 8], ebx
jge 0x401b84
push edi
call fcn.004059d5
add dword [ebp + 8], eax
jns 0x401b84
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x400
jge case.0x4015f5.65
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp case.0x4015f5.65
push 0x20
pop esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push eax
push edi
cmp dword [ebp - 0x18], ebx
jne 0x401bcb
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401ad5
mov eax, dword [ebp - 0x20]
jmp 0x402b75
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401bbb
xor esi, esi
inc esi
call fcn.00401460
push 0x400
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401bff
cmp dword [ebp - 0x20], ebx
je 0x401c08
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401c08
mov dword [ebp - 4], 1
mov byte [edi], bl
mov byte [edi + 0x3ff], bl
jmp case.0x4015f5.65
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x34], edx
call fcn.00401443
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x14], ebx
jne 0x401c41
cmp esi, eax
jl 0x401ad5
jle 0x401bc3
mov eax, dword [ebp - 0x18]
jmp 0x402b75
cmp esi, eax
jb 0x401ad5
jbe 0x401bc3
jmp 0x401c39
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp - 0x34], edx
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
cmp eax, 0xc
ja case.default.0x401c73
jmp dword [eax*4 + 0x402c85]
add ecx, esi
jmp 0x401cde
sub esi, ecx
jmp case.default.0x401c73
imul ecx, esi
jmp 0x401cde
cmp ecx, ebx
je 0x401c94
mov eax, esi
cdq
idiv ecx
mov ecx, eax
jmp 0x401cde
xor ecx, ecx
mov dword [ebp - 4], 1
jmp 0x401cde
or ecx, esi
jmp 0x401cde
and ecx, esi
jmp 0x401cde
xor ecx, esi
jmp 0x401cde
xor ecx, ecx
cmp esi, ebx
sete cl
jmp 0x401cde
cmp esi, ebx
jne 0x401cbc
cmp ecx, ebx
je 0x401cc5
xor ecx, ecx
inc ecx
jmp 0x401cde
cmp esi, ebx
jne 0x401cb8
xor ecx, ecx
jmp 0x401cde
cmp ecx, ebx
je 0x401c94
mov eax, esi
cdq
idiv ecx
mov ecx, edx
jmp 0x401cde
shl esi, cl
jmp case.default.0x401c73
sar esi, cl
mov ecx, esi
push ecx
jmp 0x4016dc
xor esi, esi
inc esi
call fcn.00401460
push 2
pop ecx
mov esi, eax
call fcn.00401443
push eax
push esi
push edi
mov dword [ebp - 0x34], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4015f5.65
mov ecx, dword [ebp - 0x20]
mov esi, dword [0x4090c4]
cmp ecx, ebx
je 0x401d66
dec ecx
cmp esi, ebx
je 0x401d26
mov esi, dword [esi]
cmp ecx, ebx
jne 0x401d17
cmp esi, ebx
jne 0x401d39
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405cb9
push eax
jmp 0x401a98
lea edi, [esi + 4]
push edi
mov esi, 0x4090c8
push esi
call fcn.004059bf
mov eax, dword [0x4090c4]
add eax, 4
push eax
push edi
call fcn.004059bf
mov eax, dword [0x4090c4]
push esi
add eax, 4
push eax
jmp 0x40294c
cmp eax, ebx
je 0x401d89
cmp esi, ebx
je 0x40172e
lea eax, [esi + 4]
push eax
push edi
call fcn.004059bf
mov eax, dword [esi]
mov dword [0x4090c4], eax
push esi
jmp 0x4021c3
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405cb9
mov eax, dword [0x4090c4]
mov dword [esi], eax
mov dword [0x4090c4], esi
jmp case.0x4015f5.65
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], eax
call fcn.00401443
test byte [ebp - 0x14], 1
mov dword [ebp - 0x34], edx
mov dword [ebp + 8], eax
je 0x401de3
push 0x33
pop esi
call fcn.00401460
mov dword [ebp - 8], eax
test byte [ebp - 0x14], 2
je 0x401df4
push 0x44
pop esi
call fcn.00401460
mov dword [ebp + 8], eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401e4a
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp - 0x34], edx
call fcn.00401443
mov ecx, dword [ebp - 0x14]
sar ecx, 2
mov dword [ebp - 0x34], edx
cmp ecx, ebx
je 0x401e3a
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 0x401e83
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e80
xor esi, esi
inc esi
call fcn.00401460
push 0x12
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401460
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x30]
push ecx
movsx ecx, byte [eax]
neg ecx
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 - 0x28], ebx
jl case.0x4015f5.65
push dword [ebp - 0xc]
jmp 0x4016dc
xor ecx, ecx
call fcn.00401443
push eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017eb
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x34], edx
call fcn.00401443
push esi
push eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401b01
mov ecx, dword [0x423428]
lea esi, [ecx + eax]
xor ecx, ecx
call fcn.00401443
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015f5.65
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x20]
push 0x10
push eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x20]
push eax
push ebx
xor esi, esi
call fcn.00401460
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.0x4015f5.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f5.65
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
push 2
pop ecx
mov esi, eax
call fcn.00401443
push 0x48
push 0x5a
push esi
mov ebx, eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp - 8]
neg eax
mov dword [0x40a4c8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp - 0x24]
mov dword [0x40a4d8], eax
mov al, byte [ebp - 0x18]
mov cl, al
and cl, 1
mov byte [0x40a4dc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a4e4
mov dword [ebp - 0x34], edx
mov byte [0x40a4dd], cl
mov byte [0x40a4de], al
mov byte [0x40a4df], 1
call fcn.00405cb9
push 0x40a4c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401b01
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp - 0x34], edx
call fcn.00401443
push eax
mov dword [ebp - 0x34], edx
push esi
cmp dword [ebp - 0x1c], ebx
jne 0x402005
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f5.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f5.65
xor esi, esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.00401460
push 0x15
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffec
call fcn.00401432
movsx eax, byte [ebx]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ebx
push 0x429800
push eax
movsx eax, byte [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015f5.65
jmp 0x40172e
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004048f0
push esi
call fcn.004055cb
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40172e
cmp dword [ebp - 0x20], ebx
je 0x4020e9
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x4020ba
push 0xf
call fcn.00405b4a
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x4020ac
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], ebx
jl 0x4020dd
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040591d
jmp 0x4020e9
cmp dword [ebp - 8], ebx
je 0x4020e9
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x40276a
push 2
pop esi
call fcn.00401460
push eax
call fcn.00405a7b
mov esi, eax
cmp esi, ebx
je 0x402118
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.0040591d
push dword [esi + 0x18]
jmp 0x4016dc
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x40172e
push 0xffffffffffffffee
pop esi
call fcn.00401460
lea ecx, [ebp - 0x34]
push ecx
push eax
push 9
mov dword [ebp - 0x30], eax
call fcn.00405b10
call eax
mov esi, eax
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
mov dword [ebp - 4], 1
cmp esi, ebx
je case.0x4015f5.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
je case.0x4015f5.65
push 0xa
call fcn.00405b10
push 0xb
mov dword [ebp - 0x50], eax
call fcn.00405b10
push dword [ebp + 8]
mov dword [ebp - 0x4c], eax
push esi
push ebx
push dword [ebp - 0x30]
call dword [ebp - 0x50]
test eax, eax
je 0x4021c0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 8]
push eax
push 0x407298
push dword [ebp + 8]
call dword [ebp - 0x4c]
test eax, eax
je 0x4021c0
mov eax, dword [ebp - 8]
push dword [eax + 8]
push edi
call fcn.0040591d
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.0040591d
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f5.65
cmp dword [0x4234d8], ebx
mov dword [ebp - 4], 1
jl 0x402298
push 0xfffffffffffffff0
pop esi
call fcn.00401460
xor esi, esi
inc esi
mov edi, eax
call fcn.00401460
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x402208
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
jne 0x402218
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
je 0x402291
push dword [ebp + 8]
push esi
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
cmp edi, ebx
je 0x402264
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x402246
push dword [ebp - 0x20]
call fcn.00401432
call edi
test eax, eax
je 0x40226e
mov dword [ebp - 4], 1
jmp 0x40226e
push section..data
push 0x4090c4
push section..ndata
push 0x400
push dword [ebp - 8]
call edi
add esp, 0x14
jmp 0x40226e
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.004048f0
cmp dword [ebp - 0x1c], ebx
jne case.0x4015f5.65
push esi
call fcn.00403717
test eax, eax
je case.0x4015f5.65
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f5.65
push 0xfffffffffffffff6
jmp 0x4017d4
push 0xffffffffffffffe7
jmp 0x4017d4
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401460
push 2
pop esi
mov dword [ebp - 8], eax
call fcn.00401460
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x54], eax
call fcn.00401460
push 0x45
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401460
push dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
and ecx, 0xfff
mov dword [ebp - 0x5c], ecx
mov ecx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0x8000
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x4c], ecx
and edi, 7
mov dword [ebp - 0x50], eax
call fcn.004056b2
test eax, eax
jne 0x402316
push 0x21
pop esi
call fcn.00401460
lea eax, [ebp + 8]
push eax
push 0x4076fc
push 1
push ebx
push 0x40771c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4023ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x40770c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4023f2
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp dword [ebp - 0x4c], ebx
jne 0x402371
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x429800
push eax
call dword [ecx + 0x24]
cmp edi, ebx
je 0x40237f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x50]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0x30]
cmp byte [ecx], bl
je 0x40239f
push dword [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp esi, ebx
jl 0x4023e9
push 0x400
push dword [ebp - 8]
mov esi, 0x80004005
push 0xffffffffffffffff
push dword [ebp - 0x34]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4023e9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
push dword [ebp - 8]
push eax
call dword [ecx + 0x18]
mov esi, 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 esi, ebx
jge 0x40240d
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017d4
push 0xfffffffffffffff4
jmp 0x4017d4
xor esi, esi
call fcn.00401460
push 0x11
pop esi
mov edi, eax
call fcn.00401460
push 0x23
pop esi
mov dword [ebp + 8], eax
call fcn.00401460
push edi
mov dword [ebp - 0x34], eax
call fcn.00405a7b
test eax, eax
jne 0x40244a
push ebx
push 0xfffffffffffffff9
call fcn.004048f0
jmp 0x40172e
mov eax, dword [ebp - 8]
push edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 2
call fcn.004059d5
mov esi, dword [ebp + 8]
push esi
mov byte [eax + edi + 1], bl
call fcn.004059d5
mov byte [eax + esi + 1], bl
mov eax, dword [ebp - 0x34]
mov cx, word [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x62], eax
mov word [ebp - 0x6c], cx
call fcn.004048f0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015f5.65
jmp 0x40243d
cmp esi, 0xbadf00d
jne 0x401d26
inc dword [0x4234b4]
jmp case.0x4015f5.65
xor edi, edi
mov dword [ebp + 8], ebx
cmp esi, ebx
je 0x4024c9
xor esi, esi
call fcn.00401460
mov edi, eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4024d8
push 0x11
pop esi
call fcn.00401460
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x4024e7
push 0x22
pop esi
call fcn.00401460
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401460
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x401726
push 0xa
pop eax
xor esi, esi
inc esi
mov word [ebp + 8], ax
call fcn.00401460
push 0x12
pop esi
mov dword [ebp - 0x44], eax
call fcn.00401460
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401460
push eax
push 0x3ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0xa
jmp 0x4018d3
cmp dword [ebp - 0x18], ebx
jne 0x402575
push 2
call fcn.0040154e
mov edi, eax
cmp edi, ebx
je 0x40172e
push 0x33
pop esi
call fcn.00401460
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4025a0
push 0x22
pop esi
call fcn.00401460
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x402590
mov ecx, dword [0x4234a4]
add ecx, 0x80000001
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
push eax
push ecx
call fcn.00401498
mov esi, eax
cmp esi, ebx
je case.0x4015f5.65
jmp 0x40172e
cmp esi, ebx
je 0x4025b5
mov edi, esi
jmp 0x4025c1
mov edi, dword [0x4234a4]
add edi, 0x80000001
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
push 2
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401460
push 0x11
pop esi
mov dword [ebp - 0x44], eax
call fcn.00401460
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x4234d0]
push ebx
or ecx, 2
push ecx
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.0x4015f5.65
cmp dword [ebp + 8], 1
mov edi, 0x4098c8
jne 0x402624
push 0x23
pop esi
call fcn.00401460
push edi
call fcn.004059d5
inc eax
cmp dword [ebp + 8], 4
jne 0x40263d
push 3
pop ecx
call fcn.00401443
push 4
mov dword [0x4098c8], eax
mov dword [ebp - 0x54], edx
pop eax
cmp dword [ebp + 8], 3
jne 0x402652
push 0xc00
push edi
push ebx
push dword [ebp - 0x1c]
call fcn.00402e7d
push eax
push edi
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x44]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40266b
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f5.65
push 0x20019
call fcn.0040154e
push 0x33
pop esi
mov dword [ebp - 8], eax
call fcn.00401460
mov byte [edi], bl
cmp dword [ebp - 8], ebx
je 0x40172e
lea ecx, [ebp - 0x34]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4026f2
cmp dword [ebp + 8], 4
je 0x4026da
cmp dword [ebp + 8], ecx
je 0x4026cc
cmp dword [ebp + 8], 2
jne 0x4026f2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov byte [edi + 0x3ff], bl
jmp 0x40266b
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], ebx
push edi
sete al
mov dword [ebp - 4], eax
call fcn.0040591d
jmp 0x40266b
mov byte [edi], bl
mov dword [ebp - 4], ecx
jmp 0x40266b
push 0x20019
call fcn.0040154e
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov dword [ebp - 0x34], edx
mov byte [edi], bl
cmp esi, ebx
je 0x40172e
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], ebx
je 0x402736
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x40274f
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 0x40172e
mov byte [edi + 0x3ff], bl
push esi
jmp 0x40266e
push edi
call fcn.00405936
cmp eax, ebx
je case.0x4015f5.65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f5.65
push 0xffffffffffffffed
pop esi
call fcn.00401460
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.004057d1
cmp eax, 0xffffffff
jne 0x401b01
mov byte [edi], bl
jmp 0x40172e
cmp dword [ebp - 0x20], ebx
je 0x4027b2
xor esi, esi
inc esi
mov ecx, esi
call fcn.00401443
mov dword [ebp - 0x34], edx
mov byte [0x4094c8], al
jmp 0x4027c2
push 0x11
pop esi
call fcn.00401460
push eax
call fcn.004059d5
mov esi, eax
cmp byte [edi], bl
je 0x40172e
push edi
call fcn.00405936
push esi
push 0x4094c8
push eax
call fcn.00405877
jmp 0x401726
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], eax
jl case.0x4015f5.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402806
mov dword [ebp - 8], ecx
cmp byte [edi], bl
je 0x402890
push edi
mov byte [ebp + 0xb], bl
call fcn.00405936
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x30], eax
jle 0x402890
mov edi, dword [ebp - 0xc]
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x30]
call fcn.00405848
test eax, eax
je 0x402893
cmp dword [ebp - 0x1c], ebx
jne 0x40285a
cmp byte [ebp + 0xb], 0xd
je 0x40286a
cmp byte [ebp + 0xb], 0xa
je 0x40286a
mov al, byte [ebp - 0xd]
mov byte [esi + edi], al
inc esi
mov byte [ebp + 0xb], al
cmp al, bl
je 0x402893
cmp esi, dword [ebp - 8]
jl 0x402822
jmp 0x402893
movzx eax, byte [ebp - 0xd]
push eax
push edi
call fcn.0040591d
jmp 0x402b73
mov al, byte [ebp - 0xd]
cmp byte [ebp + 0xb], al
je 0x402880
cmp al, 0xd
je 0x40287a
cmp al, 0xa
jne 0x402880
mov byte [esi + edi], al
inc esi
jmp 0x402893
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402893
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x401728
cmp byte [edi], bl
je case.0x4015f5.65
push 2
pop ecx
call fcn.00401443
push dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
push ebx
push eax
push edi
call fcn.00405936
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], ebx
jl case.0x4015f5.65
push eax
push dword [ebp - 0xc]
jmp 0x4016dd
push edi
call fcn.00405936
cmp eax, ebx
je case.0x4015f5.65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f5.65
push dword [ebp - 0xc]
call fcn.00405936
cmp eax, ebx
je 0x4018d9
lea ecx, [ebp - 0x1bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018d9
jmp 0x402944
push 2
pop esi
call fcn.00401460
lea ecx, [ebp - 0x1bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40293b
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
jmp 0x402792
push eax
push dword [ebp - 0xc]
call fcn.0040591d
lea eax, [ebp - 0x190]
push eax
push edi
call fcn.004059bf
jmp case.0x4015f5.65
push 0xfffffffffffffff0
pop esi
mov dword [ebp - 8], 0xfffffd66
call fcn.00401460
mov edi, eax
push edi
mov dword [ebp - 0x44], edi
call fcn.004056b2
test eax, eax
jne 0x40297c
push 0xffffffffffffffed
pop esi
call fcn.00401460
push edi
call fcn.004057ab
push 2
push 0x40000000
push edi
call fcn.004057d1
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402a32
mov eax, dword [0x42344c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x30], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x402a29
push ebx
call fcn.00402cff
push dword [ebp - 0x30]
push edi
call fcn.00402ce9
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, ebx
je 0x402a07
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.00402e7d
jmp 0x4029fa
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x58], ecx
call fcn.00405787
add esi, dword [ebp - 0x58]
cmp byte [esi], bl
jne 0x4029e2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x30]
push edi
push dword [ebp + 8]
call fcn.00405877
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402e7d
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
push 0xfffffffffffffff3
pop esi
jge 0x402a4d
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push esi
jmp 0x4017d4
xor ecx, ecx
call fcn.00401443
mov edi, eax
mov dword [ebp - 0x34], edx
cmp edi, dword [0x42340c]
jae 0x40172e
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x423408]
cmp eax, ebx
jl 0x402a97
mov ecx, dword [esi + eax*4]
jne 0x402a91
add esi, 0x18
push esi
push dword [ebp - 0xc]
jmp 0x40294c
push ecx
jmp 0x4028cc
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x402ab1
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
jmp 0x402ac4
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00405cb9
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x1c], ebx
je case.0x4015f5.65
push edi
call fcn.00401186
jmp case.0x4015f5.65
xor ecx, ecx
call fcn.00401443
mov dword [ebp - 0x34], edx
cmp eax, 0x20
jae 0x40172e
cmp dword [ebp - 0x1c], ebx
je 0x402b18
cmp dword [ebp - 0x20], ebx
je 0x402b0d
push eax
call fcn.004012a6
push ebx
push ebx
call fcn.004011f8
jmp case.0x4015f5.65
push ebx
call fcn.004012f1
jmp 0x4028cb
cmp dword [ebp - 0x20], ebx
je 0x402b2f
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x4233ec]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f5.65
mov ecx, dword [0x4233ec]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.00405cb9
jmp case.0x4015f5.65
mov eax, dword [0x4209e8]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x28], ebx
je case.0x4015f5.65
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x4234a8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4