Function at 0x40143b
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
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x1a0
push ebx
mov edx, dword [0x7c1c18]
mov eax, section..ndata
push ebp
push esi
mov esi, dword [esp + 0x1b0]
xor ebx, ebx
push edi
push 7
pop ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x18], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
mov ebp, ebx
mov esi, dword [esp + 0x30]
mov edi, ecx
shl edi, 0xd
add edi, eax
shl esi, 0xd
add esi, eax
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], edi
mov dword [0x40a0c4], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffffe
mov dword [esp + 0x14], esi
cmp eax, 0x41
ja case.0x4014a1.65
jmp dword [eax*4 + 0x402a67]
mov eax, ecx
jmp 0x402a58
push ebx
push ecx
call fcn.004055e1
mov eax, 0x7fffffff
jmp 0x402a58
inc dword [0x7c1c0c]
test edx, edx
je 0x4014b6
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4014b6
push ecx
call fcn.00402d07
dec eax
push ebx
push eax
call fcn.0040139f
jmp 0x402a58
push ebx
push ecx
call fcn.004055e1
jmp case.0x4014a1.65
push ebx
call fcn.00402ba3
xor ecx, ecx
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4014a1.65
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4014a1.65
cmp dword [esp + 0x34], ebx
jne 0x401539
mov eax, dword [ecx*4 + 0x7c5ce0]
push 1
mov dword [ecx*4 + 0x7c5ca0], eax
call fcn.00402ba3
mov ecx, dword [esp + 0x2c]
jmp 0x401540
mov eax, dword [ecx*4 + 0x7c5ca0]
mov dword [ecx*4 + 0x7c5ce0], eax
jmp case.0x4014a1.65
mov esi, dword [esp + 0x34]
xor eax, eax
mov edx, dword [esi*4 + 0x7c5ce0]
test edx, edx
sete al
mov ecx, dword [esp + eax*4 + 0x2c]
mov eax, dword [esp + 0x38]
and eax, edx
mov dword [esi*4 + 0x7c5ce0], eax
jmp case.0x4014a1.2
mov eax, dword [esp + 0x30]
push dword [eax*4 + 0x7c5ce0]
push edi
call fcn.00405be0
jmp case.0x4014a1.65
mov eax, dword [0x7c1c04]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4015a4
push dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x7c1c08]
test eax, eax
je case.0x4014a1.65
push ecx
push eax
call esi
jmp case.0x4014a1.65
push 0xfffffffffffffff0
call fcn.00402bd4
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4014a1.65
xor ebp, ebp
inc ebp
jmp case.0x4014a1.65
push 0xfffffffffffffff0
call fcn.00402bd4
mov edi, eax
push edi
call fcn.0040613b
mov esi, eax
test esi, esi
je 0x401633
push 0x5c
push esi
call fcn.00405bbc
mov esi, eax
push ebx
push edi
mov al, byte [esi]
mov byte [esp + 0x18], al
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401628
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401627
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401628
inc ebp
mov al, byte [esp + 0x10]
mov byte [esi], al
inc esi
test al, al
jne 0x4015f1
push 0x40c0c8
cmp dword [esp + 0x34], ebx
je 0x401665
push 0xffffffffffffffe6
call fcn.004055e1
push edi
push 0x7f2000
call fcn.004060a4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne case.0x4014a1.65
inc ebp
jmp case.0x4014a1.65
push 0xfffffffffffffff5
jmp 0x4014e8
push ebx
call fcn.00402bd4
push eax
call fcn.00405b95
mov ecx, dword [esp + 0x34]
test eax, eax
cmovne ecx, dword [esp + 0x30]
jmp case.0x4014a1.2
push 0xffffffffffffffd0
call fcn.00402bd4
push 0xffffffffffffffdf
mov esi, eax
call fcn.00402bd4
push 0x13
mov edi, eax
call fcn.00402bd4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4016b9
push 0x40c0c8
push 0xffffffffffffffe3
jmp 0x4014e8
cmp dword [esp + 0x34], ebx
je 0x4015d4
push esi
call fcn.00405b95
test eax, eax
je 0x4015d4
push edi
push esi
call fcn.00405969
push 0x40c0c8
push 0xffffffffffffffe4
jmp 0x4014e8
push ebx
call fcn.00402bd4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x401727
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x40172c
cmp byte [eax], bl
je 0x40172c
push edi
call fcn.00405b95
test eax, eax
je 0x401727
add eax, 0x2c
push eax
push dword [esp + 0x18]
call fcn.004060a4
jmp 0x40172c
xor ebp, ebp
mov byte [esi], bl
inc ebp
cmp dword [esp + 0x34], ebx
jne case.0x4014a1.65
push 0x2000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4014a1.65
push 0xffffffffffffffff
call fcn.00402bd4
lea ecx, [esp + 0x44]
push ecx
push edi
push 0x2000
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4014a1.65
xor ebp, ebp
mov byte [edi], bl
inc ebp
jmp case.0x4014a1.65
push 0xffffffffffffffef
call fcn.00402bd4
push eax
push edi
call fcn.00405feb
jmp 0x4015cc
push 0x31
call fcn.00402bd4
mov esi, eax
mov eax, dword [esp + 0x2c]
and eax, 7
mov dword [esp + 0x18], esi
push esi
mov dword [esp + 0x14], eax
call fcn.004062cf
mov edi, 0x40a0c8
push esi
test eax, eax
je 0x4017b8
push edi
call fcn.004060a4
jmp 0x4017cf
push 0x7f2000
push edi
call fcn.004060a4
push eax
call fcn.00405b1e
push eax
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00406235
xor esi, esi
inc esi
mov eax, dword [esp + 0x10]
cmp eax, 3
jl 0x401815
push edi
call fcn.00405b95
mov ecx, ebx
test eax, eax
je 0x4017fe
lea ecx, [esp + 0x38]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40181f
push edi
call fcn.00406113
xor eax, eax
cmp dword [esp + 0x10], esi
setne al
inc eax
push eax
push 0x40000000
push edi
call fcn.00405ef7
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x4018cd
cmp dword [esp + 0x10], ebx
jne 0x4018b0
push section..ndata
push 0x40e0c8
call fcn.004060a4
push edi
push section..ndata
call fcn.004060a4
push dword [esp + 0x40]
push 0x40c0c8
call fcn.004056c6
push 0x40e0c8
push section..ndata
call fcn.004060a4
mov eax, dword [esp + 0x2c]
sar eax, 3
push eax
push 0x40c0c8
call fcn.00406032
sub eax, 4
je 0x4017d8
dec eax
je 0x4018a5
push edi
push 0xfffffffffffffffa
jmp 0x4014b1
inc dword [0x7c5ce8]
jmp 0x402a56
push dword [esp + 0x18]
push 0xffffffffffffffe2
call fcn.004055e1
cmp dword [esp + 0x10], 2
jne case.0x4014a1.65
mov ebp, esi
jmp case.0x4014a1.65
mov esi, dword [esp + 0x18]
push esi
push 0xffffffffffffffea
call fcn.004055e1
inc dword [0x7c5d14]
push ebx
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x40]
call fcn.00402d63
dec dword [0x7c5d14]
cmp dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x401906
cmp dword [esp + 0x3c], 0xffffffff
je 0x401917
lea eax, [esp + 0x38]
push eax
push ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
jns case.0x4014a1.65
cmp eax, 0xfffffffe
jne 0x401943
push 0xffffffffffffffe9
push edi
call fcn.004056c6
push esi
push edi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40194b
push 0xffffffffffffffee
push edi
call fcn.004056c6
push 0x200010
push edi
call fcn.00406032
jmp 0x4014b6
push ebx
call fcn.00402bd4
push dword [esp + 0x30]
push eax
call fcn.00405cd7
jmp case.0x4014a1.65
push 0x31
call fcn.00402bd4
push dword [esp + 0x2c]
push eax
call fcn.00406032
test eax, eax
je 0x4015d4
cmp eax, dword [esp + 0x34]
jne 0x401998
mov eax, dword [esp + 0x38]
jmp 0x402a58
cmp eax, dword [esp + 0x3c]
jne case.0x4014a1.65
mov eax, dword [esp + 0x40]
jmp 0x402a58
push 0xfffffffffffffff0
jmp 0x40195c
push 1
call fcn.00402bd4
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x40157f
push 2
call fcn.00402ba3
push 3
mov esi, eax
call fcn.00402ba3
push 1
mov dword [esp + 0x20], eax
call fcn.00402bd4
mov dword [esp + 0x20], eax
mov byte [edi], bl
cmp dword [esp + 0x34], ebx
je 0x4019f1
test esi, esi
je case.0x4014a1.65
push eax
call sub.KERNEL32.dll_lstrlenA
mov ecx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
jns 0x401a09
add eax, ecx
js case.0x4014a1.65
cmp eax, ecx
cmovg eax, ecx
add eax, dword [esp + 0x20]
push eax
push edi
call fcn.004060a4
test esi, esi
je case.0x4014a1.65
jns 0x401a31
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
push 0
pop eax
cmovs esi, eax
cmp esi, 0x2000
jge case.0x4014a1.65
mov byte [esi + edi], bl
jmp case.0x4014a1.65
push 0x20
call fcn.00402bd4
push 0x31
mov esi, eax
call fcn.00402bd4
push eax
push esi
cmp dword [esp + 0x44], ebx
jne 0x401a74
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40198f
mov eax, dword [esp + 0x34]
jmp 0x402a58
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401a63
xor esi, esi
inc esi
push esi
call fcn.00402bd4
push 0x2000
push edi
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401aaf
cmp dword [esp + 0x34], ebx
je 0x401ab3
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401ab3
mov ebp, esi
mov byte [edi], bl
mov byte [edi + 0x1fff], bl
jmp case.0x4014a1.65
push ebx
call fcn.00402ba3
push 1
mov esi, eax
call fcn.00402ba3
cmp dword [esp + 0x40], ebx
jne 0x401ae6
cmp esi, eax
jl 0x40198f
jle 0x401a6b
mov eax, dword [esp + 0x3c]
jmp 0x402a58
cmp esi, eax
jb 0x40198f
jbe 0x401a6b
jmp 0x401add
xor esi, esi
inc esi
push esi
call fcn.00402ba3
push 2
mov dword [esp + 0x14], eax
call fcn.00402ba3
mov ecx, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xc
ja case.default.0x401b19
jmp dword [eax*4 + 0x402b6f]
mov edx, dword [esp + 0x10]
add edx, ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
sub edx, ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
imul edx, ecx
jmp 0x401bb6
test ecx, ecx
je 0x401b4c
mov eax, dword [esp + 0x10]
cdq
idiv ecx
jmp 0x401b75
mov edx, ebx
mov ebp, esi
jmp 0x401bb6
mov edx, dword [esp + 0x10]
or edx, ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
and edx, ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
xor edx, ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
xor eax, eax
test edx, edx
sete al
mov edx, eax
jmp 0x401bb6
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x401b85
test ecx, ecx
je 0x401b91
mov edx, esi
jmp 0x401bb6
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x401b81
mov edx, ebx
jmp 0x401bb6
test ecx, ecx
je 0x401b4c
mov eax, dword [esp + 0x10]
cdq
idiv ecx
jmp 0x401bb6
mov edx, dword [esp + 0x10]
shl edx, cl
jmp 0x401bb6
mov edx, dword [esp + 0x10]
sar edx, cl
jmp 0x401bb6
mov edx, dword [esp + 0x10]
push edx
jmp 0x40157f
push 1
call fcn.00402bd4
push 2
mov esi, eax
call fcn.00402ba3
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4014a1.65
mov eax, dword [esp + 0x34]
mov esi, dword [0x40a0c0]
test eax, eax
je 0x401c3a
dec eax
test esi, esi
je 0x401c27
mov esi, dword [esi]
test eax, eax
jne 0x401beb
test esi, esi
je 0x401c27
add esi, 4
mov edi, 0x40a0c8
push esi
push edi
call fcn.004060a4
mov eax, dword [0x40a0c0]
add eax, 4
push eax
push esi
call fcn.004060a4
mov eax, dword [0x40a0c0]
push edi
add eax, 4
push eax
jmp 0x402812
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.004056c6
push eax
jmp 0x401951
cmp dword [esp + 0x30], ebx
je 0x401c5f
test esi, esi
je 0x4015d4
lea eax, [esi + 4]
push eax
push edi
call fcn.004060a4
mov eax, dword [esi]
mov dword [0x40a0c0], eax
push esi
jmp 0x40205a
push 0x2004
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x2c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004056c6
mov eax, dword [0x40a0c0]
mov dword [esi], eax
mov dword [0x40a0c0], esi
jmp case.0x4014a1.65
push 3
call fcn.00402ba3
push 4
mov dword [esp + 0x1c], eax
call fcn.00402ba3
mov esi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], esi
test al, 1
je 0x401cbc
push 0x33
call fcn.00402bd4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
test al, 2
je 0x401ccd
push 0x44
call fcn.00402bd4
mov esi, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x28], 0x21
push 1
jne 0x401d25
call fcn.00402ba3
push 2
mov dword [esp + 0x14], eax
call fcn.00402ba3
mov ecx, dword [esp + 0x40]
sar ecx, 2
test ecx, ecx
je 0x401d13
lea edx, [esp + 0x14]
push edx
push ecx
push ebx
push esi
push dword [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb ebp, ebp
mov eax, dword [esp + 0x14]
inc ebp
jmp 0x401d55
push esi
push dword [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401d51
call fcn.00402bd4
push 0x12
mov esi, eax
call fcn.00402bd4
xor ecx, ecx
cmp byte [eax], cl
cmovne ecx, eax
push ecx
xor ecx, ecx
cmp byte [esi], cl
cmovne ecx, esi
push ecx
push dword [esp + 0x18]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], ebx
jl case.0x4014a1.65
jmp 0x4019bc
push ebx
call fcn.00402ba3
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x401678
push 2
call fcn.00402ba3
push eax
push 1
call fcn.00402ba3
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4019bc
mov eax, dword [0x7c5c68]
add eax, dword [esp + 0x30]
push eax
push 0xffffffffffffffeb
push ebx
call fcn.00402ba3
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4014a1.65
push dword [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x34]
mov ecx, edx
imul ecx, dword [esp + 0x5c]
imul edx, dword [esp + 0x58]
push 0x10
push ecx
push edx
push ebx
push ebx
call fcn.00402bd4
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je case.0x4014a1.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4014a1.65
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
call fcn.00402ba3
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x4140c8], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402ba3
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x30]
mov dword [0x4140d8], eax
mov al, cl
and al, 1
mov byte [0x4140df], 1
mov byte [0x4140dc], al
mov al, cl
and al, 2
and cl, 4
push 0x4140e4
mov byte [0x4140dd], al
mov byte [0x4140de], cl
call fcn.004056c6
push 0x4140c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4019bc
push ebx
call fcn.00402ba3
push 1
mov esi, eax
call fcn.00402ba3
push eax
push esi
cmp dword [esp + 0x40], ebx
jne 0x401eb5
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4014a1.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4014a1.65
push ebx
call fcn.00402bd4
push 0x31
mov ebx, eax
call fcn.00402bd4
push 0x22
mov edi, eax
call fcn.00402bd4
push 0x15
mov esi, eax
call fcn.00402bd4
push 0x40c0c8
push 0xffffffffffffffec
call fcn.004055e1
push dword [esp + 0x38]
xor ecx, ecx
cmp byte [esi], cl
push 0x7f2000
cmovne ecx, esi
xor eax, eax
cmp byte [ebx], al
push ecx
push edi
cmovne eax, ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4014a1.65
jmp 0x4015d4
push ebx
call fcn.00402bd4
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004055e1
push esi
call fcn.00405c92
mov esi, eax
test esi, esi
je 0x4015d4
cmp dword [esp + 0x34], ebx
je 0x401f94
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push esi
call edi
mov ebx, 0x102
jmp 0x401f64
push 0xf
call fcn.00405939
push 0x64
push esi
call edi
cmp eax, ebx
je 0x401f58
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x30], ebp
jl 0x401f8a
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
call fcn.00405be0
jmp 0x401f94
xor eax, eax
inc eax
cmp dword [esp + 0x18], ebp
cmovne ebp, eax
push esi
jmp 0x402616
push 2
call fcn.00402bd4
push eax
call fcn.00405b95
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401fc4
push dword [eax + 0x14]
push esi
call fcn.00405be0
mov eax, dword [esp + 0x1c]
push dword [eax + 0x18]
jmp 0x40157f
mov byte [edi], bl
mov byte [esi], bl
jmp 0x4015d4
push 0xffffffffffffffee
call fcn.00402bd4
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
xor ebp, ebp
mov byte [edi], bl
inc ebp
mov dword [esp + 0x1c], eax
mov byte [esi], bl
test eax, eax
je case.0x4014a1.65
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je case.0x4014a1.65
push eax
push dword [esp + 0x20]
push ebx
push dword [esp + 0x2c]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402056
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x18]
push eax
push 0x4082a0
push dword [esp + 0x24]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402056
mov eax, dword [esp + 0x14]
push dword [eax + 8]
push edi
call fcn.00405be0
mov eax, dword [esp + 0x14]
push dword [eax + 0xc]
push esi
call fcn.00405be0
mov ebp, ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4014a1.65
xor esi, esi
inc esi
mov ebp, esi
cmp dword [0x7c5c80], ebx
jl 0x402144
push 0xfffffffffffffff0
call fcn.00402bd4
mov edi, eax
push esi
mov dword [esp + 0x20], edi
call fcn.00402bd4
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], ebx
je 0x4020a4
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4020b8
mov edi, dword [esp + 0x1c]
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x402138
push dword [esp + 0x14]
push edi
call sub.KERNEL32.dll_GetProcAddress
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x402109
mov ebp, ebx
cmp dword [esp + 0x34], ebx
je 0x4020e9
push dword [esp + 0x34]
call fcn.00402d25
call dword [esp + 0x1c]
test eax, eax
je 0x402114
mov ebp, esi
jmp 0x402114
mov eax, dword [esp + 0x18]
push section..data
push 0x40a0c0
push section..ndata
push 0x2000
push eax
call ecx
add esp, 0x14
jmp 0x402114
push dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.004055e1
cmp dword [esp + 0x38], ebx
jne case.0x4014a1.65
push edi
call fcn.00403748
test eax, eax
je case.0x4014a1.65
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4014a1.65
push 0x40c0c8
push 0xfffffffffffffff6
jmp 0x4014e8
push 0x40c0c8
push 0xffffffffffffffe7
jmp 0x4014e8
push 0xfffffffffffffff0
call fcn.00402bd4
push 0xffffffffffffffdf
mov dword [esp + 0x48], eax
call fcn.00402bd4
mov esi, eax
push 2
mov dword [esp + 0x18], esi
call fcn.00402bd4
push 0xffffffffffffffcd
mov dword [esp + 0x50], eax
call fcn.00402bd4
push 0x45
mov dword [esp + 0x1c], eax
call fcn.00402bd4
push esi
mov dword [esp + 0x4c], eax
call fcn.004062cf
test eax, eax
jne 0x40219a
push 0x21
call fcn.00402bd4
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x408710
inc esi
push esi
push ebx
push 0x408730
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4022c7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push 0x408720
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
test edi, edi
js 0x4022ad
mov eax, dword [esp + 0x10]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, 0x8000
jne 0x402208
mov eax, dword [esp + 0x10]
push 0x7f2000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x3c]
mov eax, edx
sar eax, 8
and eax, 0x7f
mov dword [esp + 0x1c], eax
je 0x402228
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
sar edx, 0x10
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x18]
cmp byte [eax], bl
je 0x402252
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + 0x3c]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x44]
mov eax, dword [esp + 0x10]
push dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x10]
push dword [esp + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test edi, edi
js 0x4022a3
push 0x2000
push dword [esp + 0x18]
mov edi, 0x80004005
push 0xffffffffffffffff
push dword [esp + 0x50]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4022a3
mov eax, dword [esp + 0x20]
push esi
push dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
js 0x4022c7
push 0x40c0c8
push 0xfffffffffffffff4
jmp 0x4014e8
push 0x40c0c8
mov ebp, esi
push 0xfffffffffffffff0
jmp 0x4014e8
push ebx
call fcn.00402bd4
push 0x11
mov esi, eax
call fcn.00402bd4
push 0x23
mov edi, eax
call fcn.00402bd4
push esi
mov dword [esp + 0x48], eax
call fcn.00405b95
test eax, eax
jne 0x402308
push ebx
push 0xfffffffffffffff9
call fcn.004055e1
jmp 0x4015d4
mov eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 2
call sub.KERNEL32.dll_lstrlenA
push edi
mov byte [eax + esi + 1], bl
call sub.KERNEL32.dll_lstrlenA
mov ecx, dword [esp + 0x44]
push ecx
push ebx
mov byte [eax + edi + 1], bl
mov ax, word [esp + 0x3c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x72], ecx
mov word [esp + 0x68], ax
call fcn.004055e1
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4014a1.65
jmp 0x4022fb
cmp ecx, 0xbadf00d
jne 0x401c27
inc dword [0x7c5cf4]
jmp case.0x4014a1.65
mov esi, ebx
mov edi, ebx
test ecx, ecx
je 0x402389
push ebx
call fcn.00402bd4
mov ebx, eax
cmp dword [esp + 0x30], esi
je 0x402398
push 0x11
call fcn.00402bd4
mov esi, eax
cmp dword [esp + 0x3c], edi
je 0x4023a7
push 0x22
call fcn.00402bd4
mov edi, eax
push 0xffffffffffffffcd
call fcn.00402bd4
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015cc
push 0xa
pop eax
push 1
mov word [esp + 0x14], ax
call fcn.00402bd4
push 0x12
mov edi, eax
call fcn.00402bd4
push 0xffffffffffffffdd
mov esi, eax
call fcn.00402bd4
push eax
push 0x1fff
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x20]
cmp byte [eax], 0xa
jne case.0x4014a1.65
xor ebp, ebp
mov byte [eax], bl
inc ebp
jmp case.0x4014a1.65
cmp dword [esp + 0x3c], ebx
jne 0x40243d
push 2
call fcn.00402cc8
mov esi, eax
test esi, esi
je 0x4015d4
push 0x33
call fcn.00402bd4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40245e
push 0x22
call fcn.00402bd4
mov ecx, dword [esp + 0x3c]
and ecx, 2
push ecx
push eax
push dword [esp + 0x38]
call fcn.00402bbf
push eax
call fcn.00402c12
mov edi, eax
test edi, edi
je case.0x4014a1.65
jmp 0x4015d4
push ecx
call fcn.00402bbf
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
push 2
mov dword [esp + 0x48], eax
call fcn.00402bd4
push 0x11
mov dword [esp + 0x4c], eax
call fcn.00402bd4
push ebx
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
mov ecx, dword [0x7c5d10]
inc edi
push ebx
or ecx, 2
mov ebp, edi
push ecx
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x4014a1.65
mov eax, ebx
mov esi, 0x40e0c8
cmp dword [esp + 0x20], edi
jne 0x4024d9
push 0x23
call fcn.00402bd4
push esi
call sub.KERNEL32.dll_lstrlenA
inc eax
mov edi, dword [esp + 0x20]
cmp edi, 4
jne 0x4024f0
push 3
call fcn.00402ba3
push edi
mov dword [0x40e0c8], eax
pop eax
cmp edi, 3
jne 0x402505
push 0x6000
push esi
push ebx
push dword [esp + 0x44]
call fcn.00402d63
push eax
push esi
push dword [esp + 0x4c]
push ebx
push dword [esp + 0x58]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x14]
neg eax
sbb eax, eax
and ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4014a1.65
push 0x20019
call fcn.00402cc8
push 0x33
mov esi, eax
call fcn.00402bd4
mov byte [edi], bl
test esi, esi
je 0x4015d4
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x2000
push ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4025aa
cmp dword [esp + 0x14], 4
je 0x40258f
cmp dword [esp + 0x14], ecx
je 0x402583
cmp dword [esp + 0x14], 2
jne 0x4025aa
mov ebp, dword [esp + 0x3c]
mov byte [edi + 0x1fff], bl
jmp 0x4025ae
push dword [edi]
xor eax, eax
cmp dword [esp + 0x40], eax
push edi
sete al
mov dword [esp + 0x18], eax
call fcn.00405be0
mov ebp, dword [esp + 0x10]
jmp 0x4025ae
mov byte [edi], bl
mov ebp, ecx
push esi
jmp 0x402524
push 0x20019
call fcn.00402cc8
push 3
mov esi, eax
call fcn.00402ba3
mov byte [edi], bl
test esi, esi
je 0x4015d4
mov ecx, 0x1fff
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x3c], ebx
je 0x4025ec
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402587
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x54]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x402587
jmp 0x4015d4
cmp byte [edi], bl
je case.0x4014a1.65
push edi
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4014a1.65
push 0xffffffffffffffed
call fcn.00402bd4
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
call fcn.00405ef7
cmp eax, 0xffffffff
jne 0x4019bc
mov byte [edi], bl
jmp 0x4015d4
xor esi, esi
inc esi
cmp dword [esp + 0x34], ebx
je 0x40265e
push esi
call fcn.00402ba3
mov byte [0x40c0c8], al
mov eax, esi
jmp 0x40266b
push 0x11
call fcn.00402bd4
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], bl
je 0x4018c6
push ebx
lea ecx, [esp + 0x48]
push ecx
push eax
push 0x40c0c8
push edi
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x4018c0
push 2
mov dword [esp + 0x1c], ebx
call fcn.00402ba3
xor esi, esi
inc esi
cmp eax, esi
jl case.0x4014a1.65
mov ecx, 0x1fff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
cmp byte [edi], bl
je 0x40276a
push edi
mov byte [esp + 0x14], bl
call fcn.00406190
mov ecx, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x20], ebx
jle 0x40276e
push esi
lea eax, [esp + 0x2b]
push eax
push ecx
call fcn.00405f24
test eax, eax
je 0x40274d
cmp dword [esp + 0x38], ebx
jne 0x402759
mov al, byte [esp + 0x10]
cmp al, 0xd
je 0x402723
cmp al, 0xa
je 0x402723
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x27]
mov byte [esp + 0x10], cl
mov byte [eax + edi], cl
inc eax
mov dword [esp + 0x18], eax
test cl, cl
je 0x402751
mov ecx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x4026dd
jmp 0x402751
mov cl, byte [esp + 0x27]
cmp al, cl
je 0x40273f
cmp cl, 0xd
je 0x402735
cmp cl, 0xa
jne 0x40273f
mov eax, dword [esp + 0x18]
mov byte [eax + edi], cl
inc eax
jmp 0x402751
push esi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov byte [eax + edi], bl
jmp 0x40268c
movzx eax, byte [esp + 0x27]
push eax
push edi
call fcn.00405be0
jmp 0x402a56
mov edi, dword [esp + 0x14]
mov eax, ebx
jmp 0x402751
cmp byte [edi], bl
je case.0x4014a1.65
push dword [esp + 0x38]
push ebx
push 2
call fcn.00402ba3
push eax
push edi
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x30], ebx
jl case.0x4014a1.65
push eax
push esi
jmp 0x401580
cmp byte [edi], bl
je case.0x4014a1.65
push edi
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4014a1.65
cmp byte [esi], bl
je 0x40176b
lea eax, [esp + 0x70]
push eax
push esi
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40176b
jmp 0x402809
push 2
call fcn.00402bd4
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402802
mov byte [esi], bl
jmp 0x40263f
push eax
push esi
call fcn.00405be0
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.004060a4
jmp case.0x4014a1.65
push 0xfffffffffffffff0
mov dword [esp + 0x24], 0xfffffd66
call fcn.00402bd4
mov esi, eax
push esi
mov dword [esp + 0x48], esi
call fcn.004062cf
test eax, eax
jne 0x402842
push 0xffffffffffffffed
call fcn.00402bd4
push esi
call fcn.00406113
push 2
push 0x40000000
push esi
call fcn.00405ef7
mov edi, eax
mov dword [esp + 0x4c], edi
cmp edi, 0xffffffff
je 0x402924
mov eax, dword [0x7c5c28]
push eax
push 0x40
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40291d
push ebx
call fcn.00402d4c
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.00402d36
push dword [esp + 0x34]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x48], edi
test edi, edi
je 0x4028ec
push dword [esp + 0x34]
push edi
push ebx
push dword [esp + 0x3c]
call fcn.00402d63
cmp byte [edi], bl
je 0x4028e2
mov ebp, dword [esp + 0x14]
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebp
push eax
call fcn.00405c72
add edi, esi
cmp byte [edi], bl
jne 0x4028c2
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push ebx
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push edi
push 0xffffffffffffffff
call fcn.00402d63
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop edi
cmp dword [esp + 0x20], ebx
jge 0x40293a
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ebp, ebp
inc ebp
push edi
call fcn.00402d25
jmp case.0x4014a1.65
push ebx
call fcn.00402ba3
mov ebx, eax
cmp ebx, dword [0x7c5c4c]
jae 0x4015d4
mov ecx, dword [esp + 0x34]
imul edi, ebx, 0x2018
add edi, dword [0x7c5c48]
test ecx, ecx
js 0x402980
mov eax, dword [edi + ecx*4]
jne 0x40279e
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x402812
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x34], eax
je 0x40299a
push 1
call fcn.00402ba3
mov ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x4029b2
push dword [esp + 0x3c]
lea eax, [edi + 0x18]
push eax
call fcn.004056c6
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x38], ebp
je case.0x4014a1.65
push ebx
call fcn.0040122b
jmp case.0x4014a1.65
push ebx
call fcn.00402ba3
mov edx, eax
cmp edx, 0x20
jae 0x4015d4
cmp dword [esp + 0x38], ebx
je 0x402a05
cmp dword [esp + 0x34], ebx
je 0x4029fa
push edx
call fcn.0040129a
push ebx
push ebx
call fcn.004012e7
jmp case.0x4014a1.65
push ebx
call fcn.004011a0
jmp 0x40279e
mov eax, dword [0x7c5c30]
cmp dword [esp + 0x34], ebx
je 0x402a1d
mov ecx, dword [esp + 0x30]
mov dword [eax + edx*4 + 0x94], ecx
jmp case.0x4014a1.65
push dword [eax + edx*4 + 0x94]
push esi
call fcn.004056c6
jmp case.0x4014a1.65
and ecx, dword [0x7a89e8]
push ebx
push ecx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x2c], ebx
je case.0x4014a1.65
mov eax, dword [esp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
add dword [0x7c5ce8], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 4