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
Set current directory
Set file attributes
Set registry value

Disassembly:
sub esp, 0x1ac
push ebx
mov edx, dword [0x42e8b8]
mov eax, section..ndata
push ebp
push esi
mov esi, dword [esp + 0x1bc]
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 [0x40a0e4], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
cmp eax, 0x41
ja case.0x4014ad.65
jmp dword [eax*4 + 0x402a3b]
mov eax, ecx
jmp 0x402a2c
push ebx
push ecx
call fcn.00405654
mov eax, 0x7fffffff
jmp 0x402a2c
inc dword [0x42e890]
test edx, edx
je 0x4014c2
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4014c2
push ecx
call fcn.00402cdb
dec eax
push ebx
push eax
call fcn.004013af
jmp 0x402a2c
push ebx
push ecx
call fcn.00405654
jmp case.0x4014ad.65
push ebx
call fcn.00402b77
xor edi, edi
inc edi
cmp eax, edi
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 0x40154f
mov eax, dword [ecx*4 + 0x42f180]
push 1
mov dword [ecx*4 + 0x42f140], eax
call fcn.00402b77
mov ecx, dword [esp + 0x28]
mov dword [ecx*4 + 0x42f180], eax
jmp case.0x4014ad.65
mov eax, dword [ecx*4 + 0x42f140]
jmp 0x401543
mov esi, dword [esp + 0x30]
xor ecx, ecx
push 4
pop eax
mov edx, dword [esi*4 + 0x42f180]
test edx, edx
cmove ecx, eax
mov eax, dword [esp + 0x34]
and eax, edx
mov dword [esi*4 + 0x42f180], eax
mov eax, dword [esp + ecx + 0x28]
jmp 0x402a2c
push dword [edi*4 + 0x42f180]
push ebp
call fcn.00405d5a
jmp case.0x4014ad.65
mov eax, dword [0x42e888]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4015ac
push edi
push eax
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [0x42e88c]
test eax, eax
je case.0x4014ad.65
push ecx
push eax
call esi
jmp case.0x4014ad.65
push 0xfffffffffffffff0
call fcn.00402ba8
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 0x402a24
push 0xfffffffffffffff0
call fcn.00402ba8
mov edi, eax
push edi
call fcn.004062e6
mov esi, eax
test esi, esi
je 0x401651
push 0x5c
push esi
call fcn.00405d36
mov esi, eax
mov al, byte [esi]
mov byte [esp + 0x14], al
mov byte [esi], bl
test al, al
jne 0x401626
cmp dword [esp + 0x30], ebx
je 0x401626
call fcn.00405c80
test eax, eax
je 0x401626
push edi
call fcn.00405759
jmp 0x40162c
push edi
call fcn.00405739
test eax, eax
je 0x401646
cmp eax, 0xb7
jne 0x401642
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401646
inc dword [esp + 0x10]
mov al, byte [esp + 0x14]
mov byte [esi], al
inc esi
test al, al
jne 0x4015f9
push 0x40a4e8
cmp dword [esp + 0x30], ebx
je 0x401687
push 0xffffffffffffffe6
call fcn.00405654
push edi
push 0x435800
call fcn.0040624f
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x402a24
inc eax
jmp 0x402a24
push 0xfffffffffffffff5
jmp 0x4014f4
push ebx
call fcn.00402ba8
push eax
call fcn.00405d0f
mov ecx, dword [esp + 0x30]
test eax, eax
cmovne ecx, dword [esp + 0x2c]
jmp case.0x4014ad.2
push 0xffffffffffffffd0
call fcn.00402ba8
push 0xffffffffffffffdf
mov esi, eax
call fcn.00402ba8
push 0x13
mov edi, eax
call fcn.00402ba8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4016db
push 0x40a4e8
push 0xffffffffffffffe3
jmp 0x4014f4
cmp dword [esp + 0x30], ebx
je 0x4015dc
push esi
call fcn.00405d0f
test eax, eax
je 0x4015dc
push edi
push esi
call fcn.00405ae5
push 0x40a4e8
push 0xffffffffffffffe4
jmp 0x4014f4
push ebx
call fcn.00402ba8
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 0x401730
xor eax, eax
mov byte [esi], bl
inc eax
mov dword [esp + 0x10], eax
jmp 0x401757
mov eax, dword [esp + 0x18]
cmp eax, edi
jbe 0x401753
cmp byte [eax], bl
je 0x401753
push edi
call fcn.00405d0f
test eax, eax
je 0x401725
add eax, 0x2c
push eax
push dword [esp + 0x1c]
call fcn.0040624f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], ebx
jne 0x402a24
push ebp
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4014ad.65
push 0xffffffffffffffff
call fcn.00402ba8
lea ecx, [esp + 0x40]
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 0x402a24
push 0xffffffffffffffef
call fcn.00402ba8
push eax
push ebp
call fcn.00406196
jmp 0x4015d4
push 0x31
call fcn.00402ba8
mov esi, dword [esp + 0x28]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
and esi, 7
call fcn.00406478
push ebp
mov ebp, 0x40a0e8
test eax, eax
je 0x4017dc
push ebp
call fcn.0040624f
jmp 0x4017f3
push 0x435800
push ebp
call fcn.0040624f
push eax
call fcn.00405c98
push eax
call sub.KERNEL32.dll_lstrcatA
push ebp
call fcn.004063de
xor edi, edi
inc edi
cmp esi, 3
jl 0x40182e
push ebp
call fcn.00405d0f
mov ecx, ebx
test eax, eax
je 0x40181e
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 0x401838
push ebp
call fcn.004062be
xor eax, eax
cmp esi, edi
setne al
inc eax
push eax
push 0x40000000
push ebp
call fcn.00406071
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4018e0
test esi, esi
jne 0x4018c7
push section..ndata
push 0x40a8e8
call fcn.0040624f
push ebp
push section..ndata
call fcn.0040624f
push dword [esp + 0x3c]
push 0x40a4e8
call fcn.004057d7
push 0x40a8e8
push section..ndata
call fcn.0040624f
mov eax, dword [esp + 0x28]
sar eax, 3
push eax
push 0x40a4e8
call fcn.004061dd
sub eax, 4
je 0x4017fc
sub eax, 1
je 0x4018bc
push ebp
push 0xfffffffffffffffa
jmp 0x4014bd
inc dword [0x42f188]
jmp 0x402a2a
mov edi, dword [esp + 0x18]
push edi
push 0xffffffffffffffe2
call fcn.00405654
xor eax, eax
cmp esi, 2
sete al
jmp 0x402a24
mov edi, dword [esp + 0x18]
push edi
push 0xffffffffffffffea
call fcn.00405654
mov esi, dword [esp + 0x1c]
inc dword [0x42f1b4]
push ebx
push ebx
push esi
push dword [esp + 0x3c]
call fcn.00402d37
dec dword [0x42f1b4]
cmp dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x40191a
cmp dword [esp + 0x38], 0xffffffff
je 0x401928
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 0x401951
push 0xffffffffffffffe9
push ebp
call fcn.004057d7
push edi
push ebp
call sub.KERNEL32.dll_lstrcatA
jmp 0x401959
push 0xffffffffffffffee
push ebp
call fcn.004057d7
push 0x200010
push ebp
call fcn.004061dd
jmp 0x4014c2
push ebx
call fcn.00402ba8
push dword [esp + 0x2c]
push eax
call fcn.00405e53
jmp case.0x4014ad.65
push 0x31
call fcn.00402ba8
push dword [esp + 0x28]
push eax
call fcn.004061dd
test eax, eax
je 0x4015dc
cmp eax, dword [esp + 0x30]
jne 0x4019a6
mov eax, dword [esp + 0x34]
jmp 0x402a2c
cmp eax, dword [esp + 0x38]
jne case.0x4014ad.65
mov eax, dword [esp + 0x3c]
jmp 0x402a2c
push 0xfffffffffffffff0
jmp 0x40196a
push 1
call fcn.00402ba8
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x40158a
push 2
call fcn.00402b77
push 3
mov esi, eax
call fcn.00402b77
push 1
mov edi, eax
call fcn.00402ba8
mov dword [esp + 0x1c], eax
mov byte [ebp], bl
cmp dword [esp + 0x30], ebx
je 0x4019fe
test esi, esi
je case.0x4014ad.65
push eax
call sub.KERNEL32.dll_lstrlenA
test edi, edi
jns 0x401a10
add edi, eax
js case.0x4014ad.65
cmp edi, eax
cmovg edi, eax
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push ebp
call fcn.0040624f
test esi, esi
je case.0x4014ad.65
jns 0x401a34
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.00402ba8
push 0x31
mov esi, eax
call fcn.00402ba8
push eax
push esi
cmp dword [esp + 0x40], ebx
jne 0x401a7d
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40199d
mov eax, dword [esp + 0x30]
jmp 0x402a2c
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401a6c
xor edi, edi
inc edi
push edi
call fcn.00402ba8
push 0x400
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401ab3
cmp dword [esp + 0x30], ebx
je 0x401aba
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401aba
mov eax, edi
mov byte [ebp], bl
jmp 0x401abe
mov eax, dword [esp + 0x10]
mov byte [ebp + 0x3ff], bl
jmp 0x402a24
push ebx
call fcn.00402b77
push 1
mov esi, eax
call fcn.00402b77
cmp dword [esp + 0x3c], ebx
jne 0x401af1
cmp esi, eax
jl 0x40199d
jle 0x401a74
mov eax, dword [esp + 0x38]
jmp 0x402a2c
cmp esi, eax
jb 0x40199d
jbe 0x401a74
jmp 0x401ae8
xor edi, edi
inc edi
push edi
call fcn.00402b77
push 2
mov esi, eax
call fcn.00402b77
mov ecx, eax
mov eax, dword [esp + 0x34]
cmp eax, 0xc
ja case.default.0x401b1e
jmp dword [eax*4 + 0x402b43]
add esi, ecx
jmp case.default.0x401b1e
sub esi, ecx
jmp case.default.0x401b1e
imul esi, ecx
jmp case.default.0x401b1e
test ecx, ecx
je 0x401b3d
mov eax, esi
cdq
idiv ecx
jmp 0x401b58
mov esi, ebx
mov dword [esp + 0x10], edi
jmp case.default.0x401b1e
or esi, ecx
jmp case.default.0x401b1e
and esi, ecx
jmp case.default.0x401b1e
xor esi, ecx
jmp case.default.0x401b1e
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401b1e
test esi, esi
jne 0x401b64
test ecx, ecx
je 0x401b6c
mov esi, edi
jmp case.default.0x401b1e
test esi, esi
jne 0x401b60
mov esi, ebx
jmp case.default.0x401b1e
test ecx, ecx
je 0x401b3d
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401b1e
shl esi, cl
jmp case.default.0x401b1e
sar esi, cl
push esi
jmp 0x40158a
push 1
call fcn.00402ba8
push 2
mov esi, eax
call fcn.00402b77
push eax
push esi
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4014ad.65
mov eax, dword [esp + 0x30]
mov esi, dword [0x40a0e0]
test eax, eax
je 0x401c0c
dec eax
test esi, esi
je 0x401bf9
mov esi, dword [esi]
test eax, eax
jne 0x401bb8
test esi, esi
je 0x401bf9
add esi, 4
mov ebp, 0x40a0e8
push esi
push ebp
call fcn.0040624f
mov eax, dword [0x40a0e0]
add eax, 4
push eax
push esi
call fcn.0040624f
mov eax, dword [0x40a0e0]
push ebp
add eax, 4
push eax
call fcn.0040624f
jmp case.0x4014ad.65
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.004057d7
push eax
jmp 0x40195f
test edi, edi
je 0x401c35
test esi, esi
je 0x4015dc
lea eax, [esi + 4]
push eax
push ebp
call fcn.0040624f
mov eax, dword [esi]
mov dword [0x40a0e0], 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.004057d7
mov eax, dword [0x40a0e0]
mov dword [esi], eax
mov dword [0x40a0e0], esi
jmp case.0x4014ad.65
push 3
call fcn.00402b77
mov esi, eax
push 4
mov dword [esp + 0x1c], esi
call fcn.00402b77
mov edi, eax
mov eax, dword [esp + 0x3c]
test al, 1
je 0x401c92
push 0x33
call fcn.00402ba8
mov esi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], esi
test al, 2
je 0x401c9f
push 0x44
call fcn.00402ba8
mov edi, eax
cmp dword [esp + 0x24], 0x21
push 1
jne 0x401cf5
call fcn.00402b77
push 2
mov dword [esp + 0x1c], eax
call fcn.00402b77
mov ecx, dword [esp + 0x3c]
sar ecx, 2
test ecx, ecx
je 0x401ce6
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 0x401d28
push edi
push esi
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401d1e
call fcn.00402ba8
push 0x12
mov esi, eax
call fcn.00402ba8
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 0x402a24
push ecx
jmp 0x40158a
push ebx
call fcn.00402b77
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x40169a
push 2
call fcn.00402b77
push eax
push 1
call fcn.00402b77
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4019ca
mov eax, dword [0x42f108]
add eax, edi
push eax
push 0xffffffffffffffeb
push ebx
call fcn.00402b77
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 + 0x5c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x30]
mov ecx, edx
imul ecx, dword [esp + 0x68]
imul edx, dword [esp + 0x64]
push 0x10
push ecx
push edx
push ebx
push ebx
call fcn.00402ba8
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 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
call fcn.00402b77
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [0x40b4e8], eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
call fcn.00402b77
mov ecx, dword [esp + 0x38]
push dword [esp + 0x2c]
mov dword [0x40b4f8], eax
mov al, cl
and al, 1
mov byte [0x40b4ff], 1
mov byte [0x40b4fc], al
mov al, cl
and al, 2
and cl, 4
push 0x40b504
mov byte [0x40b4fd], al
mov byte [0x40b4fe], cl
call fcn.004057d7
push 0x40b4e8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4019ca
push ebx
call fcn.00402b77
push 1
mov esi, eax
call fcn.00402b77
push eax
push esi
cmp dword [esp + 0x3c], ebx
jne 0x401e84
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.00402ba8
push 0x31
mov ebx, eax
call fcn.00402ba8
push 0x22
mov edi, eax
call fcn.00402ba8
push 0x15
mov esi, eax
call fcn.00402ba8
push 0x40a4e8
push 0xffffffffffffffec
call fcn.00405654
push dword [esp + 0x34]
xor ecx, ecx
cmp byte [esi], cl
push 0x435800
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 0x4015dc
push ebx
call fcn.00402ba8
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00405654
push esi
call fcn.00405e0e
mov esi, eax
test esi, esi
je 0x4015dc
cmp dword [esp + 0x30], ebx
je 0x401f6c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push esi
call edi
mov ebx, 0x102
jmp 0x401f33
push 0xf
call fcn.00405ab5
push 0x64
push esi
call edi
cmp eax, ebx
je 0x401f27
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x2c], 0
jl 0x401f59
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00405d5a
jmp 0x401f6c
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.00402ba8
push eax
call fcn.00405d0f
mov edi, eax
test edi, edi
je 0x401f9c
push dword [edi + 0x14]
push esi
call fcn.00405d5a
push dword [edi + 0x18]
jmp 0x40158a
mov byte [ebp], bl
mov byte [esi], bl
jmp 0x4015dc
push 0xffffffffffffffee
call fcn.00402ba8
lea ecx, [esp + 0x40]
mov dword [esp + 0x48], eax
push ecx
push eax
push 8
call fcn.0040603c
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 0x402a24
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.0040603c
push 0xa
mov esi, eax
call fcn.0040603c
push edi
push dword [esp + 0x18]
mov dword [esp + 0x54], eax
push ebx
push dword [esp + 0x54]
call esi
test eax, eax
je 0x40204a
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x4082a0
push edi
call dword [esp + 0x5c]
test eax, eax
je 0x40204a
mov eax, dword [esp + 0x18]
push dword [eax + 8]
push ebp
call fcn.00405d5a
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
push dword [esp + 0x20]
call fcn.00405d5a
mov dword [esp + 0x10], ebx
push edi
jmp 0x401c2a
xor edi, edi
inc edi
mov dword [esp + 0x10], edi
cmp dword [0x42f124], ebx
jl 0x402134
push 0xfffffffffffffff0
call fcn.00402ba8
mov esi, eax
push edi
mov dword [esp + 0x50], esi
call fcn.00402ba8
mov ebp, eax
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x38], ebx
je 0x402093
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4020a7
mov esi, dword [esp + 0x4c]
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x402128
push ebp
push esi
call sub.KERNEL32.dll_GetProcAddress
mov ebp, eax
test ebp, ebp
je 0x4020f5
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x30], ebx
je 0x4020d5
push dword [esp + 0x30]
call fcn.00402cf9
call ebp
test eax, eax
je 0x402100
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x402104
mov eax, dword [esp + 0x14]
push section..data
push 0x40a0e0
push section..ndata
push 0x400
push eax
call ebp
add esp, 0x14
jmp 0x402100
push dword [esp + 0x48]
push 0xfffffffffffffff7
call fcn.00405654
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x34], ebx
jne 0x402a24
push esi
call fcn.0040378c
test eax, eax
je case.0x4014ad.65
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4014ad.65
push 0x40a4e8
push 0xfffffffffffffff6
jmp 0x4014f4
push 0x40a4e8
push 0xffffffffffffffe7
jmp 0x4014f4
push 0xfffffffffffffff0
call fcn.00402ba8
push 0xffffffffffffffdf
mov dword [esp + 0x44], eax
call fcn.00402ba8
push 2
mov ebp, eax
call fcn.00402ba8
push 0xffffffffffffffcd
mov dword [esp + 0x54], eax
call fcn.00402ba8
push 0x45
mov dword [esp + 0x58], eax
call fcn.00402ba8
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], eax
mov eax, ecx
and eax, 0xfff
mov dword [esp + 0x58], eax
mov eax, ecx
and eax, 0x8000
mov dword [esp + 0x4c], eax
mov eax, ecx
sar eax, 0xc
and eax, 7
sar ecx, 0x10
mov dword [esp + 0x48], eax
movzx eax, cx
push ebp
mov dword [esp + 0x1c], eax
call fcn.00406478
test eax, eax
jne 0x4021b6
push 0x21
call fcn.00402ba8
lea eax, [esp + 0x14]
xor edi, edi
push eax
push 0x408858
inc edi
push edi
push ebx
push 0x408848
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4022be
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x408838
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x4022a4
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov esi, eax
cmp dword [esp + 0x4c], ebx
jne 0x402217
mov eax, dword [esp + 0x14]
push 0x435800
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x48]
test edx, edx
je 0x40222a
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 + 0x54]
cmp byte [edx], bl
je 0x40224f
mov eax, dword [esp + 0x14]
push dword [esp + 0x58]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x14]
push dword [esp + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x14]
push dword [esp + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test esi, esi
js 0x40229a
push 0x400
push ebp
push 0xffffffffffffffff
push dword [esp + 0x4c]
mov esi, 0x80004005
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40229a
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 0x4022be
push 0x40a4e8
push 0xfffffffffffffff4
jmp 0x4014f4
push 0x40a4e8
mov dword [esp + 0x14], edi
push 0xfffffffffffffff0
jmp 0x4014f4
push ebx
call fcn.00402ba8
push 0x11
mov esi, eax
call fcn.00402ba8
push 0x23
mov edi, eax
call fcn.00402ba8
push esi
mov ebp, eax
call fcn.00405d0f
test eax, eax
jne 0x4022ff
push ebx
push 0xfffffffffffffff9
call fcn.00405654
jmp 0x4015dc
mov eax, dword [esp + 0x14]
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 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 + 0x6c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x7e], ebp
mov word [esp + 0x74], ax
call fcn.00405654
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4014ad.65
jmp 0x4022f2
cmp ecx, 0xbadf00d
jne 0x401bf9
inc dword [0x42f194]
jmp case.0x4014ad.65
mov esi, ebx
mov ebp, ebx
test ecx, ecx
je 0x402380
push ebx
call fcn.00402ba8
mov edi, dword [esp + 0x2c]
mov ebx, eax
test edi, edi
je 0x40238d
push 0x11
call fcn.00402ba8
mov esi, eax
cmp dword [esp + 0x38], ebp
je 0x40239c
push 0x22
call fcn.00402ba8
mov ebp, eax
push 0xffffffffffffffcd
call fcn.00402ba8
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4015d4
push 0xa
pop eax
push 1
mov word [esp + 0x18], ax
call fcn.00402ba8
push 0x12
mov edi, eax
call fcn.00402ba8
push 0xffffffffffffffdd
mov esi, eax
call fcn.00402ba8
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 0x4023f2
mov byte [ebp], bl
xor eax, eax
cmp cl, 0xa
jmp 0x4018d8
xor esi, esi
inc esi
cmp dword [esp + 0x38], ebx
jne 0x40242c
push 2
call fcn.00402c9c
mov edi, eax
test edi, edi
je 0x40244d
push 0x33
call fcn.00402ba8
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40244d
push 0x22
call fcn.00402ba8
mov ecx, dword [esp + 0x38]
and ecx, 2
push ecx
push eax
push dword [esp + 0x34]
call fcn.00402b93
push eax
call fcn.00402be6
mov esi, eax
xor eax, eax
test esi, esi
setne al
jmp 0x402a24
push ecx
call fcn.00402b93
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push 2
mov dword [esp + 0x48], eax
call fcn.00402ba8
push 0x11
mov dword [esp + 0x54], eax
call fcn.00402ba8
push ebx
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov ecx, dword [0x42f1b0]
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 + 0x40]
mov eax, ebx
mov ebp, 0x40a8e8
cmp esi, edi
jne 0x4024cb
push 0x23
call fcn.00402ba8
push ebp
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp esi, 4
jne 0x4024de
push 3
call fcn.00402b77
push esi
mov dword [0x40a8e8], eax
pop eax
cmp esi, 3
jne 0x4024f3
push 0xc00
push ebp
push ebx
push dword [esp + 0x40]
call fcn.00402d37
push eax
push ebp
push dword [esp + 0x4c]
push ebx
push dword [esp + 0x60]
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.00402c9c
push 0x33
mov esi, eax
call fcn.00402ba8
mov byte [ebp], bl
test esi, esi
je 0x4015dc
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 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 0x40259c
cmp dword [esp + 0x14], 4
je 0x402584
cmp dword [esp + 0x14], edi
je 0x402574
cmp dword [esp + 0x14], 2
jne 0x40259c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov byte [ebp + 0x3ff], bl
jmp 0x4025a3
push dword [ebp]
xor eax, eax
cmp dword [esp + 0x3c], eax
push ebp
sete al
mov dword [esp + 0x18], eax
call fcn.00405d5a
jmp 0x4025a3
mov byte [ebp], bl
mov dword [esp + 0x10], edi
push esi
jmp 0x402514
push 0x20019
call fcn.00402c9c
push 3
mov esi, eax
call fcn.00402b77
mov byte [ebp], bl
test esi, esi
je 0x4015dc
mov ecx, 0x3ff
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x38], ebx
je 0x4025e2
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x40257c
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40257c
jmp 0x4015dc
push ebp
call fcn.0040633b
test eax, eax
je case.0x4014ad.65
push eax
jmp 0x401f6d
push 0xffffffffffffffed
call fcn.00402ba8
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
call fcn.00406071
cmp eax, 0xffffffff
jne 0x4019ca
mov byte [ebp], bl
jmp 0x4015dc
xor edi, edi
inc edi
cmp dword [esp + 0x30], ebx
je 0x40264f
push edi
call fcn.00402b77
mov byte [0x40a4e8], al
mov esi, edi
jmp 0x40265e
push 0x11
call fcn.00402ba8
push eax
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
cmp byte [ebp], bl
je 0x40267d
push ebp
call fcn.0040633b
push esi
push 0x40a4e8
push eax
call fcn.00406149
test eax, eax
jne case.0x4014ad.65
mov eax, edi
jmp 0x402a24
push 2
mov dword [esp + 0x1c], ebx
call fcn.00402b77
xor edi, edi
inc edi
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 0x402703
push ebp
mov byte [esp + 0x18], bl
call fcn.0040633b
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], ebx
jle 0x402703
mov ebp, ebx
push edi
lea ecx, [esp + 0x27]
push ecx
push eax
call fcn.0040609e
test eax, eax
je 0x402703
cmp dword [esp + 0x34], ebx
jne 0x40273f
mov al, byte [esp + 0x14]
cmp al, 0xd
je 0x402713
cmp al, 0xa
je 0x402713
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 0x402703
mov eax, dword [esp + 0x10]
cmp ebp, dword [esp + 0x1c]
jl 0x4026c3
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov byte [ecx + esi], bl
jmp 0x4018d8
mov cl, byte [esp + 0x23]
cmp al, cl
je 0x40272f
cmp cl, 0xd
je 0x402725
cmp cl, 0xa
jne 0x40272f
mov byte [esi + ebp], cl
inc ebp
mov dword [esp + 0x18], ebp
jmp 0x402703
push edi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x402703
movzx eax, byte [esp + 0x23]
push eax
push esi
call fcn.00405d5a
jmp 0x402a2a
cmp byte [ebp], bl
je case.0x4014ad.65
push dword [esp + 0x34]
push ebx
push 2
call fcn.00402b77
push eax
push ebp
call fcn.0040633b
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x2c], ebx
jl case.0x4014ad.65
push eax
push esi
jmp 0x40158b
push ebp
call fcn.0040633b
test eax, eax
je case.0x4014ad.65
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4014ad.65
push esi
call fcn.0040633b
test eax, eax
je 0x401792
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401792
lea eax, [esp + 0xa8]
push eax
push ebp
jmp 0x401bef
push 2
call fcn.00402ba8
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4027ed
mov byte [esi], bl
jmp 0x40262f
push eax
push esi
call fcn.00405d5a
jmp 0x4027c0
push 0xfffffffffffffff0
mov dword [esp + 0x18], 0xfffffd66
call fcn.00402ba8
mov ebp, eax
push ebp
mov dword [esp + 0x44], ebp
call fcn.00406478
test eax, eax
jne 0x40281c
push 0xffffffffffffffed
call fcn.00402ba8
push ebp
call fcn.004062be
push 2
push 0x40000000
push ebp
call fcn.00406071
mov edi, eax
mov dword [esp + 0x50], edi
cmp edi, 0xffffffff
je 0x4028ee
mov eax, dword [0x42f0c4]
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 0x4028e7
push ebx
call fcn.00402d20
push dword [esp + 0x18]
push esi
call fcn.00402d0a
push dword [esp + 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esp + 0x44], edi
test edi, edi
je 0x4028c3
push dword [esp + 0x30]
push edi
push ebx
push dword [esp + 0x38]
call fcn.00402d37
cmp byte [edi], bl
je 0x4028b9
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.00405dec
add edi, esi
cmp byte [edi], bl
jne 0x402899
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x18]
mov edi, dword [esp + 0x54]
push esi
push edi
call fcn.00406149
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push edi
push 0xffffffffffffffff
call fcn.00402d37
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
cmp dword [esp + 0x14], ebx
jge 0x402909
push 0xffffffffffffffef
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x10], 1
push esi
call fcn.00402cf9
jmp case.0x4014ad.65
push ebx
call fcn.00402b77
mov ebx, eax
cmp ebx, dword [0x42f0ec]
jae 0x4015dc
mov ecx, dword [esp + 0x30]
imul edi, ebx, 0x418
add edi, dword [0x42f0e8]
test ecx, ecx
js 0x40294f
mov eax, dword [edi + ecx*4]
jne 0x40277d
lea eax, [edi + 0x18]
push eax
push esi
jmp 0x401bef
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x30], eax
je 0x402969
push 1
call fcn.00402b77
mov ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x402981
push dword [esp + 0x38]
lea eax, [edi + 0x18]
push eax
call fcn.004057d7
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.00402b77
mov edx, eax
cmp edx, 0x20
jae 0x4015dc
cmp dword [esp + 0x34], ebx
je 0x4029d5
cmp dword [esp + 0x30], ebx
je 0x4029ca
push edx
call fcn.0040129a
push ebx
push ebx
call fcn.004012e7
jmp case.0x4014ad.65
push ebx
call fcn.004011a0
jmp 0x40277d
mov eax, dword [0x42f0cc]
cmp dword [esp + 0x30], ebx
je 0x4029ed
mov ecx, dword [esp + 0x2c]
mov dword [eax + edx*4 + 0x94], ecx
jmp case.0x4014ad.65
push dword [eax + edx*4 + 0x94]
push esi
call fcn.004057d7
jmp case.0x4014ad.65
and ecx, dword [0x429500]
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 [0x42f188], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret 4