Function at 0x40158c
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Enumerate files recursively
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
push edi
push esi
push ebx
sub esp, 0x224
cmp dword [ebp + 8], 0
js 0x402fd5
imul eax, dword [ebp + 8], 0x1c
mov edx, dword [0x424cc0]
cmp dword [eax + edx], 1
je 0x402fd5
add edx, eax
mov eax, dword [0x424d20]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x2c]
push 0x1c
mov dword [ebp - 0x1ec], 0
push edx
push eax
call fcn.00407440
mov edx, dword [ebp - 0x28]
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 0xa
add esp, 0xc
lea edi, [eax + section..ndata]
mov eax, ecx
shl eax, 0xa
lea esi, [eax + section..ndata]
lea eax, [ebp - 0x28]
mov dword [0x40cc50], eax
mov eax, dword [ebp - 0x2c]
sub eax, 2
cmp eax, 0x41
ja case.0x40160f.65
jmp dword [eax*4 + 0x40900c]
mov eax, edx
jmp 0x402f6f
push 0
push dword [ebp - 0x28]
jmp 0x401adb
inc dword [0x425540]
cmp dword [ebp - 0x1e8], 0
je 0x402680
push 0
call sub.USER32.dll_PostQuitMessage
jmp 0x402680
push dword [ebp - 0x28]
call fcn.004013e0
dec eax
push 0
push eax
call fcn.0040158c
jmp 0x402f6f
cmp dword [ebp - 0x20], 0
je 0x401671
mov eax, dword [0x40800c]
mov dword [0x408020], eax
jmp case.0x40160f.65
test ecx, ecx
je 0x40168a
mov eax, dword [0x408020]
mov dword [0x408020], ecx
mov dword [0x40800c], eax
jmp case.0x40160f.65
push 0
push dword [ebp - 0x28]
call fcn.004052eb
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
cmp eax, 1
jge 0x4016aa
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
jmp case.0x40160f.65
push dword [ebp - 0x1e8]
call sub.USER32.dll_SetForegroundWindow
jmp case.0x40160f.65
mov eax, 1
call fcn.00401416
mov edx, dword [ebp - 0x28]
mov dword [edx*4 + 0x424c40], eax
jmp case.0x40160f.65
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx*4 + 0x424c40]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x1c]
and eax, 4
mov dword [ecx*4 + 0x424c40], edx
mov eax, dword [ebp + eax - 0x28]
jmp 0x402f6f
push dword [ecx*4 + 0x424c40]
push edi
call fcn.00405e69
jmp case.0x40160f.65
mov eax, dword [0x425550]
test eax, eax
je 0x401727
push dword [ebp - 0x24]
push eax
call sub.USER32.dll_ShowWindow
mov eax, dword [0x425560]
test eax, eax
je case.0x40160f.65
push dword [ebp - 0x28]
push eax
call sub.USER32.dll_ShowWindow
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
push dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
mov esi, eax
push eax
call fcn.00405c20
mov ebx, eax
test eax, eax
je 0x4017d9
push 0x5c
push ebx
call fcn.00405bd1
mov ebx, eax
mov dl, byte [eax]
mov byte [ebp - 0x1ed], dl
mov byte [eax], 0
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
test eax, eax
jne 0x4017cc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x4017b9
inc dword [ebp - 0x1ec]
jmp 0x4017cc
push esi
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
cmp eax, 1
adc dword [ebp - 0x1ec], 0
mov al, byte [ebp - 0x1ed]
mov byte [ebx], al
inc ebx
test al, al
jmp 0x401782
cmp dword [ebp - 0x24], 0
je 0x4017fc
push 0xffffffffffffffe6
call fcn.00401402
push esi
push 0x42d800
call fcn.00405f27
push esi
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp case.0x40160f.65
push 0xfffffffffffffff5
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
push eax
call fcn.0040621f
jmp 0x401fbf
mov eax, 0xffffffd0
call fcn.00401431
mov esi, eax
mov eax, 0xffffffdf
call fcn.00401431
push esi
mov edi, eax
push 0x40bc50
call fcn.00405f27
push esi
call fcn.00405f3e
mov ebx, eax
push edi
call fcn.00405f3e
lea eax, [ebx + eax]
cmp eax, 0x3fc
jg 0x40186f
push section..rdata
push 0x40bc50
call fcn.00405fcc
push edi
push 0x40bc50
call fcn.00405fcc
push edi
push esi
call sub.KERNEL32.dll_MoveFileA
test eax, eax
je 0x401886
push 0xffffffffffffffe3
call fcn.00401402
jmp case.0x40160f.65
cmp dword [ebp - 0x20], 0
je 0x4018a9
push esi
call fcn.0040621f
test eax, eax
je 0x4018a9
push edi
push esi
call fcn.00406343
push 0xffffffffffffffe4
call fcn.00401402
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov ebx, eax
lea eax, [ebp - 0x1a0]
push eax
push esi
push 0x400
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
test eax, eax
je 0x401902
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
jbe 0x40190f
cmp byte [eax], 0
je 0x40190f
push ebx
call fcn.0040621f
test eax, eax
je 0x401902
add eax, 0x2c
push eax
push dword [ebp - 0x1a0]
call fcn.00405f27
jmp 0x40190f
mov dword [ebp - 0x1ec], 1
mov byte [esi], 0
cmp dword [ebp - 0x20], 0
jne case.0x40160f.65
push 0x400
push esi
push esi
call sub.KERNEL32.dll_GetShortPathNameA
jmp case.0x40160f.65
or eax, 0xffffffff
call fcn.00401431
lea edx, [ebp - 0x1a4]
push edx
push edi
push 0x400
push 0
push eax
push 0
call sub.KERNEL32.dll_SearchPathA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
mov eax, 0xffffffef
call fcn.00401431
push eax
push edi
call fcn.00405da0
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0x31
call fcn.00401431
mov esi, dword [ebp - 0x28]
mov edi, eax
and esi, 7
push eax
call fcn.00405bf4
test eax, eax
je 0x4019b4
push edi
push 0x40b850
call fcn.00405f27
jmp 0x4019d0
push edi
push 0x42d800
push 0x40b850
call fcn.00405f27
push eax
call fcn.00405fd5
push eax
call fcn.00405fcc
push 0x40b850
call fcn.00405ca4
cmp esi, 2
jle 0x401a10
push 0x40b850
call fcn.0040621f
xor ecx, ecx
mov edx, eax
test eax, eax
je 0x401a00
lea eax, [ebp - 0x1c]
push eax
lea eax, [edx + 0x14]
push eax
call sub.KERNEL32.dll_CompareFileTime
mov ecx, eax
lea eax, [esi - 3]
or eax, 0x80000000
test eax, ecx
sete al
movzx esi, al
test esi, esi
jne 0x401a20
push 0x40b850
call fcn.00405d4f
jmp 0x401a2a
mov eax, 1
cmp esi, 1
je 0x401a2f
mov eax, 2
push eax
push 0x40000000
push 0x40b850
call fcn.00405d72
mov ebx, eax
cmp eax, 0xffffffff
jne 0x401ae5
test esi, esi
je 0x401a6e
push edi
push 0xffffffffffffffe2
call fcn.004052eb
cmp esi, 2
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push section..ndata
push 0x40c050
call fcn.00405f27
push 0x40b850
push section..ndata
call fcn.00405f27
push dword [ebp - 0x14]
push 0x40bc50
call fcn.00406005
push 0x40c050
push section..ndata
call fcn.00405f27
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x40bc50
call fcn.00405b6c
cmp eax, 4
je 0x401a14
cmp eax, 5
jne 0x401ad4
inc dword [0x424c48]
xor al, al
jmp 0x402f6f
push 0x40b850
push 0xfffffffffffffffa
call fcn.004052eb
jmp 0x402680
push edi
push 0xffffffffffffffea
call fcn.004052eb
inc dword [0x408020]
push 0
push 0
push ebx
push dword [ebp - 0x20]
call fcn.00403316
dec dword [0x408020]
mov esi, eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401b14
cmp dword [ebp - 0x18], 0xffffffff
je 0x401b21
lea eax, [ebp - 0x1c]
push eax
push 0
push eax
push ebx
call sub.KERNEL32.dll_SetFileTime
push ebx
call sub.KERNEL32.dll_CloseHandle
test esi, esi
jns case.0x40160f.65
cmp esi, 0xfffffffe
jne 0x401b4d
push 0xffffffffffffffe9
push 0x40b850
call fcn.00406005
push edi
push 0x40b850
call fcn.00405fcc
jmp 0x401b59
push 0xffffffffffffffee
push 0x40b850
call fcn.00406005
push 0x200010
push 0x40b850
jmp 0x40267b
xor eax, eax
call fcn.00401431
push dword [ebp - 0x24]
push eax
call fcn.00406515
jmp case.0x40160f.65
mov eax, 0x31
call fcn.00401431
push dword [ebp - 0x28]
push eax
call fcn.00405b6c
test eax, eax
je 0x401bae
cmp eax, dword [ebp - 0x20]
je 0x401d30
cmp eax, dword [ebp - 0x18]
jne case.0x40160f.65
mov eax, dword [ebp - 0x14]
jmp 0x402f6f
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
push dword [ebp - 0x24]
push eax
call fcn.00406515
jmp case.0x40160f.65
mov eax, 1
call fcn.00401431
push eax
call fcn.00405f3e
push eax
push edi
call fcn.00405e69
jmp case.0x40160f.65
mov eax, 2
call fcn.00401416
mov esi, eax
mov eax, 3
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401431
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0
cmp dword [ebp - 0x20], 0
sete dl
test esi, esi
setne al
or eax, edx
test al, 1
je case.0x40160f.65
push dword [ebp - 0x1f4]
call fcn.00405f3e
test ebx, ebx
jns 0x401c49
add ebx, eax
js case.0x40160f.65
cmp ebx, eax
jle 0x401c4f
mov ebx, eax
mov eax, dword [ebp - 0x1f4]
add eax, ebx
push eax
push edi
call fcn.00405f27
test esi, esi
je case.0x40160f.65
jge 0x401c76
push edi
call fcn.00405f3e
add esi, eax
jns 0x401c76
xor esi, esi
jmp 0x401c82
cmp esi, 0x3ff
jg case.0x40160f.65
mov byte [edi + esi], 0
jmp case.0x40160f.65
mov eax, 0x20
call fcn.00401431
mov ebx, eax
mov eax, 0x31
call fcn.00401431
cmp dword [ebp - 0x18], 0
jne 0x401cb0
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401cb7
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
je 0x401fcb
jmp 0x401d30
mov eax, 1
call fcn.00401431
push 0x400
mov ebx, eax
push edi
push eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x401cee
cmp dword [ebp - 0x20], 0
je 0x401cfb
push edi
push ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
jne 0x401cfb
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
mov byte [edi + 0x3ff], 0
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401416
cmp dword [ebp - 0x14], 0
jne 0x401d2c
cmp ebx, eax
jl 0x401d30
jle 0x401fcb
jmp 0x401d3e
cmp ebx, eax
jae 0x401d38
mov eax, dword [ebp - 0x1c]
jmp 0x402f6f
jbe 0x401fcb
mov eax, dword [ebp - 0x18]
jmp 0x402f6f
mov eax, 1
call fcn.00401416
mov ebx, eax
mov eax, 2
call fcn.00401416
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc
ja case.default.0x401d66
jmp dword [eax*4 + 0x409114]
add ebx, ecx
jmp case.default.0x401d66
sub ebx, ecx
jmp case.default.0x401d66
imul ebx, ecx
jmp case.default.0x401d66
test ecx, ecx
je 0x401dc1
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp case.default.0x401d66
or ebx, ecx
jmp case.default.0x401d66
and ebx, ecx
jmp case.default.0x401d66
xor ebx, ecx
jmp case.default.0x401d66
test ebx, ebx
sete al
jmp 0x401d9f
or ebx, ecx
setne al
movzx ebx, al
jmp case.default.0x401d66
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp case.default.0x401d66
test ecx, ecx
je 0x401dc1
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp case.default.0x401d66
xor ebx, ebx
mov dword [ebp - 0x1ec], 1
jmp case.default.0x401d66
shl ebx, cl
jmp case.default.0x401d66
sar ebx, cl
push ebx
push edi
call fcn.00405e69
jmp case.0x40160f.65
mov eax, 1
call fcn.00401431
mov ebx, eax
mov eax, 2
call fcn.00401416
push eax
push ebx
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp case.0x40160f.65
mov eax, dword [ebp - 0x20]
mov ebx, dword [0x40b840]
test eax, eax
je 0x401e63
dec eax
cmp eax, 0xffffffff
je 0x401e26
test ebx, ebx
je 0x40266c
mov ebx, dword [ebx]
jmp 0x401e14
test ebx, ebx
je 0x40266c
add ebx, 4
push ebx
push 0x40b850
call fcn.00405f27
mov eax, dword [0x40b840]
add eax, 4
push eax
push ebx
call fcn.00405f27
mov eax, dword [0x40b840]
add eax, 4
push 0x40b850
push eax
call fcn.00405f27
jmp case.0x40160f.65
test ecx, ecx
je 0x401e96
test ebx, ebx
jne 0x401e7a
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
lea eax, [ebx + 4]
push eax
push edi
call fcn.00405f27
mov eax, dword [ebx]
mov dword [0x40b840], eax
push ebx
call sub.KERNEL32.dll_GlobalFree
jmp case.0x40160f.65
push 0x404
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
push dword [ebp - 0x28]
lea eax, [eax + 4]
push eax
call fcn.00406005
mov eax, dword [0x40b840]
mov dword [ebx], eax
mov dword [0x40b840], ebx
jmp case.0x40160f.65
mov eax, 0x33
call fcn.00401431
mov esi, eax
mov eax, 0x44
call fcn.00401431
test byte [ebp - 0x14], 1
mov ebx, eax
jne 0x401ee8
push esi
call fcn.00405e80
mov esi, eax
test byte [ebp - 0x14], 2
jne 0x401ef6
push ebx
call fcn.00405e80
mov ebx, eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401f5a
mov eax, 1
call fcn.00401416
mov dword [ebp - 0x1f8], eax
mov eax, 2
call fcn.00401416
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, eax
sar edx, 2
je 0x401f4a
lea eax, [ebp - 0x1a8]
push eax
push edx
push 0
push ebx
push esi
push ecx
push dword [ebp - 0x1f8]
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x1ec], eax
jmp 0x401f97
push ebx
push esi
push ecx
push dword [ebp - 0x1f8]
call sub.USER32.dll_SendMessageA
jmp 0x401f91
mov eax, 1
call fcn.00401431
mov dword [ebp - 0x1fc], eax
mov eax, 0x12
call fcn.00401431
cmp byte [eax], 0
jne 0x401f7b
xor eax, eax
push eax
mov eax, dword [ebp - 0x1fc]
cmp byte [eax], 0
jne 0x401f89
xor eax, eax
push eax
push ebx
push esi
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x28], 0
js case.0x40160f.65
push dword [ebp - 0x1a8]
push edi
call fcn.00405e69
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
push eax
call sub.USER32.dll_IsWindow
test eax, eax
je 0x401fcb
mov eax, dword [ebp - 0x24]
jmp 0x402f6f
mov eax, dword [ebp - 0x20]
jmp 0x402f6f
mov eax, 2
call fcn.00401416
push eax
mov eax, 1
call fcn.00401416
push eax
call sub.USER32.dll_GetDlgItem
push eax
push edi
call fcn.00405e69
jmp case.0x40160f.65
add ecx, dword [0x424cd8]
xor eax, eax
push ecx
push 0xffffffffffffffeb
call fcn.00401416
push eax
call sub.USER32.dll_SetWindowLongA
jmp case.0x40160f.65
push dword [ebp - 0x24]
push dword [ebp - 0x1e8]
call sub.USER32.dll_GetDlgItem
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0x20]
mov edx, eax
imul edx, dword [ebp - 0x30]
imul eax, dword [ebp - 0x34]
push 0x10
push edx
push eax
xor eax, eax
push 0
call fcn.00401431
push eax
push 0
call sub.USER32.dll_LoadImageA
push eax
push 0
push 0x172
push ebx
call sub.USER32.dll_SendMessageA
test eax, eax
je case.0x40160f.65
push eax
call sub.GDI32.dll_DeleteObject
jmp case.0x40160f.65
push 0x48
push 0x5a
push dword [ebp - 0x1e8]
call sub.USER32.dll_GetDC
push eax
call sub.GDI32.dll_GetDeviceCaps
push eax
mov eax, 2
call fcn.00401416
push eax
call sub.KERNEL32.dll_MulDiv
neg eax
mov dword [section..bss], eax
mov eax, 3
call fcn.00401416
mov byte [0x40b017], 1
mov dword [0x40b010], eax
mov eax, dword [ebp - 0x18]
mov dl, al
and edx, 1
push dword [ebp - 0x24]
mov byte [0x40b014], dl
mov dl, al
and edx, 2
and eax, 4
mov byte [0x40b015], dl
mov byte [0x40b016], al
push 0x40b01c
call fcn.00406005
push section..bss
call sub.GDI32.dll_CreateFontIndirectA
push eax
push edi
call fcn.00405e69
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401416
cmp dword [ebp - 0x1c], 0
jne 0x40211e
push eax
push ebx
call sub.USER32.dll_ShowWindow
jmp case.0x40160f.65
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov edi, eax
mov eax, 0x31
call fcn.00401431
mov esi, eax
mov eax, 0x22
call fcn.00401431
push esi
push edi
push str._s__s
push 0x40bc50
mov ebx, eax
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0xffffffffffffffec
call fcn.00401402
mov eax, ebx
push dword [ebp - 0x1c]
push 0x42d800
cmp byte [ebx], 0
jne 0x402177
xor eax, eax
push eax
push esi
mov eax, edi
cmp byte [edi], 0
jne 0x402182
xor eax, eax
push eax
push dword [ebp - 0x1e8]
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jg case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov ebx, eax
push eax
push 0xffffffffffffffeb
call fcn.004052eb
push ebx
call fcn.00405b00
mov ebx, eax
test eax, eax
je 0x402220
cmp dword [ebp - 0x20], 0
je 0x402215
jmp 0x4021d2
push 0xf
call fcn.00406706
push 0x64
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4021cb
lea eax, [ebp - 0x1ac]
push eax
push ebx
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x24], 0
js 0x402202
push dword [ebp - 0x1ac]
push esi
call fcn.00405e69
jmp 0x402215
cmp dword [ebp - 0x1ac], 0
je 0x402215
mov dword [ebp - 0x1ec], 1
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 2
call fcn.00401431
push eax
call fcn.0040621f
mov ebx, eax
test eax, eax
je 0x40225c
push dword [eax + 0x14]
push esi
call fcn.00405e69
push dword [ebx + 0x18]
push edi
call fcn.00405e69
jmp case.0x40160f.65
mov byte [edi], 0
mov byte [esi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xffffffee
call fcn.00401431
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x200]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [edi], 0
mov ebx, eax
mov byte [esi], 0
test eax, eax
mov dword [ebp - 0x1ec], 1
je case.0x40160f.65
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov dword [ebp - 0x204], eax
je case.0x40160f.65
push eax
push ebx
push 0
push dword [ebp - 0x200]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402320
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b8]
push eax
push 0x409009
push dword [ebp - 0x204]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402320
mov eax, dword [ebp - 0x1b8]
push dword [eax + 8]
push edi
call fcn.00405e69
mov eax, dword [ebp - 0x1b8]
push dword [eax + 0xc]
push esi
call fcn.00405e69
mov dword [ebp - 0x1ec], 0
push dword [ebp - 0x204]
call sub.KERNEL32.dll_GlobalFree
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x424c80], 0
js 0x4023fc
mov eax, 0xfffffff0
call fcn.00401431
mov ebx, eax
mov eax, 1
call fcn.00401431
cmp dword [ebp - 0x18], 0
mov edi, eax
je 0x40237b
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
mov esi, eax
test eax, eax
jne 0x40238b
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test eax, eax
je 0x4023f8
push edi
push esi
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
test eax, eax
je 0x4023e2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1ec], 0
test eax, eax
je 0x4023c1
push eax
call fcn.00401402
call ebx
test eax, eax
je 0x4023ea
mov dword [ebp - 0x1ec], 1
jmp 0x4023ea
push section..data
push 0x40b840
push section..ndata
push 0x400
push dword [ebp - 0x1e8]
call ebx
add esp, 0x14
jmp 0x4023ea
push edi
push 0xfffffffffffffff7
call fcn.004052eb
cmp dword [ebp - 0x1c], 0
jne 0x402403
push esi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x402403
push 0xfffffffffffffff6
jmp 0x4023fe
push 0xffffffffffffffe7
call fcn.00401402
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
mov dword [ebp - 0x208], eax
mov eax, 0xffffffdf
call fcn.00401431
mov esi, eax
mov eax, 2
call fcn.00401431
mov dword [ebp - 0x20c], eax
mov eax, 0xffffffcd
call fcn.00401431
mov edi, eax
mov eax, 0x45
call fcn.00401431
push esi
mov dword [ebp - 0x210], eax
call fcn.00405bf4
test eax, eax
jne 0x402468
mov al, 0x21
call fcn.00401431
lea eax, [ebp - 0x1bc]
push eax
push 0x4099d0
push 1
push 0
push 0x409ae0
call sub.OLE32.dll_CoCreateInstance
test eax, eax
js 0x402585
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1c0]
mov ecx, dword [eax]
push edx
push 0x40a1c0
push eax
call dword [ecx]
mov ebx, eax
test eax, eax
js 0x402575
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push 0x42d800
push eax
call dword [edx + 0x24]
movzx ecx, byte [ebp - 0x17]
test ecx, ecx
je 0x4024e0
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x1bc]
movzx edx, word [ebp - 0x16]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [edi], 0
je 0x402508
mov eax, dword [ebp - 0x1bc]
movzx edx, byte [ebp - 0x18]
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push dword [ebp - 0x20c]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push dword [ebp - 0x210]
push eax
call dword [edx + 0x1c]
test ebx, ebx
js 0x402569
push 0x400
push 0x40b040
push 0xffffffffffffffff
mov word [0x40b040], 0
push dword [ebp - 0x208]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax]
push 1
push 0x40b040
push eax
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
test ebx, ebx
jns 0x40259b
mov dword [ebp - 0x1ec], 1
push 0xfffffffffffffff0
call fcn.00401402
jmp case.0x40160f.65
push 0xfffffffffffffff4
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov esi, eax
mov eax, 0x11
call fcn.00401431
push esi
mov ebx, eax
call fcn.0040621f
test eax, eax
jne 0x4025de
push 0
push 0xfffffffffffffff9
call fcn.004052eb
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x5c], eax
push esi
call fcn.00405f3e
mov byte [esi + eax + 1], 0
push ebx
call fcn.00405f3e
mov byte [ebx + eax + 1], 0
push 0xfffffffffffffff8
push 0x40c050
call fcn.00406005
push ebx
push 0x40c050
call fcn.00405fcc
mov eax, dword [ebp - 0x20]
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x54], esi
push 0x40c050
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x42], 0x40c050
push 0
call fcn.004052eb
lea eax, [ebp - 0x5c]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je case.0x40160f.65
push 0
push 0xfffffffffffffff9
call fcn.004052eb
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp edx, 0xbadf00d
je 0x40268a
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00406005
push eax
call fcn.00405b6c
mov eax, 0x7fffffff
jmp 0x402f6f
inc dword [0x424c54]
jmp case.0x40160f.65
xor edi, edi
xor esi, esi
xor ebx, ebx
test edx, edx
je 0x4026a8
xor eax, eax
call fcn.00401431
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x4026ba
mov eax, 0x11
call fcn.00401431
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x4026cc
mov eax, 0x22
call fcn.00401431
mov ebx, eax
mov eax, 0xffffffcd
call fcn.00401431
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_WritePrivateProfileStringA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 1
mov dword [ebp - 0x1c4], 0x7e4e21
call fcn.00401431
mov esi, eax
mov eax, 0x12
call fcn.00401431
mov ebx, eax
mov eax, 0xffffffdd
call fcn.00401431
push eax
lea eax, [ebp - 0x1c4]
push 0x3ff
push edi
push eax
push ebx
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov eax, dword [ebp - 0x1c4]
cmp dword [edi], eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
cmp dword [ebp - 0x18], 0
jne 0x402788
mov eax, 2
call fcn.00401550
mov ebx, eax
test eax, eax
je 0x4027b4
mov eax, 0x33
call fcn.00401431
push eax
push ebx
call sub.ADVAPI32.DLL_RegDeleteValueA
mov esi, eax
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x4027ac
mov eax, 0x22
call fcn.00401431
mov ebx, eax
mov eax, dword [ebp - 0x24]
call fcn.0040153d
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
mov edx, ebx
call fcn.00401473
mov esi, eax
test esi, esi
je case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, edx
call fcn.0040153d
mov edx, dword [ebp - 0x14]
mov ebx, eax
mov eax, 2
mov dword [ebp - 0x214], edx
mov esi, dword [ebp - 0x18]
call fcn.00401431
mov edi, eax
mov eax, 0x11
call fcn.00401431
lea edx, [ebp - 0x1c8]
push 0
push edx
mov edx, dword [0x424c70]
push 0
or edx, 2
mov dword [ebp - 0x1ec], 1
push edx
push 0
push 0
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne case.0x40160f.65
cmp esi, 1
jne 0x40283b
mov al, 0x23
call fcn.00401431
push 0x40c050
call fcn.00405f3e
inc eax
jmp 0x40286f
cmp esi, 4
jne 0x402856
mov eax, 3
call fcn.00401416
mov dword [0x40c050], eax
mov eax, 4
jmp 0x40286f
cmp esi, 3
jne 0x40286f
push 0xc00
push 0x40c050
push 0
push dword [ebp - 0x1c]
call fcn.00403316
push eax
push 0x40c050
push dword [ebp - 0x214]
push 0
push edi
push dword [ebp - 0x1c8]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
push dword [ebp - 0x1c8]
setne al
movzx eax, al
neg eax
and dword [ebp - 0x1ec], eax
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov eax, 0x20019
call fcn.00401550
mov ebx, eax
mov eax, 0x33
call fcn.00401431
mov byte [edi], 0
mov edx, eax
mov dword [ebp - 0x1ec], 1
test ebx, ebx
je case.0x40160f.65
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], 0x3ff
push eax
lea eax, [ebp - 0x1d0]
push edi
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402919
mov ecx, dword [ebp - 0x1d0]
cmp ecx, 4
setne dl
xor eax, eax
cmp ecx, 1
setne al
test edx, eax
je 0x402928
cmp ecx, 2
je 0x402928
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp 0x402958
cmp ecx, 4
mov eax, dword [ebp - 0x18]
jne 0x402948
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x1ec], eax
push dword [edi]
push edi
call fcn.00405e69
jmp 0x402958
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1cc]
mov byte [edi + eax], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov eax, 0x20019
call fcn.00401550
mov ebx, eax
mov eax, 3
call fcn.00401416
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x4029dd
mov dword [ebp - 0x1d4], 0x3ff
cmp dword [ebp - 0x18], 0
je 0x4029a1
push 0x3ff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x4029cb
lea eax, [ebp - 0x1d4]
push 0
push 0
push 0
push 0
push eax
push edi
push edx
push ebx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x4029cb
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov byte [edi + 0x3ff], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push edi
call fcn.00405e80
push eax
call sub.KERNEL32.dll_CloseHandle
jmp case.0x40160f.65
mov eax, 0xffffffed
call fcn.00401431
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.00405d72
cmp eax, 0xffffffff
jne 0x402a33
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push eax
push edi
call fcn.00405e69
jmp case.0x40160f.65
cmp dword [ebp - 0x20], 0
je 0x402a5b
mov eax, 1
call fcn.00401416
mov edx, 1
mov byte [0x40bc50], al
jmp 0x402a6d
mov eax, 0x11
call fcn.00401431
push eax
call fcn.00405f3e
mov edx, eax
cmp byte [edi], 0
je 0x402a95
lea eax, [ebp - 0x1d8]
push 0
push eax
push edx
push 0x40bc50
push edi
call fcn.00405e80
push eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 2
mov dword [ebp - 0x218], 0
call fcn.00401416
mov ebx, eax
test eax, eax
jle case.0x40160f.65
cmp eax, 0x3ff
jle 0x402ace
mov ebx, 0x3ff
cmp byte [edi], 0
je 0x402ba4
push edi
mov byte [ebp - 0x219], 0
call fcn.00405e80
cmp dword [ebp - 0x218], ebx
mov edi, eax
jge 0x402ba4
lea eax, [ebp - 0x1dc]
push 0
push eax
lea eax, [ebp - 0x1dd]
push 1
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x402ba4
cmp dword [ebp - 0x1dc], 1
jne 0x402ba4
cmp dword [ebp - 0x1c], 0
jne 0x402f26
cmp byte [ebp - 0x219], 0xd
sete dl
cmp byte [ebp - 0x219], 0xa
sete al
or eax, edx
mov cl, byte [ebp - 0x1dd]
test al, 1
je 0x402b83
cmp byte [ebp - 0x219], cl
je 0x402b63
cmp cl, 0xd
setne dl
xor eax, eax
cmp cl, 0xa
setne al
test edx, eax
je 0x402b71
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402ba4
mov eax, dword [ebp - 0x218]
mov byte [eax + esi], cl
inc eax
mov dword [ebp - 0x218], eax
jmp 0x402ba4
mov edx, dword [ebp - 0x218]
mov byte [edx + esi], cl
inc edx
mov dword [ebp - 0x218], edx
mov byte [ebp - 0x219], cl
test cl, cl
je 0x402ba4
cmp edx, ebx
jmp 0x402aec
mov eax, dword [ebp - 0x218]
test eax, eax
mov byte [esi + eax], 0
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push dword [ebp - 0x1c]
mov eax, 2
push 0
call fcn.00401416
push eax
push edi
call fcn.00405e80
push eax
call sub.KERNEL32.dll_SetFilePointer
cmp dword [ebp - 0x24], 0
js case.0x40160f.65
push eax
push esi
call fcn.00405e69
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push edi
call fcn.00405e80
push eax
call sub.KERNEL32.dll_FindClose
jmp case.0x40160f.65
cmp byte [esi], 0
je 0x402c48
lea eax, [ebp - 0x19c]
push eax
push esi
call fcn.00405e80
push eax
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
je 0x402c48
lea eax, [ebp - 0x170]
push eax
push edi
call fcn.00405f27
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
mov eax, 2
call fcn.00401431
lea edx, [ebp - 0x19c]
push edx
push eax
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
jne 0x402c8b
mov byte [esi], 0
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push eax
push esi
call fcn.00405e69
lea eax, [ebp - 0x170]
push eax
push edi
call fcn.00405f27
jmp case.0x40160f.65
xor eax, eax
mov esi, 0xfffffd66
call fcn.00401431
mov ebx, eax
push eax
call fcn.00405bf4
test eax, eax
je 0x402cc9
push ebx
push 0x40bc50
call fcn.00405f27
jmp 0x402ce5
push ebx
push 0x42d400
push 0x40bc50
call fcn.00405f27
push eax
call fcn.00405fd5
push eax
call fcn.00405fcc
push 0x40bc50
call fcn.00405ca4
push 0x40bc50
call fcn.00405d4f
push 2
push 0x40000000
push 0x40bc50
call fcn.00405d72
mov dword [ebp - 0x220], eax
inc eax
je 0x402df3
mov edx, dword [0x424d10]
push edx
mov dword [ebp - 0x228], edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov dword [ebp - 0x224], eax
je 0x402de8
push 0
call fcn.004030c5
push dword [ebp - 0x228]
push dword [ebp - 0x224]
call fcn.004030de
push dword [ebp - 0x20]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
test eax, eax
mov dword [ebp - 0x22c], eax
je 0x402daa
push dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x24]
call fcn.00403316
mov eax, dword [ebp - 0x22c]
cmp byte [eax], 0
je 0x402d9f
mov esi, dword [edi + 4]
mov eax, dword [ebp - 0x224]
mov ebx, dword [edi]
add eax, esi
add edi, 8
push ebx
push edi
push eax
call fcn.00405c83
add edi, ebx
cmp byte [edi], 0
jmp 0x402d7e
push dword [ebp - 0x22c]
call sub.KERNEL32.dll_GlobalFree
lea eax, [ebp - 0x1e4]
push 0
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 0x224]
call sub.KERNEL32.dll_GlobalFree
push 0
push 0
push dword [ebp - 0x220]
push 0xffffffffffffffff
call fcn.00403316
mov esi, eax
push dword [ebp - 0x220]
call sub.KERNEL32.dll_CloseHandle
mov ebx, 0xfffffff3
test esi, esi
jns 0x402e12
push 0x40bc50
mov bl, 0xef
call sub.KERNEL32.dll_DeleteFileA
mov dword [ebp - 0x1ec], 1
push ebx
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov edi, eax
cmp eax, dword [0x424cbc]
jae 0x402eaa
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x20]
add ebx, dword [0x424cb8]
test eax, eax
jl 0x402e61
mov eax, dword [ebx + eax*4]
jne 0x402e55
lea eax, [ebx + 0x18]
push eax
push esi
call fcn.00405f27
jmp case.0x40160f.65
push eax
push esi
call fcn.00405e69
jmp case.0x40160f.65
not eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402e79
mov eax, 1
call fcn.00401416
mov dword [ebp - 0x24], eax
jmp 0x402e8c
push dword [ebp - 0x18]
lea eax, [ebx + 0x18]
push eax
call fcn.00406005
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x1c], 0
je case.0x40160f.65
push edi
call fcn.004011c0
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov edx, eax
cmp eax, 0x1f
ja 0x402f1a
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
je 0x402ef5
test eax, eax
je 0x402ee5
push edx
call fcn.004012f5
push 0
push 0
call fcn.00401238
jmp case.0x40160f.65
push 0
call fcn.0040134b
push eax
push esi
call fcn.00405e69
jmp case.0x40160f.65
test eax, eax
mov ecx, dword [0x424ca0]
je 0x402f0b
mov eax, dword [ebp - 0x24]
mov dword [ecx + edx*4 + 0x94], eax
jmp case.0x40160f.65
push dword [ecx + edx*4 + 0x94]
push esi
call fcn.00406005
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
movzx eax, byte [ebp - 0x1dd]
push eax
push esi
call fcn.00405e69
jmp 0x402f6d
and edx, dword [0x4211a0]
push 0
push edx
push 0xb
push dword [ebp - 0x1e8]
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x28], 0
je case.0x40160f.65
push 0
push 0
push dword [ebp - 0x1e8]
call sub.USER32.dll_InvalidateRect
mov edx, dword [ebp - 0x1ec]
add dword [0x424c48], edx
xor eax, eax
cmp eax, 0x7fffffff
jne 0x402f7d
mov eax, 0x7fffffff
jmp 0x402fd7
push eax
call fcn.004013e0
mov edx, eax
test eax, eax
jne 0x402f90
inc dword [ebp + 8]
mov dl, 1
jmp 0x402f99
mov eax, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
sub edx, eax
cmp dword [ebp + 0xc], 0
je 0x401598
push 0
mov eax, dword [0x425570]
push dword [0x425590]
add eax, edx
push 0x7530
mov dword [0x425570], eax
push eax
call sub.KERNEL32.dll_MulDiv
push eax
push 0x402
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageA
jmp 0x401598
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8