Function at 0x40144b
Capabilities:
Copy file
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Resolve function by parsing pe exports
Set current directory
Set file attributes
Set registry value

Disassembly:
sub esp, 0x1a8
push ebx
mov edx, dword [0x7a2418]
mov eax, section..ndata
push ebp
push esi
mov esi, dword [esp + 0x1b8]
xor ebx, ebx
push edi
push 7
pop ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x14], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov ebp, ecx
mov edi, dword [esp + 0x2c]
mov esi, edi
shl ebp, 0xa
add ebp, eax
shl esi, 0xa
add esi, eax
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [0x40a0c4], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
cmp eax, 0x41
ja case.0x4014ad.65
jmp dword [eax*4 + 0x402a7b]
mov eax, ecx
jmp 0x402a6b
push ebx
push ecx
call fcn.004057bc
mov eax, 0x7fffffff
jmp 0x402a6b
inc dword [0x7a240c]
test edx, edx
je 0x4014c2
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4014c2
push ecx
call fcn.00402d20
dec eax
push ebx
push eax
call fcn.004013af
jmp 0x402a6b
push ebx
push ecx
call fcn.004057bc
jmp case.0x4014ad.65
push ebx
call fcn.00402bb7
xor edi, edi
inc edi
cmp eax, edi
pop ecx
cmovg edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4014ad.65
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4014ad.65
cmp dword [esp + 0x30], ebx
jne 0x401553
mov eax, dword [ecx*4 + 0x7a2ce0]
push 1
mov dword [ecx*4 + 0x7a2ca0], eax
call fcn.00402bb7
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [eax*4 + 0x7a2ce0], ecx
jmp case.0x4014ad.65
mov eax, dword [ecx*4 + 0x7a2ca0]
mov dword [ecx*4 + 0x7a2ce0], eax
jmp case.0x4014ad.65
mov esi, dword [esp + 0x30]
xor ecx, ecx
push 4
pop eax
mov edx, dword [esi*4 + 0x7a2ce0]
test edx, edx
cmove ecx, eax
mov eax, dword [esp + 0x34]
and eax, edx
mov dword [esi*4 + 0x7a2ce0], eax
mov eax, dword [esp + ecx + 0x28]
jmp 0x402a6b
push dword [edi*4 + 0x7a2ce0]
push ebp
call fcn.00405ec2
jmp case.0x4014ad.65
mov eax, dword [0x7a2404]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4015ba
push edi
push eax
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [0x7a2408]
test eax, eax
je case.0x4014ad.65
push ecx
push eax
call esi
jmp case.0x4014ad.65
push 0xfffffffffffffff0
call fcn.00402bed
push dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4014ad.65
xor eax, eax
inc eax
jmp 0x402a63
push 0xfffffffffffffff0
call fcn.00402bed
mov edi, eax
push edi
call fcn.0040644e
mov esi, eax
test esi, esi
je 0x40165f
push 0x5c
push esi
call fcn.00405e9e
mov esi, eax
mov al, byte [esi]
mov byte [esp + 0x14], al
mov byte [esi], bl
test al, al
jne 0x401634
cmp dword [esp + 0x30], ebx
je 0x401634
call fcn.00405de8
test eax, eax
je 0x401634
push edi
call fcn.004058c1
jmp 0x40163a
push edi
call fcn.004058a1
test eax, eax
je 0x401654
cmp eax, 0xb7
jne 0x401650
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401654
inc dword [esp + 0x10]
mov al, byte [esp + 0x14]
mov byte [esi], al
inc esi
test al, al
jne 0x401607
push 0x40a4c8
cmp dword [esp + 0x30], ebx
je 0x401695
push 0xffffffffffffffe6
call fcn.004057bc
push edi
push 0x7a8800
call fcn.004063b7
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x402a63
inc eax
jmp 0x402a63
push 0xfffffffffffffff5
jmp 0x4014f4
push ebx
call fcn.00402bed
push eax
call fcn.00405e77
mov ecx, dword [esp + 0x30]
test eax, eax
cmovne ecx, dword [esp + 0x2c]
jmp case.0x4014ad.2
push 0xffffffffffffffd0
call fcn.00402bed
push 0xffffffffffffffdf
mov esi, eax
call fcn.00402bed
push 0x13
mov edi, eax
call fcn.00402bed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4016e9
push 0x40a4c8
push 0xffffffffffffffe3
jmp 0x4014f4
cmp dword [esp + 0x30], ebx
je 0x4015ea
push esi
call fcn.00405e77
test eax, eax
je 0x4015ea
push edi
push esi
call fcn.00405c4d
push 0x40a4c8
push 0xffffffffffffffe4
jmp 0x4014f4
push ebx
call fcn.00402bed
mov edi, eax
mov ebp, 0x400
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40173e
xor eax, eax
mov byte [esi], bl
inc eax
mov dword [esp + 0x10], eax
jmp 0x401765
mov eax, dword [esp + 0x18]
cmp eax, edi
jbe 0x401761
cmp byte [eax], bl
je 0x401761
push edi
call fcn.00405e77
test eax, eax
je 0x401733
add eax, 0x2c
push eax
push dword [esp + 0x1c]
call fcn.004063b7
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], ebx
jne 0x402a63
push ebp
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4014ad.65
push 0xffffffffffffffff
call fcn.00402bed
lea ecx, [esp + 0x44]
push ecx
push ebp
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4014ad.65
xor eax, eax
mov byte [ebp], bl
inc eax
jmp 0x402a63
push 0xffffffffffffffef
call fcn.00402bed
push eax
push ebp
call fcn.004062fe
jmp 0x4015e2
push 0x31
call fcn.00402bed
mov esi, dword [esp + 0x28]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
and esi, 7
call fcn.004065e0
push ebp
mov ebp, 0x40a0c8
test eax, eax
je 0x4017ea
push ebp
call fcn.004063b7
jmp 0x401801
push 0x7a8800
push ebp
call fcn.004063b7
push eax
call fcn.00405e00
push eax
call sub.KERNEL32.dll_lstrcatA
push ebp
call fcn.00406546
xor edi, edi
inc edi
cmp esi, 3
jl 0x40183c
push ebp
call fcn.00405e77
mov ecx, ebx
test eax, eax
je 0x40182c
lea ecx, [esp + 0x34]
add eax, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov ecx, eax
add esi, 0xfffffffd
or esi, 0x80000000
and esi, ecx
neg esi
sbb esi, esi
inc esi
test esi, esi
jne 0x401846
push ebp
call fcn.00406426
xor eax, eax
cmp esi, edi
setne al
inc eax
push eax
push 0x40000000
push ebp
call fcn.004061d9
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4018ee
test esi, esi
jne 0x4018d5
push section..ndata
push 0x40a8c8
call fcn.004063b7
push ebp
push section..ndata
call fcn.004063b7
push dword [esp + 0x3c]
push 0x40a4c8
call fcn.0040593f
push 0x40a8c8
push section..ndata
call fcn.004063b7
mov eax, dword [esp + 0x28]
sar eax, 3
push eax
push 0x40a4c8
call fcn.00406345
sub eax, 4
je 0x40180a
sub eax, 1
je 0x4018ca
push ebp
push 0xfffffffffffffffa
jmp 0x4014bd
inc dword [0x7a2ce8]
jmp 0x402a69
mov edi, dword [esp + 0x18]
push edi
push 0xffffffffffffffe2
call fcn.004057bc
xor eax, eax
cmp esi, 2
sete al
jmp 0x402a63
mov edi, dword [esp + 0x18]
push edi
push 0xffffffffffffffea
call fcn.004057bc
mov esi, dword [esp + 0x1c]
inc dword [0x7a2d14]
push ebx
push ebx
push esi
push dword [esp + 0x3c]
call fcn.00402efb
dec dword [0x7a2d14]
cmp dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x401928
cmp dword [esp + 0x38], 0xffffffff
je 0x401936
lea eax, [esp + 0x34]
push eax
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
jns case.0x4014ad.65
cmp eax, 0xfffffffe
jne 0x40195f
push 0xffffffffffffffe9
push ebp
call fcn.0040593f
push edi
push ebp
call sub.KERNEL32.dll_lstrcatA
jmp 0x401967
push 0xffffffffffffffee
push ebp
call fcn.0040593f
push 0x200010
push ebp
call fcn.00406345
jmp 0x4014c2
push ebx
call fcn.00402bed
push dword [esp + 0x2c]
push eax
call fcn.00405fbb
jmp case.0x4014ad.65
push 0x31
call fcn.00402bed
push dword [esp + 0x28]
push eax
call fcn.00406345
test eax, eax
je 0x4015ea
cmp eax, dword [esp + 0x30]
jne 0x4019b4
mov eax, dword [esp + 0x34]
jmp 0x402a6b
cmp eax, dword [esp + 0x38]
jne case.0x4014ad.65
mov eax, dword [esp + 0x3c]
jmp 0x402a6b
push 0xfffffffffffffff0
jmp 0x401978
push 1
call fcn.00402bed
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x401598
push 2
call fcn.00402bb7
push 3
mov dword [esp + 0x24], eax
mov esi, edx
call fcn.00402bb7
pop ecx
pop ecx
push 1
mov edi, eax
call fcn.00402bed
push eax
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_lstrlenA
test esi, esi
mov byte [ebp], bl
mov esi, dword [esp + 0x1c]
cmove esi, eax
test esi, esi
je case.0x4014ad.65
test edi, edi
jns 0x401a27
add edi, eax
js case.0x4014ad.65
cmp edi, eax
cmovg edi, eax
mov eax, dword [esp + 0x18]
add eax, edi
push eax
push ebp
call fcn.004063b7
test esi, esi
jns 0x401a45
push ebp
call sub.KERNEL32.dll_lstrlenA
add esi, eax
xor eax, eax
test esi, esi
cmovns eax, esi
cmp eax, 0x400
jge case.0x4014ad.65
mov byte [eax + ebp], bl
jmp case.0x4014ad.65
push 0x20
call fcn.00402bed
push 0x31
mov esi, eax
call fcn.00402bed
push eax
push esi
cmp dword [esp + 0x40], ebx
jne 0x401a8e
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4019ab
mov eax, dword [esp + 0x30]
jmp 0x402a6b
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401a7d
xor edi, edi
inc edi
push edi
call fcn.00402bed
push 0x400
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401ac4
cmp dword [esp + 0x30], ebx
je 0x401acb
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401acb
mov eax, edi
mov byte [ebp], bl
jmp 0x401acf
mov eax, dword [esp + 0x10]
mov byte [ebp + 0x3ff], bl
jmp 0x402a63
push ebx
call fcn.00402bb7
push 1
mov esi, eax
call fcn.00402bb7
pop ecx
pop ecx
cmp dword [esp + 0x3c], ebx
jne 0x401b04
cmp esi, eax
jl 0x4019ab
jle 0x401a85
mov eax, dword [esp + 0x38]
jmp 0x402a6b
cmp esi, eax
jb 0x4019ab
jbe 0x401a85
jmp 0x401afb
xor edi, edi
inc edi
push edi
call fcn.00402bb7
push 2
mov esi, eax
call fcn.00402bb7
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x34]
cmp eax, 0xc
ja case.default.0x401b33
jmp dword [eax*4 + 0x402b83]
add esi, ecx
jmp case.default.0x401b33
sub esi, ecx
jmp case.default.0x401b33
imul esi, ecx
jmp case.default.0x401b33
test ecx, ecx
je 0x401b54
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401b56
mov esi, ebx
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x10], eax
jmp case.default.0x401b33
or esi, ecx
jmp case.default.0x401b33
and esi, ecx
jmp case.default.0x401b33
xor esi, ecx
jmp case.default.0x401b33
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401b33
test esi, esi
jne 0x401b82
test ecx, ecx
je 0x401b8a
mov esi, edi
jmp case.default.0x401b33
test esi, esi
jne 0x401b7e
mov esi, ebx
jmp case.default.0x401b33
test ecx, ecx
je 0x401b54
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401b56
shl esi, cl
jmp case.default.0x401b33
sar esi, cl
push esi
jmp 0x401598
push 1
call fcn.00402bed
push 2
mov esi, eax
call fcn.00402bb7
push eax
push esi
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp case.0x4014ad.65
mov eax, dword [esp + 0x30]
mov esi, dword [0x40a0c0]
test eax, eax
je 0x401c2a
dec eax
test esi, esi
je 0x401c17
mov esi, dword [esi]
test eax, eax
jne 0x401bd6
test esi, esi
je 0x401c17
add esi, 4
mov ebp, 0x40a0c8
push esi
push ebp
call fcn.004063b7
mov eax, dword [0x40a0c0]
add eax, 4
push eax
push esi
call fcn.004063b7
mov eax, dword [0x40a0c0]
push ebp
add eax, 4
push eax
call fcn.004063b7
jmp case.0x4014ad.65
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.0040593f
push eax
jmp 0x40196d
test edi, edi
je 0x401c53
test esi, esi
je 0x4015ea
lea eax, [esi + 4]
push eax
push ebp
call fcn.004063b7
mov eax, dword [esi]
mov dword [0x40a0c0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4014ad.65
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [esp + 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.0040593f
mov eax, dword [0x40a0c0]
mov dword [esi], eax
mov dword [0x40a0c0], esi
jmp case.0x4014ad.65
push 3
call fcn.00402bb7
mov esi, eax
push 4
mov dword [esp + 0x20], esi
call fcn.00402bb7
mov edi, eax
mov eax, dword [esp + 0x44]
pop ecx
pop ecx
test al, 1
je 0x401cb2
push 0x33
call fcn.00402bed
mov esi, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
test al, 2
je 0x401cbf
push 0x44
call fcn.00402bed
mov edi, eax
cmp dword [esp + 0x24], 0x21
push 1
jne 0x401d17
call fcn.00402bb7
push 2
mov dword [esp + 0x20], eax
call fcn.00402bb7
pop ecx
pop ecx
mov ecx, dword [esp + 0x3c]
sar ecx, 2
test ecx, ecx
je 0x401d08
lea edx, [esp + 0x14]
push edx
push ecx
push ebx
push edi
push esi
push eax
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
jmp 0x401d4a
push edi
push esi
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401d40
call fcn.00402bed
push 0x12
mov esi, eax
call fcn.00402bed
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 edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x28], ebx
jl 0x402a63
push ecx
jmp 0x401598
push ebx
call fcn.00402bb7
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4016a8
push 2
call fcn.00402bb7
push 1
mov esi, eax
call fcn.00402bb7
pop ecx
pop ecx
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4019d8
mov esi, dword [0x7a2c68]
push ebx
add esi, edi
call fcn.00402bb7
pop ecx
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4014ad.65
push edi
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x30]
mov ecx, edx
imul ecx, dword [esp + 0x50]
imul edx, dword [esp + 0x4c]
push 0x10
push ecx
push edx
push ebx
push ebx
call fcn.00402bed
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.0x4014ad.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4014ad.65
push edx
call dword [sym.imp.USER32.dll_GetDC]
push 2
mov edi, eax
call fcn.00402bb7
pop ecx
push 0x48
push 0x5a
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x40b4c8], eax
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402bb7
pop ecx
mov ecx, dword [esp + 0x38]
push dword [esp + 0x2c]
mov dword [0x40b4d8], eax
mov al, cl
and al, 1
mov byte [0x40b4df], 1
mov byte [0x40b4dc], al
mov al, cl
and al, 2
and cl, 4
push 0x40b4e4
mov byte [0x40b4dd], al
mov byte [0x40b4de], cl
call fcn.0040593f
push 0x40b4c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4019d8
push ebx
call fcn.00402bb7
push 1
mov esi, eax
call fcn.00402bb7
pop ecx
pop ecx
push eax
push esi
cmp dword [esp + 0x3c], ebx
jne 0x401eb3
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4014ad.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4014ad.65
push ebx
call fcn.00402bed
push 0x31
mov ebx, eax
call fcn.00402bed
push 0x22
mov edi, eax
call fcn.00402bed
push 0x15
mov esi, eax
call fcn.00402bed
push 0x40a4c8
push 0xffffffffffffffec
call fcn.004057bc
push dword [esp + 0x34]
xor ecx, ecx
cmp byte [esi], cl
push 0x7a8800
cmovne ecx, esi
xor eax, eax
cmp byte [ebx], al
push ecx
push edi
cmovne eax, ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4014ad.65
jmp 0x4015ea
push ebx
call fcn.00402bed
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004057bc
push esi
call fcn.00405f76
mov esi, eax
test esi, esi
je 0x4015ea
cmp dword [esp + 0x30], ebx
je 0x401f9b
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push esi
call edi
mov ebx, 0x102
jmp 0x401f62
push 0xf
call fcn.00405c1d
push 0x64
push esi
call edi
cmp eax, ebx
je 0x401f56
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x2c], 0
jl 0x401f88
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00405ec2
jmp 0x401f9b
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc ecx
cmp dword [esp + 0x18], 0
cmovne eax, ecx
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4014ad.65
push 2
call fcn.00402bed
push eax
call fcn.00405e77
mov edi, eax
test edi, edi
je 0x401fcb
push dword [edi + 0x14]
push esi
call fcn.00405ec2
push dword [edi + 0x18]
jmp 0x401598
mov byte [ebp], bl
mov byte [esi], bl
jmp 0x4015ea
push 0xffffffffffffffee
call fcn.00402bed
lea ecx, [esp + 0x44]
mov dword [esp + 0x64], eax
push ecx
push eax
push 8
call fcn.004061a4
call eax
mov ecx, eax
mov byte [ebp], bl
xor eax, eax
mov dword [esp + 0x14], ecx
inc eax
mov byte [esi], bl
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x402a63
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je case.0x4014ad.65
push 9
call fcn.004061a4
push 0xa
mov esi, eax
call fcn.004061a4
push edi
push dword [esp + 0x18]
mov dword [esp + 0x70], eax
push ebx
push dword [esp + 0x70]
call esi
test eax, eax
je 0x402079
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x4082a0
push edi
call dword [esp + 0x78]
test eax, eax
je 0x402079
mov eax, dword [esp + 0x18]
push dword [eax + 8]
push ebp
call fcn.00405ec2
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
push dword [esp + 0x20]
call fcn.00405ec2
mov dword [esp + 0x10], ebx
push edi
jmp 0x401c48
xor edi, edi
inc edi
mov dword [esp + 0x10], edi
cmp dword [0x7a2c80], ebx
jl 0x402163
push 0xfffffffffffffff0
call fcn.00402bed
mov esi, eax
push edi
mov dword [esp + 0x6c], esi
call fcn.00402bed
mov ebp, eax
mov dword [esp + 0x64], ebp
cmp dword [esp + 0x38], ebx
je 0x4020c2
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4020d6
mov esi, dword [esp + 0x68]
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x402157
push ebp
push esi
call sub.KERNEL32.dll_GetProcAddress
mov ebp, eax
test ebp, ebp
je 0x402124
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], ebx
je 0x402104
push dword [esp + 0x30]
call fcn.00402d3e
call ebp
test eax, eax
je 0x40212f
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x402133
mov eax, dword [esp + 0x14]
push section..data
push 0x40a0c0
push section..ndata
push 0x400
push eax
call ebp
add esp, 0x14
jmp 0x40212f
push dword [esp + 0x64]
push 0xfffffffffffffff7
call fcn.004057bc
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x34], ebx
jne 0x402a63
push esi
call fcn.004038f4
test eax, eax
je case.0x4014ad.65
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4014ad.65
push 0x40a4c8
push 0xfffffffffffffff6
jmp 0x4014f4
push 0x40a4c8
push 0xffffffffffffffe7
jmp 0x4014f4
push 0xfffffffffffffff0
call fcn.00402bed
push 0xffffffffffffffdf
mov dword [esp + 0x48], eax
call fcn.00402bed
push 2
mov ebp, eax
call fcn.00402bed
push 0xffffffffffffffcd
mov dword [esp + 0x70], eax
call fcn.00402bed
push 0x45
mov dword [esp + 0x74], eax
call fcn.00402bed
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, ecx
and eax, 0xfff
mov dword [esp + 0x74], eax
mov eax, ecx
and eax, 0x8000
mov dword [esp + 0x68], eax
mov eax, ecx
sar eax, 0xc
and eax, 7
sar ecx, 0x10
mov dword [esp + 0x64], eax
movzx eax, cx
push ebp
mov dword [esp + 0x1c], eax
call fcn.004065e0
test eax, eax
jne 0x4021e5
push 0x21
call fcn.00402bed
lea eax, [esp + 0x14]
xor edi, edi
push eax
push 0x40873c
inc edi
push edi
push ebx
push 0x40875c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4022ed
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x40874c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4022d3
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
cmp dword [esp + 0x68], ebx
jne 0x402246
mov eax, dword [esp + 0x14]
push 0x7a8800
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x64]
test edx, edx
je 0x402259
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x14]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [esp + 0x70]
cmp byte [edx], bl
je 0x40227e
mov eax, dword [esp + 0x14]
push dword [esp + 0x74]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x14]
push dword [esp + 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x14]
push dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
js 0x4022c9
push 0x400
push ebp
push 0xffffffffffffffff
push dword [esp + 0x50]
mov esi, 0x80004005
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4022c9
mov eax, dword [esp + 0x1c]
push edi
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x4022ed
push 0x40a4c8
push 0xfffffffffffffff4
jmp 0x4014f4
push 0x40a4c8
mov dword [esp + 0x14], edi
push 0xfffffffffffffff0
jmp 0x4014f4
push ebx
call fcn.00402bed
push 0x11
mov esi, eax
call fcn.00402bed
push 0x23
mov edi, eax
call fcn.00402bed
push esi
mov ebp, eax
call fcn.00405e77
test eax, eax
jne 0x40232e
push ebx
push 0xfffffffffffffff9
call fcn.004057bc
jmp 0x4015ea
mov eax, dword [esp + 0x14]
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 2
call sub.KERNEL32.dll_lstrlenA
push edi
mov byte [eax + esi + 1], bl
call sub.KERNEL32.dll_lstrlenA
push ebp
push ebx
mov byte [eax + edi + 1], bl
mov ax, word [esp + 0x38]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x66], ebp
mov word [esp + 0x5c], ax
call fcn.004057bc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4014ad.65
jmp 0x402321
cmp ecx, 0xbadf00d
jne 0x401c17
inc dword [0x7a2cf4]
jmp case.0x4014ad.65
mov esi, ebx
mov ebp, ebx
test ecx, ecx
je 0x4023af
push ebx
call fcn.00402bed
mov edi, dword [esp + 0x2c]
mov ebx, eax
test edi, edi
je 0x4023bc
push 0x11
call fcn.00402bed
mov esi, eax
cmp dword [esp + 0x38], ebp
je 0x4023cb
push 0x22
call fcn.00402bed
mov ebp, eax
push 0xffffffffffffffcd
call fcn.00402bed
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015e2
push 0xa
pop eax
push 1
mov word [esp + 0x18], ax
call fcn.00402bed
push 0x12
mov edi, eax
call fcn.00402bed
push 0xffffffffffffffdd
mov esi, eax
call fcn.00402bed
push eax
push 0x3ff
push ebp
lea eax, [esp + 0x20]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov cl, byte [ebp]
cmp cl, 0xa
jne 0x402421
mov byte [ebp], bl
xor eax, eax
cmp cl, 0xa
jmp 0x4018e6
xor esi, esi
inc esi
cmp dword [esp + 0x38], ebx
jne 0x40245b
push 2
call fcn.00402ce1
mov edi, eax
test edi, edi
je 0x40247c
push 0x33
call fcn.00402bed
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40247c
push 0x22
call fcn.00402bed
mov ecx, dword [esp + 0x38]
and ecx, 2
push ecx
push eax
push dword [esp + 0x34]
call fcn.00402bd8
push eax
call fcn.00402c2b
mov esi, eax
xor eax, eax
test esi, esi
setne al
jmp 0x402a63
push ecx
call fcn.00402bd8
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
push 2
mov dword [esp + 0x44], eax
call fcn.00402bed
push 0x11
mov dword [esp + 0x70], eax
call fcn.00402bed
push ebx
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov ecx, dword [0x7a2d10]
inc edi
push ebx
or ecx, 2
mov dword [esp + 0x1c], 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.0x4014ad.65
mov esi, dword [esp + 0x44]
mov eax, ebx
mov ebp, 0x40a8c8
cmp esi, edi
jne 0x4024fa
push 0x23
call fcn.00402bed
push ebp
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp esi, 4
jne 0x40250e
push 3
call fcn.00402bb7
pop ecx
push esi
mov dword [0x40a8c8], eax
pop eax
cmp esi, 3
jne 0x402523
push 0xc00
push ebp
push ebx
push dword [esp + 0x40]
call fcn.00402efb
push eax
push ebp
push dword [esp + 0x48]
push ebx
push dword [esp + 0x7c]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x1c]
neg eax
sbb eax, eax
and dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4014ad.65
push 0x20019
call fcn.00402ce1
push 0x33
mov esi, eax
call fcn.00402bed
mov byte [ebp], bl
test esi, esi
je 0x4015ea
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x400
push ecx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edi, edi
inc edi
test eax, eax
jne 0x4025cc
cmp dword [esp + 0x14], 4
je 0x4025b4
cmp dword [esp + 0x14], edi
je 0x4025a4
cmp dword [esp + 0x14], 2
jne 0x4025cc
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov byte [ebp + 0x3ff], bl
jmp 0x4025d3
push dword [ebp]
xor eax, eax
cmp dword [esp + 0x3c], eax
push ebp
sete al
mov dword [esp + 0x18], eax
call fcn.00405ec2
jmp 0x4025d3
mov byte [ebp], bl
mov dword [esp + 0x10], edi
push esi
jmp 0x402544
push 0x20019
call fcn.00402ce1
push 3
mov esi, eax
call fcn.00402bb7
mov dword [esp + 0x4c], edx
mov byte [ebp], bl
pop ecx
test esi, esi
je 0x4015ea
mov ecx, 0x3ff
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x38], ebx
je 0x402617
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4025ac
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x54]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4025ac
jmp 0x4015ea
push ebp
call fcn.004064a3
test eax, eax
je case.0x4014ad.65
push eax
jmp 0x401f9c
push 0xffffffffffffffed
call fcn.00402bed
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
call fcn.004061d9
cmp eax, 0xffffffff
jne 0x4019d8
mov byte [ebp], bl
jmp 0x4015ea
xor edi, edi
inc edi
cmp dword [esp + 0x30], ebx
je 0x402689
push edi
call fcn.00402bb7
pop ecx
mov byte [0x40a4c8], al
mov esi, edi
jmp 0x402698
push 0x11
call fcn.00402bed
push eax
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
cmp byte [ebp], bl
je 0x4026b7
push ebp
call fcn.004064a3
push esi
push 0x40a4c8
push eax
call fcn.004062b1
test eax, eax
jne case.0x4014ad.65
mov eax, edi
jmp 0x402a63
push 2
mov dword [esp + 0x1c], ebx
call fcn.00402bb7
xor edi, edi
inc edi
pop ecx
cmp eax, edi
jl case.0x4014ad.65
mov ecx, 0x3ff
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x1c], eax
cmp byte [ebp], bl
je 0x40273e
push ebp
mov byte [esp + 0x18], bl
call fcn.004064a3
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], ebx
jle 0x40273e
mov ebp, ebx
push edi
lea ecx, [esp + 0x27]
push ecx
push eax
call fcn.00406206
test eax, eax
je 0x40273e
cmp dword [esp + 0x34], ebx
jne 0x40277a
mov al, byte [esp + 0x14]
cmp al, 0xd
je 0x40274e
cmp al, 0xa
je 0x40274e
mov al, byte [esp + 0x23]
mov byte [esi + ebp], al
inc ebp
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebp
test al, al
je 0x40273e
mov eax, dword [esp + 0x10]
cmp ebp, dword [esp + 0x1c]
jl 0x4026fe
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov byte [ecx + esi], bl
jmp 0x4018e6
mov cl, byte [esp + 0x23]
cmp al, cl
je 0x40276a
cmp cl, 0xd
je 0x402760
cmp cl, 0xa
jne 0x40276a
mov byte [esi + ebp], cl
inc ebp
mov dword [esp + 0x18], ebp
jmp 0x40273e
push edi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40273e
movzx eax, byte [esp + 0x23]
push eax
push esi
call fcn.00405ec2
jmp 0x402a69
cmp byte [ebp], bl
je case.0x4014ad.65
push 2
call fcn.00402bb7
pop ecx
push dword [esp + 0x34]
push ebx
push eax
push ebp
call fcn.004064a3
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x2c], ebx
jl case.0x4014ad.65
push eax
push esi
jmp 0x401599
push ebp
call fcn.004064a3
test eax, eax
je case.0x4014ad.65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4014ad.65
push esi
call fcn.004064a3
test eax, eax
je 0x4017a0
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4017a0
lea eax, [esp + 0xa4]
push eax
push ebp
jmp 0x401c0d
push 2
call fcn.00402bed
lea ecx, [esp + 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402829
mov byte [esi], bl
jmp 0x402668
push eax
push esi
call fcn.00405ec2
jmp 0x4027fc
push 0xfffffffffffffff0
mov dword [esp + 0x18], 0xfffffd66
call fcn.00402bed
mov ebp, eax
push ebp
mov dword [esp + 0x48], ebp
call fcn.004065e0
test eax, eax
jne 0x402858
push 0xffffffffffffffed
call fcn.00402bed
push ebp
call fcn.00406426
push 2
push 0x40000000
push ebp
call fcn.004061d9
mov edi, eax
mov dword [esp + 0x6c], edi
cmp edi, 0xffffffff
je 0x40292a
mov eax, dword [0x7a2c28]
push eax
push 0x40
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x402923
push ebx
call fcn.00402d65
push dword [esp + 0x18]
push esi
call fcn.00402d4f
push dword [esp + 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
je 0x4028ff
push dword [esp + 0x30]
push edi
push ebx
push dword [esp + 0x38]
call fcn.00402efb
cmp byte [edi], bl
je 0x4028f5
mov ebp, esi
mov esi, dword [edi]
mov eax, dword [edi + 4]
add edi, 8
push esi
push edi
add eax, ebp
push eax
call fcn.00405f54
add edi, esi
cmp byte [edi], bl
jne 0x4028d5
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x18]
mov edi, dword [esp + 0x70]
push esi
push edi
call fcn.004062b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push edi
push 0xffffffffffffffff
call fcn.00402efb
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
cmp dword [esp + 0x14], ebx
jge 0x402945
push 0xffffffffffffffef
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x10], 1
push esi
call fcn.00402d3e
jmp case.0x4014ad.65
push ebx
call fcn.00402bb7
mov ebx, eax
pop ecx
cmp ebx, dword [0x7a2c4c]
jae 0x4015ea
mov ecx, dword [esp + 0x30]
imul edi, ebx, 0x418
add edi, dword [0x7a2c48]
test ecx, ecx
js 0x40298c
mov eax, dword [edi + ecx*4]
jne 0x4027b9
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401c0d
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x30], eax
je 0x4029a7
push 1
call fcn.00402bb7
pop ecx
mov ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x4029bf
push dword [esp + 0x38]
lea eax, [edi + 0x18]
push eax
call fcn.0040593f
or dword [edi + 8], 0x100
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [edi + eax*4], ecx
cmp dword [esp + 0x34], 0
je case.0x4014ad.65
push ebx
call fcn.0040122b
jmp case.0x4014ad.65
push ebx
call fcn.00402bb7
mov edi, eax
pop ecx
cmp edi, 0x20
jae 0x4015ea
cmp dword [esp + 0x34], ebx
je 0x402a14
cmp dword [esp + 0x30], ebx
je 0x402a09
push edi
call fcn.0040129a
push ebx
push ebx
call fcn.004012e7
jmp case.0x4014ad.65
push ebx
call fcn.004011a0
jmp 0x4027b9
mov eax, dword [0x7a2c30]
cmp dword [esp + 0x30], ebx
je 0x402a2c
mov ecx, dword [esp + 0x2c]
mov dword [eax + edi*4 + 0x94], ecx
jmp case.0x4014ad.65
push dword [eax + edi*4 + 0x94]
push esi
call fcn.0040593f
jmp case.0x4014ad.65
and ecx, dword [0x79e1f8]
push ebx
push ecx
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x28], ebx
je case.0x4014ad.65
mov eax, dword [esp + 0x14]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x10]
add dword [0x7a2ce8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret 4