Function at 0x4015d0
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1cc
mov eax, dword [0x4243e8]
and dword [ebp + 0x70], 0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 9
pop ecx
lea edi, [ebp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x48]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x44]
mov edi, eax
mov ecx, 0x425000
mov ebx, edx
shl edi, 0xa
add edi, ecx
shl ebx, 0xa
add ebx, ecx
lea ecx, [ebp + 0x44]
mov dword [0x40a0c0], ecx
mov ecx, dword [ebp + 0x40]
add ecx, 0xfffffffe
cmp ecx, 0x41
ja case.0x401626.65
jmp dword [ecx*4 + 0x402b90]
push 0
push eax
call fcn.00404b37
mov eax, 0x7fffffff
jmp case.0x401626.2
inc dword [0x423bb4]
cmp dword [ebp + 0x6c], 0
je 0x401635
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401635
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.00401398
jmp case.0x401626.2
push 0
push eax
call fcn.00404b37
jmp case.0x401626.65
xor ecx, ecx
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x30], edx
jg 0x401688
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401626.65
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401626.65
shl eax, 2
cmp dword [ebp + 0x4c], 0
jne 0x4016d1
mov ecx, dword [eax + 0x4244a0]
mov dword [eax + 0x424460], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp + 0x44]
mov dword [ebp + 0x30], edx
mov dword [ecx*4 + 0x4244a0], eax
jmp case.0x401626.65
mov ecx, dword [eax + 0x424460]
mov dword [eax + 0x4244a0], ecx
jmp case.0x401626.65
mov edx, dword [ebp + 0x4c]
lea edx, [edx*4 + 0x4244a0]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp + 0x50]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 + 0x44]
jmp case.0x401626.2
push dword [edx*4 + 0x4244a0]
push edi
call fcn.00405c5d
jmp case.0x401626.65
mov ecx, dword [0x423bc0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x40172c
push edx
push ecx
call esi
mov eax, dword [ebp + 0x44]
mov ecx, dword [0x423bac]
test ecx, ecx
je case.0x401626.65
push eax
push ecx
call esi
jmp case.0x401626.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x401626.65
mov dword [ebp + 0x70], 1
jmp case.0x401626.65
push 0xfffffffffffffff0
pop esi
call fcn.00401460
mov edi, eax
push edi
call fcn.0040593c
mov esi, eax
test esi, esi
je 0x4017cf
push 0x5c
push esi
call fcn.004058f6
mov esi, eax
mov bl, byte [esi]
mov byte [esi], 0
test bl, bl
jne 0x4017a9
cmp dword [ebp + 0x4c], 0
je 0x4017a9
call fcn.00405f05
test eax, eax
je 0x4017a9
push edi
call fcn.00405774
jmp 0x4017af
push edi
call fcn.004057f6
test eax, eax
je 0x4017c8
cmp eax, 0xb7
jne 0x4017c5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4017c8
inc dword [ebp + 0x70]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x40177f
cmp dword [ebp + 0x48], 0
je 0x4017fe
push 0xffffffffffffffe6
call fcn.00401432
push edi
push 0x42a800
call fcn.00405cff
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x401626.65
inc dword [ebp + 0x70]
jmp case.0x401626.65
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x401626.65
xor esi, esi
call fcn.00401460
push eax
call fcn.00405dbb
test eax, eax
je 0x401be8
mov eax, dword [ebp + 0x48]
jmp case.0x401626.2
push 0xffffffffffffffd0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401460
push 0x13
pop esi
mov ebx, eax
call fcn.00401460
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x401853
push 0xffffffffffffffe3
jmp 0x401800
cmp dword [ebp + 0x4c], 0
je 0x40175d
push edi
call fcn.00405dbb
test eax, eax
je 0x40175d
push ebx
push edi
call fcn.0040643b
push 0xffffffffffffffe4
jmp 0x401800
xor esi, esi
call fcn.00401460
mov esi, eax
lea eax, [ebp + 0x7c]
push eax
push ebx
mov edi, 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4018b9
mov eax, dword [ebp + 0x7c]
cmp eax, esi
jbe 0x4018c3
cmp byte [eax], 0
je 0x4018c3
push esi
call fcn.00405dbb
test eax, eax
je 0x4018b9
add eax, 0x2c
push eax
push dword [ebp + 0x7c]
call fcn.00405cff
jmp 0x4018c3
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
cmp dword [ebp + 0x4c], 0
jne case.0x401626.65
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x401626.65
or esi, 0xffffffff
call fcn.00401460
lea ecx, [ebp + 0x7c]
push ecx
push edi
push 0x400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x401626.65
mov dword [ebp + 0x70], 1
mov byte [edi], 0
jmp case.0x401626.65
push 0xffffffffffffffef
pop esi
call fcn.00401460
push eax
push edi
call fcn.00405a60
jmp 0x401755
push 0x31
pop esi
call fcn.00401460
mov esi, eax
mov eax, dword [ebp + 0x44]
and eax, 7
push esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x7c], eax
call fcn.00405912
push esi
mov esi, 0x40a0c8
test eax, eax
je 0x401951
push esi
call fcn.00405cff
jmp 0x401968
push 0x42a800
push esi
call fcn.00405cff
push eax
call fcn.00405f65
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.00405d21
mov ebx, 0x40a8c8
mov edi, 0x425000
cmp dword [ebp + 0x7c], 3
jl 0x4019af
push esi
call fcn.00405dbb
xor ecx, ecx
test eax, eax
je 0x40199a
lea ecx, [ebp + 0x54]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x7c], 0
jne 0x4019bb
push esi
call fcn.00405a0b
xor eax, eax
cmp dword [ebp + 0x7c], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405a31
mov dword [ebp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x401a44
cmp dword [ebp + 0x7c], 0
jne 0x401a26
push edi
push ebx
call fcn.00405cff
push esi
push edi
call fcn.00405cff
push dword [ebp + 0x5c]
push 0x40a4c8
call fcn.0040607a
push ebx
push edi
call fcn.00405cff
mov eax, dword [ebp + 0x44]
sar eax, 3
push eax
push 0x40a4c8
call fcn.00405890
sub eax, 4
je 0x401978
dec eax
je 0x401a39
push esi
push 0xfffffffffffffffa
jmp 0x401630
push dword [ebp + 0x68]
push 0xffffffffffffffe2
call fcn.00404b37
cmp dword [ebp + 0x7c], 2
jmp 0x401757
inc dword [0x4244a8]
jmp 0x402b82
push dword [ebp + 0x68]
push 0xffffffffffffffea
call fcn.00404b37
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
inc dword [0x4244d4]
xor edi, edi
push edi
push edi
push dword [ebp + 0x6c]
push ecx
push eax
call fcn.00402ebf
dec dword [0x4244d4]
cmp dword [ebp + 0x54], 0xffffffff
mov ebx, eax
jne 0x401a7f
cmp dword [ebp + 0x58], 0xffffffff
je 0x401a8e
lea eax, [ebp + 0x54]
push eax
push edi
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge case.0x401626.65
cmp ebx, 0xfffffffe
jne 0x401ab7
push 0xffffffffffffffe9
push esi
call fcn.0040607a
push dword [ebp + 0x68]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401abf
push 0xffffffffffffffee
push esi
call fcn.0040607a
push 0x200010
push esi
call fcn.00405890
jmp 0x401635
xor esi, esi
call fcn.00401460
push dword [ebp + 0x48]
push eax
call fcn.00406467
jmp case.0x401626.65
push 0x31
pop esi
call fcn.00401460
push dword [ebp + 0x44]
push eax
call fcn.00405890
test eax, eax
je 0x40175d
cmp eax, dword [ebp + 0x4c]
jne 0x401b0a
mov eax, dword [ebp + 0x50]
jmp case.0x401626.2
cmp eax, dword [ebp + 0x54]
jne case.0x401626.65
mov eax, dword [ebp + 0x58]
jmp case.0x401626.2
push 0xfffffffffffffff0
pop esi
jmp 0x401ad1
xor esi, esi
inc esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x40170a
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov esi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
mov dword [ebp + 0x7c], esi
xor esi, esi
inc esi
mov ebx, eax
mov dword [ebp + 0x38], edx
call fcn.00401460
push eax
mov dword [ebp + 0x68], eax
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp + 0x30], 0
mov byte [edi], 0
mov esi, eax
je 0x401b70
mov esi, dword [ebp + 0x7c]
test esi, esi
je case.0x401626.65
test ebx, ebx
jge 0x401b84
add ebx, eax
js case.0x401626.65
cmp ebx, eax
jle 0x401b8a
mov ebx, eax
mov eax, dword [ebp + 0x68]
add eax, ebx
push eax
push edi
call fcn.00405cff
test esi, esi
jge 0x401bab
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401bab
and dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jge case.0x401626.65
mov byte [esi + edi], 0
jmp case.0x401626.65
push 0x20
pop esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
cmp dword [ebp + 0x54], 0
push eax
push edi
jne 0x401bf0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401b02
mov eax, dword [ebp + 0x4c]
jmp case.0x401626.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401be0
xor esi, esi
inc esi
call fcn.00401460
push 0x400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401c25
cmp dword [ebp + 0x4c], 0
je 0x401c2b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401c2b
mov dword [ebp + 0x70], esi
mov byte [edi], 0
mov byte [edi + 0x3ff], 0
jmp case.0x401626.65
mov esi, dword [ebp + 0x58]
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov edi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
mov dword [ebp + 0x30], edx
test esi, esi
jne 0x401c67
cmp edi, eax
jl 0x401b02
jle 0x401be8
mov eax, dword [ebp + 0x54]
jmp case.0x401626.2
cmp edi, eax
jb 0x401b02
jbe 0x401be8
jmp 0x401c5f
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x30], edx
cmp eax, 0xd
ja case.default.0x401c99
jmp dword [eax*4 + 0x402c98]
add esi, ecx
jmp case.default.0x401c99
sub esi, ecx
jmp case.default.0x401c99
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c99
test ecx, ecx
je 0x401cba
mov eax, esi
cdq
idiv ecx
jmp 0x401cd8
xor esi, esi
mov dword [ebp + 0x70], 1
jmp case.default.0x401c99
or ecx, esi
jmp 0x401cab
and ecx, esi
jmp 0x401cab
xor ecx, esi
jmp 0x401cab
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c99
test esi, esi
jne 0x401ce4
test ecx, ecx
je 0x401ced
xor esi, esi
inc esi
jmp case.default.0x401c99
test esi, esi
jne 0x401ce0
xor esi, esi
jmp case.default.0x401c99
test ecx, ecx
je 0x401cba
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c99
shl esi, cl
jmp case.default.0x401c99
sar esi, cl
jmp case.default.0x401c99
shr esi, cl
push esi
jmp 0x40170a
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 + 0x30], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x401626.65
mov eax, dword [ebp + 0x4c]
mov esi, dword [0x40a0c4]
test eax, eax
je 0x401d91
dec eax
test esi, esi
je 0x401d50
mov esi, dword [esi]
test eax, eax
jne 0x401d41
test esi, esi
jne 0x401d64
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.0040607a
push eax
jmp 0x401ac5
lea edi, [esi + 4]
push edi
mov esi, 0x40a0c8
push esi
call fcn.00405cff
mov eax, dword [0x40a0c4]
add eax, 4
push eax
push edi
call fcn.00405cff
mov eax, dword [0x40a0c4]
push esi
add eax, 4
push eax
jmp 0x40294b
test edx, edx
je 0x401db4
test esi, esi
je 0x40175d
lea eax, [esi + 4]
push eax
push edi
call fcn.00405cff
mov eax, dword [esi]
mov dword [0x40a0c4], eax
push esi
jmp 0x4021e8
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp + 0x44]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040607a
mov eax, dword [0x40a0c4]
mov dword [esi], eax
mov dword [0x40a0c4], esi
jmp case.0x401626.65
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x6c], eax
call fcn.00401443
test byte [ebp + 0x58], 1
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x7c], eax
je 0x401e0e
push 0x33
pop esi
call fcn.00401460
mov dword [ebp + 0x6c], eax
test byte [ebp + 0x58], 2
je 0x401e1f
push 0x44
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x40], 0x21
jne 0x401e76
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
mov ecx, dword [ebp + 0x58]
sar ecx, 2
mov dword [ebp + 0x30], edx
test ecx, ecx
je 0x401e66
lea edx, [ebp + 0x68]
push edx
push ecx
push 0
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x401eab
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401ea8
xor esi, esi
inc esi
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movsx eax, byte [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x44], 0
jl case.0x401626.65
push dword [ebp + 0x68]
jmp 0x40170a
xor ecx, ecx
call fcn.00401443
push eax
mov dword [ebp + 0x30], edx
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x401817
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
push esi
push eax
mov dword [ebp + 0x30], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401b2e
mov eax, dword [0x424428]
xor ecx, ecx
lea esi, [eax + edx]
call fcn.00401443
push esi
push 0xffffffffffffffeb
push eax
mov dword [ebp + 0x30], edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x401626.65
push edx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x30]
imul eax, dword [ebp + 0x4c]
push 0x10
push eax
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x4c]
push eax
xor ebx, ebx
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.0x401626.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x401626.65
push dword [ebp + 0x6c]
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 + 0x30], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push dword [ebp + 0x6c]
neg eax
mov dword [0x40b4c8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp + 0x48]
mov dword [0x40b4d8], eax
mov al, byte [ebp + 0x54]
mov cl, al
and cl, 1
mov byte [0x40b4dc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40b4e4
mov dword [ebp + 0x30], edx
mov byte [0x40b4dd], cl
mov byte [0x40b4de], al
mov byte [0x40b4df], 1
call fcn.0040607a
push 0x40b4c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401b2e
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
mov dword [ebp + 0x30], edx
call fcn.00401443
cmp dword [ebp + 0x50], 0
push eax
mov dword [ebp + 0x30], edx
push esi
jne 0x402030
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x401626.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x401626.65
xor esi, esi
call fcn.00401460
push 0x31
pop esi
mov edi, eax
call fcn.00401460
push 0x22
pop esi
mov dword [ebp + 0x7c], eax
call fcn.00401460
push 0x15
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffec
call fcn.00401432
mov eax, dword [ebp + 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x14], eax
movsx eax, byte [edi]
neg eax
sbb eax, eax
and eax, edi
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 8], eax
movsx eax, byte [ebx]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 0x10], 0x42a800
call fcn.00405856
test eax, eax
je 0x40175d
test byte [ebp - 4], 0x40
je case.0x401626.65
push dword [ebp + 0x30]
call fcn.00405ec3
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x401626.65
xor esi, esi
call fcn.00401460
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404b37
push esi
call fcn.00405813
mov esi, eax
test esi, esi
je 0x40175d
cmp dword [ebp + 0x4c], 0
je 0x402117
push esi
call fcn.00405ec3
cmp dword [ebp + 0x48], 0
jl 0x40210c
push eax
push ebx
call fcn.00405c5d
jmp 0x402117
test eax, eax
je 0x402117
mov dword [ebp + 0x70], 1
push esi
jmp 0x4020c5
push 2
pop esi
call fcn.00401460
push eax
call fcn.00405dbb
mov esi, eax
test esi, esi
je 0x40213f
push dword [esi + 0x14]
push ebx
call fcn.00405c5d
push dword [esi + 0x18]
jmp 0x40170a
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x40175d
push 0xffffffffffffffee
pop esi
call fcn.00401460
lea ecx, [ebp + 0x30]
push ecx
push eax
push 9
mov dword [ebp + 0x6c], eax
call fcn.00405e50
call eax
mov esi, eax
mov byte [edi], 0
mov byte [ebx], 0
mov dword [ebp + 0x70], 1
test esi, esi
je case.0x401626.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x7c], eax
test eax, eax
je case.0x401626.65
push 0xa
call fcn.00405e50
push 0xb
mov dword [ebp - 0x10], eax
call fcn.00405e50
push dword [ebp + 0x7c]
mov dword [ebp + 0x3c], eax
push esi
push 0
push dword [ebp + 0x6c]
call dword [ebp - 0x10]
test eax, eax
je 0x4021e5
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x68]
push eax
push 0x4082a0
push dword [ebp + 0x7c]
call dword [ebp + 0x3c]
test eax, eax
je 0x4021e5
mov eax, dword [ebp + 0x68]
push dword [eax + 8]
push edi
call fcn.00405c5d
mov eax, dword [ebp + 0x68]
push dword [eax + 0xc]
push ebx
call fcn.00405c5d
and dword [ebp + 0x70], 0
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x401626.65
cmp dword [0x4244d8], 0
mov dword [ebp + 0x70], 1
jl 0x4022c0
push 0xfffffffffffffff0
pop esi
call fcn.00401460
xor esi, esi
inc esi
mov edi, eax
call fcn.00401460
xor esi, esi
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], esi
je 0x402230
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x402240
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x4022b9
push dword [ebp + 0x7c]
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
cmp edi, esi
je 0x40228c
mov dword [ebp + 0x70], esi
cmp dword [ebp + 0x4c], esi
je 0x40226e
push dword [ebp + 0x4c]
call fcn.00401432
call edi
test eax, eax
je 0x402296
mov dword [ebp + 0x70], 1
jmp 0x402296
push section..data
push 0x40a0c4
push 0x425000
push 0x400
push dword [ebp + 0x6c]
call edi
add esp, 0x14
jmp 0x402296
push dword [ebp + 0x7c]
push 0xfffffffffffffff7
call fcn.00404b37
cmp dword [ebp + 0x50], esi
jne case.0x401626.65
push ebx
call fcn.0040394d
test eax, eax
je case.0x401626.65
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x401626.65
push 0xfffffffffffffff6
jmp 0x401800
push 0xffffffffffffffe7
jmp 0x401800
push 0xfffffffffffffff0
pop esi
call fcn.00401460
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 0x30], eax
call fcn.00401460
push 2
pop esi
mov dword [ebp + 0x6c], eax
call fcn.00401460
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0xc], eax
call fcn.00401460
push 0x45
pop esi
mov dword [ebp - 0x10], eax
call fcn.00401460
push dword [ebp + 0x6c]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x54]
mov ecx, eax
mov ebx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0xfff
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x14], ecx
and ebx, 0x8000
and edi, 7
mov dword [ebp + 0x3c], eax
call fcn.00405912
test eax, eax
jne 0x40233b
push 0x21
pop esi
call fcn.00401460
lea eax, [ebp + 0x7c]
push eax
push 0x408714
push 1
push 0
push 0x408734
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402427
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x68]
push edx
push 0x408724
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40241a
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test ebx, ebx
jne 0x402396
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push 0x42a800
push eax
call dword [ecx + 0x24]
test edi, edi
je 0x4023a4
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0x10]
cmp byte [ecx], 0
je 0x4023c5
push dword [ebp - 0x14]
mov eax, dword [ebp + 0x7c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 0x7c]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jl 0x402411
push 0x400
push dword [ebp + 0x6c]
mov esi, 0x80004005
push 0xffffffffffffffff
push dword [ebp + 0x30]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402411
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x6c]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jge 0x402435
mov dword [ebp + 0x70], 1
push 0xfffffffffffffff0
jmp 0x401800
push 0xfffffffffffffff4
jmp 0x401800
xor esi, esi
call fcn.00401460
push 0x11
pop esi
mov edi, eax
call fcn.00401460
push 0x23
pop esi
mov ebx, eax
call fcn.00401460
push edi
mov esi, eax
call fcn.00405dbb
test eax, eax
jne 0x402471
push 0
push 0xfffffffffffffff9
call fcn.00404b37
jmp 0x40175d
mov eax, dword [ebp + 0x6c]
push edi
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], 2
call sub.KERNEL32.dll_lstrlenA
push ebx
mov byte [eax + edi + 1], 0
call sub.KERNEL32.dll_lstrlenA
mov byte [eax + ebx + 1], 0
mov ax, word [ebp + 0x4c]
push esi
push 0
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x2e], esi
mov word [ebp + 0x24], ax
call fcn.00404b37
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x401626.65
jmp 0x402463
cmp eax, 0xbadf00d
jne 0x401d50
inc dword [0x4244b4]
jmp case.0x401626.65
xor ebx, ebx
xor edi, edi
mov dword [ebp + 0x7c], ebx
cmp eax, ebx
je 0x4024ee
xor esi, esi
call fcn.00401460
mov edx, dword [ebp + 0x48]
mov edi, eax
test edx, edx
je 0x4024fd
push 0x11
pop esi
call fcn.00401460
mov dword [ebp + 0x7c], eax
cmp dword [ebp + 0x54], ebx
je 0x40250c
push 0x22
pop esi
call fcn.00401460
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401460
push eax
push ebx
push dword [ebp + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x401755
push 0xa
pop eax
xor esi, esi
inc esi
mov word [ebp + 0x7c], ax
call fcn.00401460
push 0x12
pop esi
mov ebx, eax
call fcn.00401460
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 0x30], eax
call fcn.00401460
push eax
push 0x3ff
push edi
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0xa
jmp 0x4018fa
cmp dword [ebp + 0x54], 0
mov edi, edx
jne 0x40259b
push 2
pop eax
call fcn.004014aa
mov edi, eax
test edi, edi
je 0x40175d
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 0x4025b3
push 0x22
pop esi
call fcn.00401460
mov ecx, dword [ebp + 0x54]
sar ecx, 1
push ecx
push edi
mov esi, eax
call fcn.00401591
mov esi, eax
test esi, esi
je case.0x401626.65
jmp 0x40175d
mov edi, eax
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x5c]
push 2
pop esi
mov dword [ebp + 0x38], eax
call fcn.00401460
push 0x11
pop esi
mov dword [ebp - 0xc], eax
call fcn.00401460
lea ecx, [ebp + 0x30]
push ecx
push 0x100022
push eax
mov eax, edi
mov dword [ebp + 0x70], 1
call fcn.00401498
push eax
call fcn.00405bb3
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, dword [ebp + 0x30]
je case.0x401626.65
xor eax, eax
cmp dword [ebp + 0x7c], 1
mov ebx, 0x40a8c8
jne 0x40262c
push 0x23
pop esi
call fcn.00401460
push ebx
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp dword [ebp + 0x7c], 4
jne 0x402645
push 3
pop ecx
call fcn.00401443
push 4
mov dword [0x40a8c8], eax
mov dword [ebp - 0x14], edx
pop eax
cmp dword [ebp + 0x7c], 3
jne 0x402663
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 0xc00
push ebx
push 0
push ecx
push eax
call fcn.00402ebf
push eax
push ebx
push dword [ebp + 0x38]
push 0
push dword [ebp - 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40267b
and dword [ebp + 0x70], eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x401626.65
mov eax, 0x20019
call fcn.004014aa
push 0x33
pop esi
mov ebx, eax
call fcn.00401460
mov byte [edi], 0
test ebx, ebx
je 0x40175d
lea ecx, [ebp + 0x30]
push ecx
push edi
lea ecx, [ebp + 0x7c]
push ecx
push 0
push eax
push ebx
mov dword [ebp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4026fc
cmp dword [ebp + 0x7c], 4
je 0x4026e7
cmp dword [ebp + 0x7c], ecx
je 0x4026d8
cmp dword [ebp + 0x7c], 2
jne 0x4026fc
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov byte [edi + 0x3ff], 0
jmp 0x402702
push dword [edi]
xor eax, eax
cmp dword [ebp + 0x54], eax
push edi
sete al
mov dword [ebp + 0x70], eax
call fcn.00405c5d
jmp 0x402702
mov byte [edi], 0
mov dword [ebp + 0x70], ecx
push ebx
jmp 0x40267c
mov eax, 0x20019
call fcn.004014aa
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov dword [ebp + 0x30], edx
xor edx, edx
mov byte [edi], 0
cmp esi, edx
je 0x40175d
mov ecx, 0x3ff
mov dword [ebp + 0x7c], ecx
cmp dword [ebp + 0x54], edx
je 0x402745
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402761
push edx
push edx
push edx
push edx
lea ecx, [ebp + 0x7c]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x402761
mov dword [ebp + 0x70], 1
mov byte [edi + 0x3ff], 0
push esi
jmp 0x40267c
push edi
call fcn.00405c76
test eax, eax
je case.0x401626.65
push eax
jmp 0x4020c5
push 0xffffffffffffffed
pop esi
call fcn.00401460
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push eax
call fcn.00405a31
cmp eax, 0xffffffff
jne 0x401b2e
mov byte [edi], 0
jmp 0x40175d
cmp dword [ebp + 0x4c], 0
je 0x4027c1
xor esi, esi
inc esi
mov ecx, esi
call fcn.00401443
mov dword [ebp + 0x30], edx
mov byte [0x40a4c8], al
jmp 0x4027d1
push 0x11
pop esi
call fcn.00401460
push eax
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
cmp byte [edi], 0
je 0x40175d
push edi
call fcn.00405c76
push esi
push 0x40a4c8
push eax
call fcn.00405ad7
jmp 0x401755
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x68], eax
jl case.0x401626.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x402816
mov dword [ebp + 0x68], ecx
cmp byte [edi], 0
je 0x402896
push edi
mov byte [ebp + 0x7f], 0
call fcn.00405c76
cmp dword [ebp + 0x68], esi
mov edi, eax
jle 0x402896
push 1
lea eax, [ebp + 0x67]
push eax
push edi
call fcn.00405aa8
test eax, eax
je 0x402896
cmp dword [ebp + 0x50], 0
jne 0x402863
cmp byte [ebp + 0x7f], 0xd
je 0x402873
cmp byte [ebp + 0x7f], 0xa
je 0x402873
mov al, byte [ebp + 0x67]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0x7f], al
test al, al
je 0x402896
cmp esi, dword [ebp + 0x68]
jl 0x40282c
jmp 0x402896
movzx eax, byte [ebp + 0x67]
push eax
push ebx
call fcn.00405c5d
jmp 0x402b82
mov al, byte [ebp + 0x67]
cmp byte [ebp + 0x7f], al
je 0x402889
cmp al, 0xd
je 0x402883
cmp al, 0xa
jne 0x402889
mov byte [esi + ebx], al
inc esi
jmp 0x402896
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x401757
cmp byte [edi], 0
je case.0x401626.65
push 2
pop ecx
call fcn.00401443
push dword [ebp + 0x50]
mov dword [ebp + 0x30], edx
push 0
push eax
push edi
call fcn.00405c76
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x48], 0
jl case.0x401626.65
push eax
push ebx
jmp 0x40170b
push edi
call fcn.00405c76
test eax, eax
je case.0x401626.65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x401626.65
push ebx
call fcn.00405c76
test eax, eax
je 0x401900
lea ecx, [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401900
jmp 0x402943
push 2
pop esi
call fcn.00401460
lea ecx, [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40293c
mov byte [ebx], 0
jmp 0x40279f
push eax
push ebx
call fcn.00405c5d
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.00405cff
jmp case.0x401626.65
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.00401460
mov edi, eax
push edi
mov dword [ebp + 0x38], edi
call fcn.00405912
test eax, eax
jne 0x402979
push 0xffffffffffffffec
pop esi
call fcn.00401460
push edi
call fcn.00405a0b
push 2
push 0x40000000
push edi
call fcn.00405a31
mov dword [ebp + 0x7c], eax
cmp eax, 0xffffffff
je 0x402a40
mov eax, dword [0x424450]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp + 0x68], eax
call esi
mov edi, eax
test edi, edi
je 0x402a37
push 0
call fcn.00402dd1
push dword [ebp + 0x68]
push edi
call fcn.00402dbb
push dword [ebp + 0x50]
push 0x40
call esi
mov esi, eax
mov dword [ebp + 0x30], esi
test esi, esi
je 0x402a0f
push dword [ebp + 0x58]
mov ecx, dword [ebp + 0x4c]
push dword [ebp + 0x50]
mov eax, dword [ebp + 0x48]
push esi
push 0
push ecx
push eax
call fcn.00402ebf
jmp 0x402a01
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.004059e7
add esi, ebx
cmp byte [esi], 0
jne 0x4029ed
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x68]
push edi
push dword [ebp + 0x7c]
call fcn.00405ad7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x5c]
push 0
push 0
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00402ebf
mov ebx, eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x402a5a
push 0xffffffffffffffef
pop esi
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x70], 1
push esi
jmp 0x401800
xor ecx, ecx
call fcn.00401443
mov edi, eax
mov dword [ebp + 0x30], edx
cmp edi, dword [0x42440c]
jae 0x40175d
mov eax, dword [ebp + 0x4c]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x424408]
test eax, eax
jl 0x402aa2
mov ecx, dword [esi + eax*4]
jne 0x402a9c
add esi, 0x18
push esi
push ebx
jmp 0x40294b
push ecx
jmp 0x4028d3
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp + 0x4c], ecx
je 0x402abc
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x48], eax
jmp 0x402acf
push dword [ebp + 0x54]
lea eax, [esi + 0x18]
push eax
call fcn.0040607a
or dword [esi + 8], 0x100
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
mov dword [esi + eax*4], ecx
cmp dword [ebp + 0x50], 0
je case.0x401626.65
push edi
call fcn.00401186
jmp case.0x401626.65
xor ecx, ecx
call fcn.00401443
mov dword [ebp + 0x30], edx
cmp eax, 0x20
jae 0x40175d
xor esi, esi
cmp dword [ebp + 0x50], esi
je 0x402b26
cmp dword [ebp + 0x4c], esi
je 0x402b1b
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x401626.65
push esi
call fcn.004012f1
jmp 0x4028d2
cmp dword [ebp + 0x4c], esi
je 0x402b3d
mov ecx, dword [ebp + 0x48]
mov edx, dword [0x4243f0]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x401626.65
mov ecx, dword [0x4243f0]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.0040607a
jmp case.0x401626.65
mov ecx, dword [0x4219d8]
xor esi, esi
push esi
and ecx, eax
push ecx
push 0xb
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x44], esi
je case.0x401626.65
push esi
push esi
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x70]
add dword [0x4244a8], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4