Function at 0x40159c
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 [0x447c2c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 4], 0
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov edi, eax
mov ebx, edx
imul edi, edi, 0x2004
imul ebx, ebx, 0x2004
mov ecx, section..ndata
add edi, ecx
add ebx, ecx
lea ecx, [ebp - 0x28]
mov dword [0x4148f4], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffffe
cmp ecx, 0x44
ja case.0x4015f6.67
jmp dword [ecx*4 + 0x402b08]
push 0
push eax
call fcn.0040485c
mov eax, 0x7fffffff
jmp case.0x4015f6.2
inc dword [0x443bf4]
cmp dword [ebp - 0xc], 0
je 0x401605
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401605
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.0040139b
jmp case.0x4015f6.2
push 0
push eax
call fcn.0040485c
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
cmp eax, 1
jg 0x401655
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015f6.67
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f6.67
shl eax, 2
cmp dword [ebp - 0x20], 0
jne 0x40169b
mov ecx, dword [eax + 0x447ce0]
mov dword [eax + 0x447ca0], ecx
xor ecx, ecx
inc ecx
call fcn.00401446
mov ecx, dword [ebp - 0x28]
mov dword [ecx*4 + 0x447ce0], eax
jmp case.0x4015f6.67
mov ecx, dword [eax + 0x447ca0]
mov dword [eax + 0x447ce0], ecx
jmp case.0x4015f6.67
mov edx, dword [ebp - 0x20]
lea edx, [edx*4 + 0x447ce0]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 - 0x28]
jmp case.0x4015f6.2
push dword [edx*4 + 0x447ce0]
jmp 0x402aee
mov ecx, dword [0x443c00]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x4016f0
push edx
push ecx
call esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x443bec]
test ecx, ecx
je case.0x4015f6.67
push eax
push ecx
call esi
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4015f6.67
mov dword [ebp - 4], 1
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
mov edi, eax
push edi
call fcn.004055ad
mov esi, eax
test esi, esi
je 0x401781
push 0x5c
push esi
call fcn.00405567
mov esi, eax
mov bl, byte [esi]
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40177a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401777
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40177a
inc dword [ebp - 4]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x401743
cmp dword [ebp - 0x24], 0
je 0x4017a5
push 0xffffffffffffffe6
call fcn.00401435
push edi
push 0x474058
call fcn.0040582c
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015f6.67
push 0xfffffffffffffff5
call fcn.00401435
jmp case.0x4015f6.67
xor esi, esi
call fcn.0040145c
push eax
call fcn.004058f5
test eax, eax
je 0x401b80
mov eax, dword [ebp - 0x24]
jmp case.0x4015f6.2
push 0xffffffffffffffd0
pop esi
call fcn.0040145c
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.0040145c
push 0x13
pop esi
mov ebx, eax
call fcn.0040145c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4017fa
push 0xffffffffffffffe3
jmp 0x4017a7
cmp dword [ebp - 0x20], 0
je 0x401721
push edi
call fcn.004058f5
test eax, eax
je 0x401721
push ebx
push edi
call fcn.004061b9
push 0xffffffffffffffe4
jmp 0x4017a7
xor esi, esi
call fcn.0040145c
mov esi, eax
lea eax, [ebp + 8]
push eax
push ebx
mov edi, 0x2004
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x401860
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40186a
cmp byte [eax], 0
je 0x40186a
push esi
call fcn.004058f5
test eax, eax
je 0x401860
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.0040582c
jmp 0x40186a
mov byte [ebx], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne case.0x4015f6.67
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015f6.67
or esi, 0xffffffff
call fcn.0040145c
lea ecx, [ebp + 8]
push ecx
push edi
push 0x2004
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4015f6.67
mov dword [ebp - 4], 1
mov byte [edi], 0
jmp case.0x4015f6.67
push 0xffffffffffffffef
pop esi
call fcn.0040145c
push eax
push edi
call fcn.004056cb
jmp 0x401719
push 0x31
pop esi
call fcn.0040145c
mov esi, eax
mov eax, dword [ebp - 0x28]
and eax, 7
push esi
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
call fcn.00405583
push esi
mov esi, 0x40a8e0
test eax, eax
je 0x4018f8
push esi
call fcn.0040582c
jmp 0x40190f
push 0x474058
push esi
call fcn.0040582c
push eax
call fcn.00405cf7
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.0040585b
mov edi, 0x40e8e8
mov ebx, section..ndata
cmp dword [ebp + 8], 3
jl 0x401956
push esi
call fcn.004058f5
xor ecx, ecx
test eax, eax
je 0x401941
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], 0
jne 0x401962
push esi
call fcn.0040567c
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.0040569c
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4019eb
cmp dword [ebp + 8], 0
jne 0x4019cd
push ebx
push edi
call fcn.0040582c
push esi
push ebx
call fcn.0040582c
push dword [ebp - 0x14]
push 0x40c8e4
call fcn.00405dcd
push edi
push ebx
call fcn.0040582c
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x40c8e4
call fcn.00405501
sub eax, 4
je 0x40191f
dec eax
je 0x4019e0
push esi
push 0xfffffffffffffffa
jmp 0x401600
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.0040485c
cmp dword [ebp + 8], 2
jmp 0x40171b
inc dword [0x447ce8]
jmp 0x402afd
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.0040485c
inc dword [0x447d14]
xor edi, edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00402d80
dec dword [0x447d14]
cmp dword [ebp - 0x1c], 0xffffffff
mov ebx, eax
jne 0x401a1e
cmp dword [ebp - 0x18], 0xffffffff
je 0x401a2d
lea eax, [ebp - 0x1c]
push eax
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge case.0x4015f6.67
cmp ebx, 0xfffffffe
jne 0x401a56
push 0xffffffffffffffe9
push esi
call fcn.00405dcd
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a5e
push 0xffffffffffffffee
push esi
call fcn.00405dcd
push 0x200010
push esi
call fcn.00405501
jmp 0x401605
xor esi, esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call fcn.004061ec
jmp case.0x4015f6.67
push 0x31
pop esi
call fcn.0040145c
push dword [ebp - 0x28]
push eax
call fcn.00405501
test eax, eax
je 0x401721
cmp eax, dword [ebp - 0x20]
jne 0x401aa9
mov eax, dword [ebp - 0x1c]
jmp case.0x4015f6.2
cmp eax, dword [ebp - 0x18]
jne case.0x4015f6.67
mov eax, dword [ebp - 0x14]
jmp case.0x4015f6.2
push 0xfffffffffffffff0
pop esi
jmp 0x401a70
xor esi, esi
inc esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x402aed
push 2
pop ecx
call fcn.00401446
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401446
xor esi, esi
inc esi
mov ebx, eax
call fcn.0040145c
cmp dword [ebp - 0x20], 0
mov esi, eax
mov byte [edi], 0
je 0x401b04
cmp dword [ebp + 8], 0
je case.0x4015f6.67
push esi
call sub.KERNEL32.dll_lstrlenA
test ebx, ebx
jge 0x401b16
add ebx, eax
js case.0x4015f6.67
cmp ebx, eax
jle 0x401b1c
mov ebx, eax
add esi, ebx
push esi
push edi
call fcn.0040582c
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4015f6.67
jge 0x401b43
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401b43
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x2004
jge case.0x4015f6.67
mov byte [esi + edi], 0
jmp case.0x4015f6.67
push 0x20
pop esi
call fcn.0040145c
push 0x31
pop esi
mov edi, eax
call fcn.0040145c
cmp dword [ebp - 0x18], 0
push eax
push edi
jne 0x401b88
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401aa1
mov eax, dword [ebp - 0x20]
jmp case.0x4015f6.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401b78
xor esi, esi
inc esi
call fcn.0040145c
push 0x2004
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401bbd
cmp dword [ebp - 0x20], 0
je 0x401bc3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401bc3
mov dword [ebp - 4], esi
mov byte [edi], 0
mov byte [edi + 0x2003], 0
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x14], 0
jne 0x401bf8
cmp esi, eax
jl 0x401aa1
jle 0x401b80
mov eax, dword [ebp - 0x18]
jmp case.0x4015f6.2
cmp esi, eax
jb 0x401aa1
jbe 0x401b80
jmp 0x401bf0
xor ebx, ebx
inc ebx
mov ecx, ebx
call fcn.00401446
push 2
pop ecx
mov esi, eax
call fcn.00401446
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc
ja case.default.0x401c26
jmp dword [eax*4 + 0x402c1c]
add esi, ecx
jmp case.default.0x401c26
sub esi, ecx
jmp case.default.0x401c26
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c26
test ecx, ecx
je 0x401c47
mov eax, esi
cdq
idiv ecx
jmp 0x401c61
xor esi, esi
mov dword [ebp - 4], ebx
jmp case.default.0x401c26
or esi, ecx
jmp case.default.0x401c26
and esi, ecx
jmp case.default.0x401c26
xor esi, ecx
jmp case.default.0x401c26
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c26
test esi, esi
jne 0x401c6d
test ecx, ecx
je 0x401c75
mov esi, ebx
jmp case.default.0x401c26
test esi, esi
jne 0x401c69
xor esi, esi
jmp case.default.0x401c26
test ecx, ecx
je 0x401c47
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c26
shl esi, cl
jmp case.default.0x401c26
sar esi, cl
push esi
jmp 0x402aee
xor esi, esi
inc esi
call fcn.0040145c
push 2
pop ecx
mov esi, eax
call fcn.00401446
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4015f6.67
mov eax, dword [ebp - 0x20]
mov esi, dword [0x40a0a0]
test eax, eax
je 0x401d12
dec eax
test esi, esi
je 0x401cd1
mov esi, dword [esi]
test eax, eax
jne 0x401cc2
test esi, esi
jne 0x401ce5
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00405dcd
push eax
jmp 0x401a64
lea edi, [esi + 4]
push edi
mov esi, 0x40a8e0
push esi
call fcn.0040582c
mov eax, dword [0x40a0a0]
add eax, 4
push eax
push edi
call fcn.0040582c
mov eax, dword [0x40a0a0]
push esi
add eax, 4
push eax
jmp 0x4028c1
test edx, edx
je 0x401d35
test esi, esi
je 0x401721
lea eax, [esi + 4]
push eax
push edi
call fcn.0040582c
mov eax, dword [esi]
mov dword [0x40a0a0], eax
push esi
jmp 0x402121
push 0x2008
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405dcd
mov eax, dword [0x40a0a0]
mov dword [esi], eax
mov dword [0x40a0a0], esi
jmp case.0x4015f6.67
push 3
pop ecx
call fcn.00401446
push 4
pop ecx
mov dword [ebp - 0xc], eax
call fcn.00401446
test byte [ebp - 0x14], 1
mov dword [ebp + 8], eax
je 0x401d89
push 0x33
pop esi
call fcn.0040145c
mov dword [ebp - 0xc], eax
test byte [ebp - 0x14], 2
je 0x401d9a
push 0x44
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401deb
xor ecx, ecx
inc ecx
call fcn.00401446
push 2
pop ecx
mov esi, eax
call fcn.00401446
mov ecx, dword [ebp - 0x14]
sar ecx, 2
test ecx, ecx
je 0x401ddb
lea edx, [ebp - 8]
push edx
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e20
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e1d
xor esi, esi
inc esi
call fcn.0040145c
push 0x12
pop esi
mov ebx, eax
call fcn.0040145c
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 + 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jl case.0x4015f6.67
push dword [ebp - 8]
jmp 0x402aee
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017be
push 2
pop ecx
call fcn.00401446
xor ecx, ecx
push eax
inc ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x402aed
mov eax, dword [0x447c68]
add eax, edx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015f6.67
push edx
push dword [ebp - 0xc]
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 - 0x20]
push 0x10
push eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x20]
push eax
xor ebx, ebx
push ebx
xor esi, esi
call fcn.0040145c
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.0x4015f6.67
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f6.67
push 0x48
push 0x5a
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401446
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x40a0a4], eax
call fcn.00401446
push dword [ebp - 0x24]
mov dword [0x40a0b4], eax
mov al, byte [ebp - 0x18]
mov cl, al
and cl, 1
mov byte [0x40a0b8], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a0c0
mov byte [0x40a0b9], cl
mov byte [0x40a0ba], al
mov byte [0x40a0bb], 1
call fcn.00405dcd
push 0x40a0a4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x402aed
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x1c], 0
push eax
push esi
jne 0x401f7c
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f6.67
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f6.67
xor esi, esi
call fcn.0040145c
push 0x31
pop esi
mov edi, eax
call fcn.0040145c
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.0040145c
push 0x15
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffec
call fcn.00401435
movsx eax, byte [ebx]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ebx
push 0x474058
push eax
movsx eax, byte [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015f6.67
jmp 0x401721
xor esi, esi
call fcn.0040145c
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.0040485c
push esi
call fcn.004054a0
mov dword [ebp + 8], eax
test eax, eax
je 0x401721
cmp dword [ebp - 0x20], 0
je 0x402061
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402032
push 0xf
call fcn.00405953
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x402024
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0
jl 0x402054
push dword [ebp - 8]
push ebx
call fcn.0040578a
jmp 0x402061
cmp dword [ebp - 8], 0
je 0x402061
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4026dd
push 2
pop esi
call fcn.0040145c
push eax
call fcn.004058f5
mov esi, eax
test esi, esi
je 0x40208e
push dword [esi + 0x14]
push ebx
call fcn.0040578a
push dword [esi + 0x18]
jmp 0x402aee
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x401721
push 0xffffffffffffffee
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0xc], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov byte [edi], 0
mov byte [ebx], 0
mov dword [ebp - 4], 1
test esi, esi
je case.0x4015f6.67
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je case.0x4015f6.67
push eax
push esi
push 0
push dword [ebp - 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40211e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
push 0x4082a8
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40211e
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.0040578a
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push ebx
call fcn.0040578a
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f6.67
push 0x11
pop esi
call fcn.0040145c
push 0x2004
push edi
push eax
call fcn.004066f2
add esp, 0xc
jmp 0x401719
push 0x11
pop esi
call fcn.0040145c
push 0x2004
push edi
push eax
call fcn.0040675e
jmp 0x402140
cmp dword [0x447d18], 0
mov dword [ebp - 4], 1
jl 0x40222b
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
xor esi, esi
inc esi
mov edi, eax
call fcn.0040145c
xor esi, esi
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], esi
je 0x40219b
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x4021ab
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x402224
push dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
cmp edi, esi
je 0x4021f7
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], esi
je 0x4021d9
push dword [ebp - 0x20]
call fcn.00401435
call edi
test eax, eax
je 0x402201
mov dword [ebp - 4], 1
jmp 0x402201
push section..data
push 0x40a0a0
push section..ndata
push 0x2004
push dword [ebp - 0xc]
call edi
add esp, 0x14
jmp 0x402201
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.0040485c
cmp dword [ebp - 0x1c], esi
jne case.0x4015f6.67
push ebx
call fcn.0040368e
test eax, eax
je case.0x4015f6.67
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f6.67
push 0xfffffffffffffff6
jmp 0x4017a7
push 0xffffffffffffffe7
jmp 0x4017a7
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040145c
push 2
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x38], eax
call fcn.0040145c
push 0x45
pop esi
mov dword [ebp - 0xc], eax
call fcn.0040145c
push ebx
mov dword [ebp - 0x34], eax
call fcn.00405583
test eax, eax
jne 0x40227a
push 0x21
pop esi
call fcn.0040145c
lea eax, [ebp + 8]
push eax
push 0x408728
push 1
push 0
push 0x408748
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402375
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x408738
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jl 0x402368
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x474058
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x4022ed
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [ebp - 0xc]
cmp byte [ecx], 0
je 0x402312
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
and ebx, esi
push ebx
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test edi, edi
jl 0x40235f
push 0x400
mov esi, 0x40a0e0
push esi
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov edi, 0x80004005
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40235f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 8]
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]
test edi, edi
jge 0x402383
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017a7
push 0xfffffffffffffff4
jmp 0x4017a7
xor esi, esi
call fcn.0040145c
push 0x11
pop esi
mov edi, eax
call fcn.0040145c
push 0x23
pop esi
mov ebx, eax
call fcn.0040145c
push edi
mov esi, eax
call fcn.004058f5
test eax, eax
jne 0x4023bf
push 0
push 0xfffffffffffffff9
call fcn.0040485c
jmp 0x401721
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 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 - 0x20]
push esi
push 0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x3e], esi
mov word [ebp - 0x48], ax
call fcn.0040485c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015f6.67
jmp 0x4023b1
cmp eax, 0xbadf00d
jne 0x401cd1
inc dword [0x447cf4]
jmp case.0x4015f6.67
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x40243c
xor esi, esi
call fcn.0040145c
mov edx, dword [ebp - 0x24]
mov edi, eax
test edx, edx
je 0x40244b
push 0x11
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x40245a
push 0x22
pop esi
call fcn.0040145c
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.0040145c
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x401719
xor esi, esi
inc esi
mov dword [ebp + 8], 0x7e4e21
call fcn.0040145c
push 0x12
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040145c
push eax
push 0x2003
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x40189f
cmp dword [ebp - 0x18], 0
jne 0x4024ee
push 2
call fcn.0040154d
mov edi, eax
test edi, edi
je 0x401721
push 0x33
pop esi
call fcn.0040145c
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402519
push 0x22
pop esi
call fcn.0040145c
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x402509
mov ecx, dword [0x447ce4]
add ecx, 0x80000001
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
push eax
push ecx
call fcn.00401497
mov esi, eax
test esi, esi
je case.0x4015f6.67
jmp 0x401721
test eax, eax
je 0x40252e
mov edi, eax
jmp 0x40253a
mov edi, dword [0x447ce4]
add edi, 0x80000001
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push 2
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040145c
push 0x11
pop esi
mov dword [ebp - 0x34], eax
call fcn.0040145c
xor ecx, ecx
push ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [0x447d10]
push ecx
or edx, 2
push edx
push ecx
push ecx
push ecx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x4015f6.67
mov edi, 0x40e8e8
cmp ebx, 1
jne 0x40259b
push 0x23
pop esi
call fcn.0040145c
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp ebx, 4
jne 0x4025af
push 3
pop ecx
call fcn.00401446
push ebx
mov dword [0x40e8e8], eax
pop eax
cmp ebx, 3
jne 0x4025c4
push 0x600c
push edi
push 0
push dword [ebp - 0x1c]
call fcn.00402d80
push eax
push edi
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x34]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4025de
and dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f6.67
push 0x20019
call fcn.0040154d
push 0x33
pop esi
mov ebx, eax
call fcn.0040145c
mov byte [edi], 0
test ebx, ebx
je 0x401721
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
mov dword [ebp - 8], 0x2004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402661
cmp dword [ebp + 8], 4
je 0x40264c
cmp dword [ebp + 8], ecx
je 0x40263d
cmp dword [ebp + 8], 2
jne 0x402661
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
jmp 0x402667
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.0040578a
jmp 0x402667
mov byte [edi], 0
mov dword [ebp - 4], ecx
push ebx
jmp 0x4025e1
push 0x20019
call fcn.0040154d
push 3
pop ecx
mov esi, eax
call fcn.00401446
xor edx, edx
mov byte [edi], 0
cmp esi, edx
je 0x401721
mov ecx, 0x2003
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], edx
je 0x4026a7
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026c0
push edx
push edx
push edx
push edx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401721
mov byte [edi + 0x2003], 0
push esi
jmp 0x4025e1
cmp byte [edi], 0
je case.0x4015f6.67
push edi
call fcn.004057a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f6.67
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.0040569c
cmp eax, 0xffffffff
jne 0x402aed
mov byte [edi], 0
jmp 0x401721
cmp dword [ebp - 0x20], 0
je 0x402725
xor ecx, ecx
inc ecx
call fcn.00401446
mov byte [0x40c8e4], al
xor eax, eax
inc eax
jmp 0x402733
push 0x11
pop esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], 0
je 0x401721
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push 0x40c8e4
push edi
call fcn.004057a3
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401719
push 2
pop ecx
xor esi, esi
call fcn.00401446
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015f6.67
mov ecx, 0x2003
cmp eax, ecx
jle 0x40277c
mov dword [ebp - 8], ecx
cmp byte [edi], 0
je 0x40280d
push edi
mov byte [ebp + 0xb], 0
call fcn.004057a3
cmp dword [ebp - 8], esi
mov edi, eax
jle 0x40280d
push 0
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40280d
cmp dword [ebp - 0x30], 1
jne 0x40280d
cmp dword [ebp - 0x1c], 0
jne 0x4027da
cmp byte [ebp + 0xb], 0xd
je 0x4027ea
cmp byte [ebp + 0xb], 0xa
je 0x4027ea
mov al, byte [ebp - 0xd]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0xb], al
test al, al
je 0x40280d
cmp esi, dword [ebp - 8]
jl 0x402796
jmp 0x40280d
movzx eax, byte [ebp - 0xd]
push eax
push ebx
call fcn.0040578a
jmp 0x402afd
mov al, byte [ebp - 0xd]
cmp byte [ebp + 0xb], al
je 0x402800
cmp al, 0xd
je 0x4027fa
cmp al, 0xa
jne 0x402800
mov byte [esi + ebx], al
inc esi
jmp 0x40280d
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x40171b
cmp byte [edi], 0
je case.0x4015f6.67
push dword [ebp - 0x1c]
push 0
push 2
pop ecx
call fcn.00401446
push eax
push edi
call fcn.004057a3
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], 0
jl case.0x4015f6.67
push eax
push ebx
jmp 0x402aef
cmp byte [edi], 0
je case.0x4015f6.67
push edi
call fcn.004057a3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f6.67
cmp byte [ebx], 0
je 0x4018a7
lea eax, [ebp - 0x198]
push eax
push ebx
call fcn.004057a3
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018a7
jmp 0x4028b9
push 2
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4028b2
mov byte [ebx], 0
jmp 0x402705
push eax
push ebx
call fcn.0040578a
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.0040582c
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.0040145c
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call fcn.00405583
test eax, eax
jne 0x4028ef
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push edi
call fcn.0040567c
push 2
push 0x40000000
push edi
call fcn.0040569c
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4029ab
mov eax, dword [0x447c8c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x4029a2
push 0
call fcn.00402d69
push dword [ebp - 8]
push edi
call fcn.00402d37
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x402979
push dword [ebp - 0x20]
push esi
push 0
push dword [ebp - 0x24]
call fcn.00402d80
jmp 0x40296b
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.00405658
add esi, ebx
cmp byte [esi], 0
jne 0x402957
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402d80
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x4029c5
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push esi
jmp 0x4017a7
xor ecx, ecx
call fcn.00401446
mov edi, eax
cmp edi, dword [0x447c4c]
jae 0x401721
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x201c
add esi, dword [0x447c48]
test eax, eax
jl 0x402a0a
mov ecx, dword [esi + eax*4]
jne 0x402a04
add esi, 0x18
push esi
push ebx
jmp 0x4028c1
push ecx
jmp 0x402847
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x402a21
xor ecx, ecx
inc ecx
call fcn.00401446
mov dword [ebp - 0x24], eax
jmp 0x402a34
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00405dcd
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], 0
je case.0x4015f6.67
push edi
call fcn.00401186
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
cmp eax, 0x20
jae 0x401721
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x402a88
cmp dword [ebp - 0x20], esi
je 0x402a7d
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4015f6.67
push esi
call fcn.004012f1
jmp 0x402846
cmp dword [ebp - 0x20], esi
je 0x402a9f
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x447c34]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f6.67
mov ecx, dword [0x447c34]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00405dcd
jmp case.0x4015f6.67
mov ecx, dword [0x43a9f4]
push 0
and ecx, eax
push ecx
push 0xb
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x28], 0
je case.0x4015f6.67
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4015f6.67
xor esi, esi
inc esi
call fcn.0040145c
push eax
call fcn.0040598c
push eax
push edi
call fcn.0040578a
mov eax, dword [ebp - 4]
add dword [0x447ce8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4