Function at 0x401434
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
push esp
pop ebp
sub esp, 0x2ac
mov eax, dword [0x4291c8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push eax
pop esi
mov dword [0x40bd68], edx
mov edx, dword [ebp - 0x30]
mov edi, section..ndata
shl esi, 0xb
shl ecx, 0xb
add edx, 0xfffffffe
xor ebx, ebx
add esi, edi
add ecx, edi
cmp edx, 0x43
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
ja case.0x40148a.65
jmp dword [edx*4 + 0x4029d9]
push ebx
push eax
call fcn.004050c1
jmp 0x40223e
inc dword [0x42818c]
cmp dword [ebp - 0xc], ebx
je 0x40223e
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40223e
push eax
call fcn.0040136d
dec eax
push ebx
push eax
call fcn.00401389
jmp case.0x40148a.2
push ebx
push eax
call fcn.004050c1
jmp case.0x40148a.65
push ebx
call fcn.00402b1d
cmp eax, 1
jg 0x4014e5
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp case.0x40148a.65
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40148a.65
shl eax, 2
cmp dword [ebp - 0x24], ebx
jne 0x401529
mov ecx, dword [eax + 0x429240]
push 1
mov dword [eax + 0x429280], ecx
call fcn.00402b1d
mov ecx, dword [ebp - 0x2c]
mov dword [ecx*4 + 0x429240], eax
jmp case.0x40148a.65
mov ecx, dword [eax + 0x429280]
mov dword [eax + 0x429240], ecx
jmp case.0x40148a.65
mov eax, dword [ebp - 0x24]
lea esi, [eax*4 + 0x429240]
xor eax, eax
mov ecx, dword [esi]
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x20]
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [esi], ecx
jmp case.0x40148a.2
mov eax, dword [ebp - 0x28]
push dword [eax*4 + 0x429240]
push esi
jmp 0x40296d
mov ecx, dword [0x428190]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x401584
push dword [ebp - 0x28]
push ecx
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [0x4281a4]
cmp ecx, ebx
je case.0x40148a.65
push eax
push ecx
call esi
jmp case.0x40148a.65
push 0xfffffffffffffff0
call fcn.00402b3a
push dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne case.0x40148a.65
jmp 0x402793
push 0xfffffffffffffff0
call fcn.00402b3a
push eax
mov dword [ebp + 8], eax
call fcn.0040590f
push eax
pop esi
cmp esi, ebx
je 0x401614
push 0x5c
push esi
call fcn.00405891
mov esi, eax
push ebx
push dword [ebp + 8]
mov di, word [esi]
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
or eax, eax
jne 0x40160a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x401607
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x40160a
inc dword [ebp - 4]
mov word [esi], di
inc esi
inc esi
cmp di, bx
jne 0x4015cf
cmp dword [ebp - 0x28], ebx
je 0x401646
push 0xffffffffffffffe6
call fcn.00401423
push dword [ebp + 8]
push 0x435000
call fcn.00405e19
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test eax, eax
jne case.0x40148a.65
inc dword [ebp - 4]
jmp case.0x40148a.65
push 0xfffffffffffffff5
jmp 0x402192
push ebx
call fcn.00402b3a
push eax
call fcn.0040615c
jmp 0x401c9b
push 0xffffffffffffffd0
call fcn.00402b3a
push 0xffffffffffffffdf
push eax
pop esi
call fcn.00402b3a
push 0x13
mov edi, eax
call fcn.00402b3a
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40168a
push 0xffffffffffffffe3
jmp 0x402192
cmp dword [ebp - 0x24], ebx
je 0x402793
push esi
call fcn.0040615c
test eax, eax
je 0x402793
push edi
push esi
call fcn.00405cb3
push 0xffffffffffffffe4
jmp 0x402192
push ebx
call fcn.00402b3a
mov edi, dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0x400
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
or eax, eax
je 0x4016f3
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x4016fd
cmp word [eax], bx
je 0x4016fd
push esi
call fcn.0040615c
cmp eax, ebx
je 0x4016f3
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405e19
jmp 0x4016fd
mov dword [ebp - 4], 1
mov word [edi], bx
cmp dword [ebp - 0x24], ebx
jne case.0x40148a.65
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
jmp case.0x40148a.65
push 0xffffffffffffffff
call fcn.00402b3a
lea ecx, [ebp + 8]
push ecx
push esi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SearchPathW]
or eax, eax
jne case.0x40148a.65
jmp 0x402761
push 0xffffffffffffffef
call fcn.00402b3a
push eax
push esi
call fcn.00405ab4
jmp 0x4015ac
push 0x31
call fcn.00402b3a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0xc]
and eax, 7
mov dword [ebp + 8], eax
call fcn.004058db
push dword [ebp - 0xc]
mov esi, 0x409568
or eax, eax
je 0x401781
push esi
call fcn.00405e19
jmp 0x401798
push 0x435000
push esi
call fcn.00405e19
push eax
call fcn.00405864
push eax
call sub.KERNEL32.DLL_lstrcatW
push esi
call fcn.004060ad
cmp dword [ebp + 8], 3
jl 0x4017d5
push esi
call fcn.0040615c
sub ecx, ecx
cmp eax, ebx
je 0x4017c0
lea ecx, [ebp - 0x20]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
push eax
pop ecx
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 0x4017e0
push esi
call fcn.00405a60
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405a85
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x401870
cmp dword [ebp + 8], ebx
jne 0x401852
push edi
push 0x40a568
call fcn.00405e19
push esi
push edi
call fcn.00405e19
push dword [ebp - 0x18]
push 0x409d68
call fcn.00405e3b
push 0x40a568
push edi
call fcn.00405e19
mov eax, dword [ebp - 0x2c]
sar eax, 3
push eax
push 0x409d68
call fcn.004055f5
sub eax, 4
je 0x40179e
dec eax
je 0x401865
push esi
push 0xfffffffffffffffa
jmp 0x401493
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.004050c1
cmp dword [ebp + 8], 2
jmp 0x4015ae
inc dword [0x429248]
jmp 0x4029d0
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.004050c1
inc dword [0x429274]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00402fa2
dec dword [0x429274]
cmp dword [ebp - 0x20], 0xffffffff
push eax
pop edi
jne 0x4018a1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4018b3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
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.0x40148a.65
cmp edi, 0xfffffffe
jne 0x4018dc
push 0xffffffffffffffe9
push esi
call fcn.00405e3b
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.DLL_lstrcatW
jmp 0x4018e4
push 0xffffffffffffffee
push esi
call fcn.00405e3b
push 0x200010
push esi
jmp 0x402239
push ebx
jmp 0x401926
push 0x31
call fcn.00402b3a
push dword [ebp - 0x2c]
push eax
call fcn.004055f5
cmp eax, ebx
je 0x402793
cmp eax, dword [ebp - 0x24]
je 0x401a62
cmp eax, dword [ebp - 0x1c]
jne case.0x40148a.65
mov eax, dword [ebp - 0x18]
jmp case.0x40148a.2
push 0xfffffffffffffff0
call fcn.00402b3a
push dword [ebp - 0x28]
push eax
call fcn.004056a1
jmp case.0x40148a.65
push 1
call fcn.00402b3a
push eax
call sub.KERNEL32.DLL_lstrlenW
jmp 0x4024e8
push 2
call fcn.00402b1d
push 3
mov dword [ebp + 8], eax
call fcn.00402b1d
push 1
mov edi, eax
call fcn.00402b3a
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], eax
mov word [esi], bx
je 0x401979
cmp dword [ebp + 8], ebx
je case.0x40148a.65
push eax
call sub.KERNEL32.DLL_lstrlenW
cmp edi, ebx
jge 0x40198b
add edi, eax
js case.0x40148a.65
cmp edi, eax
jle 0x401991
mov edi, eax
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.00405e19
mov edi, dword [ebp + 8]
cmp edi, ebx
je case.0x40148a.65
jge 0x4019ba
push esi
call sub.KERNEL32.DLL_lstrlenW
add edi, eax
jns 0x4019ba
mov dword [ebp + 8], ebx
mov edi, ebx
cmp edi, 0x400
jge case.0x40148a.65
mov word [esi + edi*2], bx
jmp case.0x40148a.65
push 0x20
call fcn.00402b3a
push 0x31
push eax
pop esi
call fcn.00402b3a
cmp dword [ebp - 0x1c], ebx
push eax
push esi
jne 0x4019f8
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
or eax, eax
jne 0x401a62
mov eax, dword [ebp - 0x24]
jmp case.0x40148a.2
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
jmp 0x4019ec
sub edi, edi
inc edi
push edi
call fcn.00402b3a
push 0x400
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
or eax, eax
je 0x401a30
cmp dword [ebp - 0x24], ebx
je 0x401a36
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
or eax, eax
jne 0x401a36
mov dword [ebp - 4], edi
mov word [esi], bx
mov word [esi + 0x7fe], bx
jmp case.0x40148a.65
push ebx
call fcn.00402b1d
push 1
push eax
pop esi
call fcn.00402b1d
cmp dword [ebp - 0x18], ebx
jne 0x401a5e
cmp esi, eax
jl 0x401a62
jle 0x4019f0
jmp 0x401a6c
cmp esi, eax
jae 0x401a6a
mov eax, dword [ebp - 0x20]
jmp case.0x40148a.2
jbe 0x4019f0
mov eax, dword [ebp - 0x1c]
jmp case.0x40148a.2
push 1
call fcn.00402b1d
push 2
push eax
pop edi
call fcn.00402b1d
push eax
pop ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
ja case.default.0x401a8e
jmp dword [eax*4 + 0x402ae9]
add edi, ecx
jmp case.default.0x401a8e
sub edi, ecx
jmp case.default.0x401a8e
imul ecx, edi
push ecx
pop edi
jmp case.default.0x401a8e
cmp ecx, ebx
je 0x401aea
mov eax, edi
cdq
idiv ecx
mov edi, eax
jmp case.default.0x401a8e
or edi, ecx
jmp case.default.0x401a8e
and edi, ecx
jmp case.default.0x401a8e
xor edi, ecx
jmp case.default.0x401a8e
xor eax, eax
cmp edi, ebx
sete al
jmp 0x401aad
cmp edi, ebx
jne 0x401ad8
jmp 0x401ad4
xor edi, edi
jmp case.default.0x401a8e
cmp edi, ebx
je 0x401acc
cmp ecx, ebx
je 0x401acc
xor edi, edi
inc edi
jmp case.default.0x401a8e
cmp ecx, ebx
je 0x401aea
mov eax, edi
cdq
idiv ecx
push edx
pop edi
jmp case.default.0x401a8e
xor edi, edi
mov dword [ebp - 4], 1
jmp case.default.0x401a8e
shl edi, cl
jmp case.default.0x401a8e
sar edi, cl
push edi
jmp 0x401565
push 1
call fcn.00402b3a
push 2
mov edi, eax
call fcn.00402b1d
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp case.0x40148a.65
mov eax, dword [ebp - 0x24]
mov edi, dword [0x40bd6c]
cmp eax, ebx
je 0x401b73
dec eax
cmp edi, ebx
je 0x40222b
mov edi, dword [edi]
cmp eax, ebx
jne 0x401b2f
cmp edi, ebx
je 0x40222b
add edi, 4
mov esi, 0x409568
push edi
push esi
call fcn.00405e19
mov eax, dword [0x40bd6c]
add eax, 4
push eax
push edi
call fcn.00405e19
mov eax, dword [0x40bd6c]
push esi
add eax, 4
push eax
jmp 0x4028eb
cmp dword [ebp - 0x28], ebx
je 0x401b9d
cmp edi, ebx
je 0x402793
lea eax, [edi + 4]
push eax
push esi
call fcn.00405e19
mov eax, dword [edi]
push edi
mov dword [0x40bd6c], eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp case.0x40148a.65
push 0x804
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push dword [ebp - 0x2c]
push eax
pop esi
lea eax, [esi + 4]
push eax
call fcn.00405e3b
mov eax, dword [0x40bd6c]
mov dword [esi], eax
mov dword [0x40bd6c], esi
jmp case.0x40148a.65
push 3
call fcn.00402b1d
push 4
mov dword [ebp - 0x44], eax
call fcn.00402b1d
test byte [ebp - 0x18], 1
mov dword [ebp + 8], eax
je 0x401bee
push 0x33
call fcn.00402b3a
mov dword [ebp - 0x44], eax
test byte [ebp - 0x18], 2
je 0x401bfe
push 0x44
call fcn.00402b3a
mov dword [ebp + 8], eax
cmp dword [ebp - 0x30], 0x21
push 1
jne 0x401c4a
call fcn.00402b1d
push 2
mov edi, eax
call fcn.00402b1d
mov ecx, dword [ebp - 0x18]
sar ecx, 2
je 0x401c3a
lea edx, [ebp - 8]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401c7d
push dword [ebp + 8]
push dword [ebp - 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401c7a
call fcn.00402b3a
push 0x12
mov edi, eax
call fcn.00402b3a
mov cx, word [eax]
neg cx
sbb ecx, ecx
and ecx, eax
mov ax, word [edi]
neg ax
sbb eax, eax
push ecx
and eax, edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x2c], ebx
jl case.0x40148a.65
push dword [ebp - 8]
jmp 0x401565
push ebx
call fcn.00402b1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4019f0
mov eax, dword [ebp - 0x28]
jmp case.0x40148a.2
push 2
call fcn.00402b1d
push eax
push 1
call fcn.00402b1d
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4024e8
mov eax, dword [0x429208]
mov ecx, dword [ebp - 0x28]
add eax, ecx
push eax
push 0xffffffffffffffeb
push ebx
call fcn.00402b1d
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x40148a.65
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x44]
push 0x10
imul eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x48]
imul eax, dword [ebp - 0x24]
push eax
push ebx
push ebx
call fcn.00402b3a
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je case.0x40148a.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x40148a.65
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x48
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
call fcn.00402b1d
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push edi
push dword [ebp - 0xc]
neg eax
mov dword [0x40bd70], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402b1d
mov dword [0x40bd80], eax
mov al, byte [ebp - 0x1c]
push dword [ebp - 0x28]
mov cl, al
and cl, 1
mov byte [0x40bd87], 1
mov byte [0x40bd84], cl
mov cl, al
and cl, 2
and al, 4
push 0x40bd8c
mov byte [0x40bd85], cl
mov byte [0x40bd86], al
call fcn.00405e3b
push 0x40bd70
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x4024e8
push ebx
call fcn.00402b1d
push 1
push eax
pop esi
call fcn.00402b1d
cmp dword [ebp - 0x20], ebx
push eax
push esi
jne 0x401de8
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40148a.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x40148a.65
push ebx
call fcn.00402b3a
push 0x31
mov esi, eax
call fcn.00402b3a
push 0x22
push eax
pop ebx
call fcn.00402b3a
push 0x15
mov edi, eax
call fcn.00402b3a
push 0xffffffffffffffec
call fcn.00401423
mov ax, word [edi]
push dword [ebp - 0x20]
neg ax
sbb eax, eax
push 0x435000
and eax, edi
push eax
mov ax, word [esi]
neg ax
sbb eax, eax
push ebx
and eax, esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
jge case.0x40148a.65
jmp 0x402793
push ebx
call fcn.00402b3a
push eax
pop esi
push esi
push 0xffffffffffffffeb
call fcn.004050c1
push esi
call fcn.00405590
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402793
cmp dword [ebp - 0x24], ebx
je 0x401ec6
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x401e97
push 0xf
call fcn.004061bc
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x401e89
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x28], ebx
jl 0x401eba
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00405d60
jmp 0x401ec6
cmp dword [ebp - 8], ebx
je 0x401ec6
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp case.0x40148a.65
push 2
call fcn.00402b3a
push eax
call fcn.0040615c
mov edi, eax
cmp edi, ebx
je 0x401efa
push dword [edi + 0x14]
push dword [ebp - 0x10]
call fcn.00405d60
push dword [edi + 0x18]
jmp 0x401565
mov eax, dword [ebp - 0x10]
mov word [esi], bx
mov word [eax], bx
jmp 0x402793
push 0xffffffffffffffee
call fcn.00402b3a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
pop edi
mov eax, dword [ebp - 0x10]
mov word [esi], bx
cmp edi, ebx
mov word [eax], bx
mov dword [ebp - 4], 1
je case.0x40148a.65
push edi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je case.0x40148a.65
push eax
push edi
push ebx
push dword [ebp - 0x14]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401f8f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x409014
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401f8f
mov eax, dword [ebp - 8]
push dword [eax + 8]
push esi
call fcn.00405d60
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp - 0x10]
call fcn.00405d60
mov dword [ebp - 4], ebx
push dword [ebp + 8]
jmp 0x401b92
cmp dword [0x429278], ebx
mov dword [ebp - 4], 1
jl 0x402063
push 0xfffffffffffffff0
call fcn.00402b3a
push 1
mov esi, eax
call fcn.00402b3a
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 8], eax
je 0x401fd0
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x401fe1
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40205c
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004061ef
push eax
pop esi
cmp esi, ebx
je 0x40202b
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
je 0x402011
push dword [ebp - 0x24]
call fcn.00401423
call esi
or eax, eax
je 0x402035
mov dword [ebp - 4], 1
jmp 0x402035
push section..data
push 0x40bd6c
push edi
push 0x400
push dword [ebp - 0xc]
call esi
add esp, 0x14
jmp 0x402035
push dword [ebp - 8]
push 0xfffffffffffffff7
call fcn.004050c1
cmp dword [ebp - 0x20], ebx
jne case.0x40148a.65
push dword [ebp + 8]
call fcn.0040374c
test eax, eax
je case.0x40148a.65
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp case.0x40148a.65
push 0xfffffffffffffff6
jmp 0x402192
push 0xffffffffffffffe7
jmp 0x402192
push 0xfffffffffffffff0
call fcn.00402b3a
push 0xffffffffffffffdf
mov dword [ebp - 0x44], eax
call fcn.00402b3a
push 2
push eax
pop esi
call fcn.00402b3a
push 0xffffffffffffffcd
mov dword [ebp - 0x34], eax
call fcn.00402b3a
push 0x45
mov dword [ebp - 0x14], eax
call fcn.00402b3a
push esi
mov dword [ebp - 0x38], eax
call fcn.004058db
test eax, eax
jne 0x4020ac
push 0x21
call fcn.00402b3a
lea eax, [ebp + 8]
push eax
push 0x407464
push 1
push ebx
push 0x407474
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402189
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x407484
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x40217c
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test byte [ebp - 0x1b], 0x80
push eax
pop edi
jne 0x402106
mov eax, dword [ebp + 8]
push 0x435000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x1c]
sar eax, 8
and eax, 0x7f
je 0x40211b
mov ecx, dword [ebp + 8]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
sar ecx, 0x10
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x402147
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
and esi, 0xff
mov edx, dword [ecx]
push esi
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp edi, ebx
jl 0x402173
mov eax, dword [ebp - 8]
push 1
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, ebx
jge 0x40219c
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
call fcn.00401423
jmp case.0x40148a.65
push 0xfffffffffffffff4
jmp 0x402192
push ebx
call fcn.00402b3a
push 0x11
mov esi, eax
call fcn.00402b3a
push 0x23
push eax
pop edi
call fcn.00402b3a
push esi
mov dword [ebp + 8], eax
call fcn.0040615c
or eax, eax
jne 0x4021d2
push ebx
push 0xfffffffffffffff9
call fcn.004050c1
jmp 0x402793
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 2
call sub.KERNEL32.DLL_lstrlenW
push edi
mov word [esi + eax*2 + 2], bx
call sub.KERNEL32.DLL_lstrlenW
mov word [edi + eax*2 + 2], bx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x42], eax
mov word [ebp - 0x4c], cx
call fcn.004050c1
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
or eax, eax
je case.0x40148a.65
jmp 0x4021c5
cmp eax, 0xbadf00d
je 0x402248
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405e3b
push eax
call fcn.004055f5
mov eax, 0x7fffffff
jmp case.0x40148a.2
inc dword [0x429254]
jmp case.0x40148a.65
xor esi, esi
xor edi, edi
cmp eax, ebx
je 0x402263
push ebx
call fcn.00402b3a
push eax
pop esi
cmp dword [ebp - 0x28], ebx
je 0x402271
push 0x11
call fcn.00402b3a
push eax
pop edi
cmp dword [ebp - 0x1c], ebx
je 0x40227f
push 0x22
call fcn.00402b3a
push eax
pop ebx
push 0xffffffffffffffcd
call fcn.00402b3a
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x4015ac
mov eax, dword [0x409010]
push 1
mov dword [ebp + 8], eax
call fcn.00402b3a
push 0x12
mov edi, eax
call fcn.00402b3a
push 0xffffffffffffffdd
mov dword [ebp - 8], eax
call fcn.00402b3a
push eax
push 0x3ff
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [esi], 0xa
jmp 0x401734
cmp dword [ebp - 0x1c], ebx
jne 0x402305
push 2
call fcn.00402c44
mov esi, eax
cmp esi, ebx
je 0x402793
push 0x33
call fcn.00402b3a
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push eax
pop edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402324
push 0x22
call fcn.00402b3a
mov ecx, dword [ebp - 0x1c]
and ecx, 2
push ecx
push eax
push dword [ebp - 0x28]
call fcn.00402c2f
push eax
call fcn.00402b7a
mov edi, eax
cmp edi, ebx
je case.0x40148a.65
jmp 0x402793
push eax
call fcn.00402c2f
mov esi, dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x18]
push 2
mov dword [ebp - 8], eax
call fcn.00402b3a
push 0x11
mov dword [ebp - 0x14], eax
call fcn.00402b3a
lea ecx, [ebp + 8]
push ebx
push ecx
mov ecx, dword [0x429270]
or ecx, 2
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne case.0x40148a.65
cmp esi, 1
mov edi, 0x40a568
jne 0x402398
push 0x23
call fcn.00402b3a
push edi
call sub.KERNEL32.DLL_lstrlenW
lea eax, [eax + eax + 2]
cmp esi, 4
jne 0x4023ab
push 3
call fcn.00402b1d
push esi
mov dword [0x40a568], eax
pop eax
cmp esi, 3
jne 0x4023bf
push 0x1800
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00402fa2
push eax
push edi
push dword [ebp - 8]
push ebx
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4023d8
mov dword [ebp - 4], ebx
push dword [ebp + 8]
jmp 0x4024ac
push 0x20019
call fcn.00402c44
push 0x33
mov edi, eax
call fcn.00402b3a
cmp edi, ebx
mov word [esi], bx
je 0x402793
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x800
push ecx
lea ecx, [ebp + 8]
push esi
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
or eax, eax
jne 0x40244c
cmp dword [ebp + 8], 4
je 0x402437
cmp dword [ebp + 8], ecx
je 0x40242f
cmp dword [ebp + 8], 2
jne 0x40244c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x4024a4
push dword [esi]
xor eax, eax
cmp dword [ebp - 0x1c], ebx
push esi
sete al
mov dword [ebp - 4], eax
call fcn.00405d60
jmp 0x4024ab
mov word [esi], bx
mov dword [ebp - 4], ecx
jmp 0x4024ab
push 0x20019
call fcn.00402c44
push 3
mov edi, eax
call fcn.00402b1d
cmp edi, ebx
mov word [esi], bx
je 0x402793
cmp dword [ebp - 0x1c], ebx
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
je 0x40248b
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4024a4
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x402793
mov word [esi + 0x7fe], bx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x40148a.65
cmp word [esi], bx
je case.0x40148a.65
push esi
call fcn.00405d79
push eax
jmp 0x401ec9
push 0xffffffffffffffed
call fcn.00402b3a
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00405a85
cmp eax, 0xffffffff
je 0x402790
push eax
jmp 0x401565
cmp dword [ebp - 0x24], ebx
je 0x40250c
push 1
call fcn.00402b1d
mov word [0x409d68], ax
xor eax, eax
cmp dword [ebp - 0x30], 0x38
setne al
inc eax
jmp 0x40254d
cmp dword [ebp - 0x30], 0x38
jne 0x40253e
push 0x21
call fcn.00402b3a
push ebx
push ebx
mov edi, 0x409d68
push 0x400
push edi
push 0xffffffffffffffff
push 0x40a568
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
jmp 0x40254d
push 0x11
call fcn.00402b3a
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
cmp word [esi], bx
je 0x402793
lea ecx, [ebp + 8]
push ebx
push ecx
push eax
push 0x409d68
push esi
call fcn.00405d79
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x4015ac
push 2
mov dword [ebp - 0xc], ebx
pop eax
push eax
mov dword [ebp - 0x44], eax
call fcn.00402b1d
cmp eax, 1
mov dword [ebp - 0x34], eax
jl case.0x40148a.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x40259a
mov dword [ebp - 0x34], ecx
cmp word [esi], bx
je 0x4026e6
push esi
mov dword [ebp - 0x14], ebx
call fcn.00405d79
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 8], eax
jle 0x4026e6
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp dword [ebp - 0x30], 0x39
jne 0x402657
lea eax, [ebp - 0x38]
push ebx
push eax
push 2
pop eax
sub eax, dword [ebp - 0x20]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4026e6
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x4026e6
movzx ax, byte [ebp + 0xa]
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], eax
jne 0x4026a2
lea eax, [ebp - 0x3c]
push 1
push eax
lea eax, [ebp + 0xa]
push ecx
push eax
push 8
push ebx
call edi
or eax, eax
jne 0x402669
mov esi, dword [ebp - 0x44]
neg esi
dec dword [ebp - 0x38]
mov eax, 0xfffd
mov dword [ebp - 0x3c], eax
je 0x40266c
dec dword [ebp - 0x44]
inc esi
push 1
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 0x3c]
push 1
push eax
lea eax, [ebp + 0xa]
push dword [ebp - 0x38]
push eax
push 8
push ebx
call edi
test eax, eax
je 0x402621
jmp 0x402669
lea eax, [ebp - 0x3c]
push 2
push eax
push dword [ebp - 8]
call fcn.00405b08
or eax, eax
je 0x4026e6
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], ebx
jne 0x4026a2
cmp word [ebp - 0x14], 0xd
je 0x4026b3
cmp word [ebp - 0x14], 0xa
je 0x4026b3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp ax, bx
mov word [ecx + edx*2], ax
mov dword [ebp - 0x14], eax
je 0x4026e6
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0xc], eax
jl 0x4025be
jmp 0x4026e6
movzx eax, ax
push eax
push dword [ebp - 0x10]
call fcn.00405d60
jmp 0x4029d0
cmp word [ebp - 0x14], ax
je 0x4026d4
cmp ax, 0xd
je 0x4026c5
cmp ax, 0xa
jne 0x4026d4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov word [ecx + edx*2], ax
jmp 0x4026e6
mov eax, dword [ebp - 0x44]
push 1
neg eax
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov word [ecx + eax*2], bx
jmp 0x4015ae
cmp word [esi], bx
je case.0x40148a.65
push dword [ebp - 0x20]
push ebx
push 2
call fcn.00402b1d
push eax
push esi
call fcn.00405d79
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [ebp - 0x28], ebx
jl case.0x40148a.65
jmp 0x402969
cmp word [esi], bx
je case.0x40148a.65
push esi
call fcn.00405d79
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp case.0x40148a.65
cmp word [ecx], bx
je 0x402761
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x10]
call fcn.00405d79
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
or eax, eax
jne 0x4027a8
mov dword [ebp - 4], 1
mov word [esi], bx
jmp case.0x40148a.65
push 2
call fcn.00402b3a
lea ecx, [ebp - 0x2ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40279f
mov eax, dword [ebp - 0x10]
mov word [eax], bx
mov word [esi], bx
mov dword [ebp - 4], 1
jmp case.0x40148a.65
push eax
push dword [ebp - 0x10]
call fcn.00405d60
lea eax, [ebp - 0x280]
push eax
push esi
jmp 0x4028eb
push 0xfffffffffffffff0
mov dword [ebp - 0x14], 0xfffffd66
call fcn.00402b3a
push eax
pop esi
push esi
mov dword [ebp - 0x34], esi
call fcn.004058db
test eax, eax
jne 0x4027d9
push 0xffffffffffffffed
call fcn.00402b3a
push esi
call fcn.00405a60
push 2
push 0x40000000
push esi
call fcn.00405a85
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x402895
mov eax, dword [0x4291d4]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 8], eax
call esi
push eax
pop edi
cmp edi, ebx
je 0x40288c
push ebx
call fcn.004031b4
push dword [ebp - 8]
push edi
call fcn.0040319e
push dword [ebp - 0x24]
push 0x40
call esi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x402864
push dword [ebp - 0x24]
push esi
push ebx
push dword [ebp - 0x28]
call fcn.00402fa2
jmp 0x402857
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add esi, 8
push ecx
add eax, edi
push esi
push eax
mov dword [ebp - 0x48], ecx
call fcn.00405a40
add esi, dword [ebp - 0x48]
cmp byte [esi], bl
jne 0x40283f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
lea eax, [ebp - 0x38]
push ebx
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 ebx
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402fa2
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x14], ebx
push 0xfffffffffffffff3
pop esi
jge 0x4028b0
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x402192
push ebx
call fcn.00402b1d
mov edi, eax
cmp edi, dword [0x4291ec]
jae 0x402793
push edi
pop esi
mov eax, dword [ebp - 0x24]
imul esi, esi, 0x818
add esi, dword [0x4291e8]
cmp eax, ebx
jl 0x4028f8
mov ecx, dword [esi + eax*4]
jne 0x4028f5
add esi, 0x18
push esi
push dword [ebp - 0x10]
call fcn.00405e19
jmp case.0x40148a.65
push ecx
jmp 0x40296a
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x40290e
push 1
call fcn.00402b1d
mov dword [ebp - 0x28], eax
jmp 0x40291e
push dword [ebp - 0x1c]
lea eax, [esi + 0x18]
push eax
call fcn.00405e3b
or byte [esi + 9], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x20], ebx
je case.0x40148a.65
push edi
call fcn.0040117d
jmp case.0x40148a.65
push ebx
call fcn.00402b1d
cmp eax, 0x20
jae 0x402793
cmp dword [ebp - 0x20], ebx
je 0x402974
cmp dword [ebp - 0x24], ebx
je 0x402963
push eax
call fcn.00401299
push ebx
push ebx
call fcn.004011ef
jmp case.0x40148a.65
push ebx
call fcn.004012e2
push eax
push dword [ebp - 0x10]
call fcn.00405d60
jmp case.0x40148a.65
cmp dword [ebp - 0x24], ebx
je 0x40298b
mov edx, dword [0x4291d0]
mov ecx, dword [ebp - 0x28]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x40148a.65
mov ecx, dword [0x4291d0]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0x10]
call fcn.00405e3b
jmp case.0x40148a.65
mov ecx, dword [0x4246b0]
push ebx
and ecx, eax
push ecx
push 0xb
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x2c], ebx
je case.0x40148a.65
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x429248], eax
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret 4