Function at 0x401596
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:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x7a1c24]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
shl ecx, 0xa
mov edx, section..ndata
add ecx, edx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x28]
mov edi, esi
shl edi, 0xa
mov dword [0x4090c0], ecx
mov ecx, dword [ebp - 0x2c]
xor ebx, ebx
add edi, edx
mov dword [ebp - 4], ebx
cmp ecx, 0x43
ja case.0x4015eb.2
jmp dword [ecx*4 + 0x402b0e]
mov eax, esi
jmp 0x402b07
push ebx
push esi
call fcn.00404957
mov eax, 0x7fffffff
jmp 0x402b07
inc dword [0x7a13f4]
cmp dword [ebp - 8], ebx
je 0x401600
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401600
push esi
call fcn.0040137c
dec eax
push ebx
push eax
call fcn.00401398
jmp 0x402b07
push ebx
push esi
call fcn.00404957
jmp case.0x4015eb.2
xor ecx, ecx
call fcn.00401443
cmp eax, 1
jg 0x40164c
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp case.0x4015eb.2
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015eb.2
mov eax, esi
shl eax, 2
cmp dword [ebp - 0x20], ebx
jne 0x401693
mov ecx, dword [eax + 0x7a1ce0]
mov dword [eax + 0x7a1ca0], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp - 0x28]
mov dword [ecx*4 + 0x7a1ce0], eax
jmp case.0x4015eb.2
mov ecx, dword [eax + 0x7a1ca0]
mov dword [eax + 0x7a1ce0], ecx
jmp case.0x4015eb.2
mov esi, dword [ebp - 0x20]
lea esi, [esi*4 + 0x7a1ce0]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x28]
jmp 0x402b07
push dword [eax*4 + 0x7a1ce0]
push edi
call fcn.00405984
jmp case.0x4015eb.2
mov ecx, dword [0x7a1400]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x4016ee
push eax
push ecx
call edi
mov esi, dword [ebp - 0x28]
mov eax, dword [0x7a13ec]
cmp eax, ebx
je case.0x4015eb.2
push esi
push eax
call edi
jmp case.0x4015eb.2
push 0xfffffffffffffff0
pop esi
call fcn.00401459
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne case.0x4015eb.2
mov dword [ebp - 4], 1
jmp case.0x4015eb.2
push 0xfffffffffffffff0
pop esi
call fcn.00401459
mov edi, eax
push edi
call fcn.00405743
mov esi, eax
cmp esi, ebx
je 0x401794
push 0x5c
push esi
call fcn.004056fd
mov esi, eax
mov al, byte [esi]
mov byte [ebp + 0xb], al
mov byte [esi], bl
cmp al, bl
jne 0x40176b
cmp dword [ebp - 0x20], ebx
je 0x40176b
call fcn.00405bea
test eax, eax
je 0x40176b
push edi
call fcn.00405593
jmp 0x401771
push edi
call fcn.00405615
cmp eax, ebx
je 0x40178a
cmp eax, 0xb7
jne 0x401787
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
jne 0x40178a
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x401740
cmp dword [ebp - 0x24], ebx
je 0x4017c2
push 0xffffffffffffffe6
call fcn.00401432
push edi
push 0x7a7800
call fcn.00405a26
push edi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
jne case.0x4015eb.2
inc dword [ebp - 4]
jmp case.0x4015eb.2
push 0xfffffffffffffff5
call fcn.00401432
jmp case.0x4015eb.2
xor esi, esi
call fcn.00401459
push eax
call fcn.00405ae2
test eax, eax
je 0x401ba5
mov eax, dword [ebp - 0x24]
jmp 0x402b07
push 0xffffffffffffffd0
pop esi
call fcn.00401459
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.00401459
push 0x13
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40181a
push 0xffffffffffffffe3
jmp 0x4017c4
cmp dword [ebp - 0x20], ebx
je 0x40171e
push edi
call fcn.00405ae2
test eax, eax
je 0x40171e
push dword [ebp + 8]
push edi
call fcn.004060e4
push 0xffffffffffffffe4
jmp 0x4017c4
xor esi, esi
call fcn.00401459
mov edi, dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0x400
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
test eax, eax
je 0x401882
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40188b
cmp byte [eax], bl
je 0x40188b
push esi
call fcn.00405ae2
cmp eax, ebx
je 0x401882
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405a26
jmp 0x40188b
mov byte [edi], bl
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], ebx
jne case.0x4015eb.2
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
jmp case.0x4015eb.2
or esi, 0xffffffff
call fcn.00401459
lea ecx, [ebp + 8]
push ecx
push edi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SearchPathA]
test eax, eax
jne case.0x4015eb.2
mov dword [ebp - 4], 1
mov byte [edi], bl
jmp case.0x4015eb.2
push 0xffffffffffffffef
pop esi
call fcn.00401459
push eax
push edi
call fcn.00405867
jmp 0x401716
push 0x31
pop esi
call fcn.00401459
mov esi, eax
mov eax, dword [ebp - 0x28]
and eax, 7
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
call fcn.00405719
push esi
mov esi, 0x4090c8
test eax, eax
je 0x401919
push esi
call fcn.00405a26
jmp 0x401930
push 0x7a7800
push esi
call fcn.00405a26
push eax
call fcn.00405c4a
push eax
call sub.KERNEL32.DLL_lstrcatA
push esi
call fcn.00405a48
mov edi, 0x4098c8
cmp dword [ebp + 8], 3
jl 0x401972
push esi
call fcn.00405ae2
xor ecx, ecx
cmp eax, ebx
je 0x40195d
lea ecx, [ebp - 0x1c]
push ecx
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
or eax, 0x80000000
and eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jne 0x40197d
push esi
call fcn.00405812
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405838
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401a11
cmp dword [ebp + 8], ebx
jne 0x4019f3
push section..ndata
push edi
call fcn.00405a26
push esi
push section..ndata
call fcn.00405a26
push dword [ebp - 0x14]
push 0x4094c8
call fcn.00405d20
push edi
push section..ndata
call fcn.00405a26
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x4094c8
call fcn.00405697
sub eax, 4
je 0x40193b
dec eax
je 0x401a06
push esi
push 0xfffffffffffffffa
jmp 0x4015fb
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.00404957
cmp dword [ebp + 8], 2
jmp 0x401718
inc dword [0x7a1ce8]
jmp 0x402b05
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.00404957
inc dword [0x7a1d14]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.00402f1d
dec dword [0x7a1d14]
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, eax
jne 0x401a42
cmp dword [ebp - 0x18], 0xffffffff
je 0x401a51
lea eax, [ebp - 0x1c]
push eax
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
jge case.0x4015eb.2
cmp edi, 0xfffffffe
jne 0x401a7a
push 0xffffffffffffffe9
push esi
call fcn.00405d20
push dword [ebp - 0xc]
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x401a82
push 0xffffffffffffffee
push esi
call fcn.00405d20
push 0x200010
push esi
call fcn.00405697
jmp 0x401600
xor esi, esi
call fcn.00401459
push dword [ebp - 0x24]
push eax
call fcn.00406110
jmp case.0x4015eb.2
push 0x31
pop esi
call fcn.00401459
push dword [ebp - 0x28]
push eax
call fcn.00405697
cmp eax, ebx
je 0x40171e
cmp eax, dword [ebp - 0x20]
jne 0x401acd
mov eax, dword [ebp - 0x1c]
jmp 0x402b07
cmp eax, dword [ebp - 0x18]
jne case.0x4015eb.2
mov eax, dword [ebp - 0x14]
jmp 0x402b07
push 0xfffffffffffffff0
pop esi
jmp 0x401a94
xor esi, esi
inc esi
call fcn.00401459
push eax
call sub.KERNEL32.DLL_lstrlenA
push eax
jmp 0x4016cc
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401443
xor esi, esi
inc esi
mov dword [ebp - 8], eax
call fcn.00401459
mov esi, eax
mov byte [edi], bl
cmp dword [ebp - 0x20], ebx
je 0x401b27
cmp dword [ebp + 8], ebx
je case.0x4015eb.2
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp dword [ebp - 8], ebx
jge 0x401b3b
add dword [ebp - 8], eax
js case.0x4015eb.2
mov ecx, dword [ebp - 8]
cmp ecx, eax
jle 0x401b44
mov ecx, eax
add esi, ecx
push esi
push edi
call fcn.00405a26
cmp dword [ebp + 8], ebx
je case.0x4015eb.2
jge 0x401b66
push edi
call sub.KERNEL32.DLL_lstrlenA
add dword [ebp + 8], eax
jns 0x401b66
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x400
jge case.0x4015eb.2
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp case.0x4015eb.2
push 0x20
pop esi
call fcn.00401459
push 0x31
pop esi
mov edi, eax
call fcn.00401459
push eax
push edi
cmp dword [ebp - 0x18], ebx
jne 0x401bad
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x401ac5
mov eax, dword [ebp - 0x20]
jmp 0x402b07
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
jmp 0x401b9d
xor esi, esi
inc esi
call fcn.00401459
push 0x400
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
test eax, eax
je 0x401be1
cmp dword [ebp - 0x20], ebx
je 0x401bea
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x401bea
mov dword [ebp - 4], 1
mov byte [edi], bl
mov byte [edi + 0x3ff], bl
jmp case.0x4015eb.2
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
cmp dword [ebp - 0x14], ebx
jne 0x401c1d
cmp esi, eax
jl 0x401ac5
jle 0x401ba5
mov eax, dword [ebp - 0x18]
jmp 0x402b07
cmp esi, eax
jb 0x401ac5
jbe 0x401ba5
jmp 0x401c15
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc
ja case.default.0x401c49
jmp dword [eax*4 + 0x402c1e]
add esi, ecx
jmp case.default.0x401c49
sub esi, ecx
jmp case.default.0x401c49
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c49
cmp ecx, ebx
je 0x401c6a
mov eax, esi
cdq
idiv ecx
jmp 0x401c88
xor esi, esi
mov dword [ebp - 4], 1
jmp case.default.0x401c49
or esi, ecx
jmp case.default.0x401c49
and esi, ecx
jmp case.default.0x401c49
xor esi, ecx
jmp case.default.0x401c49
xor eax, eax
cmp esi, ebx
sete al
mov esi, eax
jmp case.default.0x401c49
cmp esi, ebx
jne 0x401c94
cmp ecx, ebx
je 0x401c9d
xor esi, esi
inc esi
jmp case.default.0x401c49
cmp esi, ebx
jne 0x401c90
xor esi, esi
jmp case.default.0x401c49
cmp ecx, ebx
je 0x401c6a
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c49
shl esi, cl
jmp case.default.0x401c49
sar esi, cl
push esi
jmp 0x4016cc
xor esi, esi
inc esi
call fcn.00401459
push 2
pop ecx
mov esi, eax
call fcn.00401443
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4015eb.2
mov ecx, dword [ebp - 0x20]
mov esi, dword [0x4090c4]
cmp ecx, ebx
je 0x401d39
dec ecx
cmp esi, ebx
je 0x401cf9
mov esi, dword [esi]
cmp ecx, ebx
jne 0x401cea
cmp esi, ebx
jne 0x401d0c
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405d20
push eax
jmp 0x401a88
lea edi, [esi + 4]
push edi
mov esi, 0x4090c8
push esi
call fcn.00405a26
mov eax, dword [0x4090c4]
add eax, 4
push eax
push edi
call fcn.00405a26
mov eax, dword [0x4090c4]
push esi
add eax, 4
push eax
jmp 0x4028e7
cmp eax, ebx
je 0x401d5c
cmp esi, ebx
je 0x40171e
lea eax, [esi + 4]
push eax
push edi
call fcn.00405a26
mov eax, dword [esi]
mov dword [0x4090c4], eax
push esi
jmp 0x40216d
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push dword [ebp - 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405d20
mov eax, dword [0x4090c4]
mov dword [esi], eax
mov dword [0x4090c4], esi
jmp case.0x4015eb.2
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp - 8], eax
call fcn.00401443
test byte [ebp - 0x14], 1
mov dword [ebp + 8], eax
je 0x401db0
push 0x33
pop esi
call fcn.00401459
mov dword [ebp - 8], eax
test byte [ebp - 0x14], 2
je 0x401dc1
push 0x44
pop esi
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401e11
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov esi, eax
call fcn.00401443
mov ecx, dword [ebp - 0x14]
sar ecx, 2
cmp ecx, ebx
je 0x401e01
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e4a
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e47
xor esi, esi
inc esi
call fcn.00401459
push 0x12
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401459
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x34]
push ecx
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], ebx
jl case.0x4015eb.2
push dword [ebp - 0xc]
jmp 0x4016cc
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017db
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
push eax
inc ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401af1
mov ecx, dword [0x7a1c68]
add eax, ecx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015eb.2
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x4c]
imul eax, dword [ebp - 0x20]
push 0x10
push eax
mov eax, dword [ebp - 0x50]
imul eax, dword [ebp - 0x20]
push eax
push ebx
xor esi, esi
call fcn.00401459
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je case.0x4015eb.2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015eb.2
push dword [ebp - 8]
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
pop ecx
call fcn.00401443
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push esi
push dword [ebp - 8]
neg eax
mov dword [0x40a4c8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 3
pop ecx
call fcn.00401443
push dword [ebp - 0x24]
mov dword [0x40a4d8], eax
mov al, byte [ebp - 0x18]
mov cl, al
and cl, 1
mov byte [0x40a4dc], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a4e4
mov byte [0x40a4dd], cl
mov byte [0x40a4de], al
mov byte [0x40a4df], 1
call fcn.00405d20
push 0x40a4c8
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401af1
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
push eax
push esi
cmp dword [ebp - 0x1c], ebx
jne 0x401faf
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015eb.2
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015eb.2
xor esi, esi
call fcn.00401459
push 0x31
pop esi
mov edi, eax
call fcn.00401459
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
push 0x15
pop esi
mov ebx, eax
call fcn.00401459
push 0xffffffffffffffec
call fcn.00401432
movsx eax, byte [ebx]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ebx
push 0x7a7800
push eax
movsx eax, byte [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015eb.2
jmp 0x40171e
xor esi, esi
call fcn.00401459
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404957
push esi
call fcn.00405632
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40171e
cmp dword [ebp - 0x20], ebx
je 0x402093
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402064
push 0xf
call fcn.00405bb1
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x402056
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x24], ebx
jl 0x402087
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00405984
jmp 0x402093
cmp dword [ebp - 8], ebx
je 0x402093
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x40270e
push 2
pop esi
call fcn.00401459
push eax
call fcn.00405ae2
mov esi, eax
cmp esi, ebx
je 0x4020c2
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.00405984
push dword [esi + 0x18]
jmp 0x4016cc
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x40171e
push 0xffffffffffffffee
pop esi
call fcn.00401459
lea ecx, [ebp - 0x30]
push ecx
push eax
push 8
mov dword [ebp - 0x34], eax
call fcn.00405b77
call eax
mov esi, eax
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
mov dword [ebp - 4], 1
cmp esi, ebx
je case.0x4015eb.2
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
je case.0x4015eb.2
push 9
call fcn.00405b77
push 0xa
mov dword [ebp - 0x40], eax
call fcn.00405b77
push dword [ebp + 8]
mov dword [ebp - 0x3c], eax
push esi
push ebx
push dword [ebp - 0x34]
call dword [ebp - 0x40]
test eax, eax
je 0x40216a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
push 0x407298
push dword [ebp + 8]
call dword [ebp - 0x3c]
test eax, eax
je 0x40216a
mov eax, dword [ebp - 8]
push dword [eax + 8]
push edi
call fcn.00405984
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.00405984
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp case.0x4015eb.2
cmp dword [0x7a1d18], ebx
mov dword [ebp - 4], 1
jl 0x402242
push 0xfffffffffffffff0
pop esi
call fcn.00401459
xor esi, esi
inc esi
mov edi, eax
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x4021b2
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
jne 0x4021c2
push 8
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
je 0x40223b
push dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
cmp edi, ebx
je 0x40220e
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x4021f0
push dword [ebp - 0x20]
call fcn.00401432
call edi
test eax, eax
je 0x402218
mov dword [ebp - 4], 1
jmp 0x402218
push section..data
push 0x4090c4
push section..ndata
push 0x400
push dword [ebp - 8]
call edi
add esp, 0x14
jmp 0x402218
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.00404957
cmp dword [ebp - 0x1c], ebx
jne case.0x4015eb.2
push esi
call fcn.004037bd
test eax, eax
je case.0x4015eb.2
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp case.0x4015eb.2
push 0xfffffffffffffff6
jmp 0x4017c4
push 0xffffffffffffffe7
jmp 0x4017c4
push 0xfffffffffffffff0
pop esi
call fcn.00401459
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401459
push 2
pop esi
mov dword [ebp - 8], eax
call fcn.00401459
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x4c], eax
call fcn.00401459
push 0x45
pop esi
mov dword [ebp - 0x34], eax
call fcn.00401459
push dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
and ecx, 0xfff
mov dword [ebp - 0x44], ecx
mov ecx, eax
mov edi, eax
sar eax, 0x10
and ecx, 0x8000
and eax, 0xffff
sar edi, 0xc
mov dword [ebp - 0x3c], ecx
and edi, 7
mov dword [ebp - 0x40], eax
call fcn.00405719
test eax, eax
jne 0x4022c0
push 0x21
pop esi
call fcn.00401459
lea eax, [ebp + 8]
push eax
push 0x407724
push 1
push ebx
push 0x407744
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4023a9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x407734
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40239c
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp dword [ebp - 0x3c], ebx
jne 0x40231b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x7a7800
push eax
call dword [ecx + 0x24]
cmp edi, ebx
je 0x402329
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx], bl
je 0x402349
push dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp esi, ebx
jl 0x402393
push 0x400
push dword [ebp - 8]
mov esi, 0x80004005
push 0xffffffffffffffff
push dword [ebp - 0x30]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x402393
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
push dword [ebp - 8]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x4023b7
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017c4
push 0xfffffffffffffff4
jmp 0x4017c4
xor esi, esi
call fcn.00401459
push 0x11
pop esi
mov edi, eax
call fcn.00401459
push 0x23
pop esi
mov dword [ebp + 8], eax
call fcn.00401459
push edi
mov dword [ebp - 0x30], eax
call fcn.00405ae2
test eax, eax
jne 0x4023f4
push ebx
push 0xfffffffffffffff9
call fcn.00404957
jmp 0x40171e
mov eax, dword [ebp - 8]
push edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 2
call sub.KERNEL32.DLL_lstrlenA
mov esi, dword [ebp + 8]
push esi
mov byte [eax + edi + 1], bl
call sub.KERNEL32.DLL_lstrlenA
mov byte [eax + esi + 1], bl
mov eax, dword [ebp - 0x30]
mov cx, word [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4a], eax
mov word [ebp - 0x54], cx
call fcn.00404957
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015eb.2
jmp 0x4023e7
cmp esi, 0xbadf00d
jne 0x401cf9
inc dword [0x7a1cf4]
jmp case.0x4015eb.2
xor edi, edi
mov dword [ebp + 8], ebx
cmp esi, ebx
je 0x402473
xor esi, esi
call fcn.00401459
mov edi, eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x402482
push 0x11
pop esi
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x402491
push 0x22
pop esi
call fcn.00401459
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.00401459
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x401716
push 0xa
pop eax
xor esi, esi
inc esi
mov word [ebp + 8], ax
call fcn.00401459
push 0x12
pop esi
mov dword [ebp - 0x38], eax
call fcn.00401459
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401459
push eax
push 0x3ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [edi], 0xa
jmp 0x4018c3
cmp dword [ebp - 0x18], ebx
jne 0x40251f
push 2
call fcn.00401547
mov edi, eax
cmp edi, ebx
je 0x40171e
push 0x33
pop esi
call fcn.00401459
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40254a
push 0x22
pop esi
call fcn.00401459
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
jne 0x40253a
mov ecx, dword [0x7a1ce4]
add ecx, 0x80000001
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
push eax
push ecx
call fcn.00401491
mov esi, eax
cmp esi, ebx
je case.0x4015eb.2
jmp 0x40171e
cmp esi, ebx
je 0x40255f
mov edi, esi
jmp 0x40256b
mov edi, dword [0x7a1ce4]
add edi, 0x80000001
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
push 2
pop esi
mov dword [ebp - 0x30], eax
call fcn.00401459
push 0x11
pop esi
mov dword [ebp - 0x38], eax
call fcn.00401459
push ebx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x7a1d10]
push ebx
or ecx, 2
push ecx
push ebx
push ebx
push ebx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x4015eb.2
cmp dword [ebp + 8], 1
mov edi, 0x4098c8
jne 0x4025ce
push 0x23
pop esi
call fcn.00401459
push edi
call sub.KERNEL32.DLL_lstrlenA
inc eax
cmp dword [ebp + 8], 4
jne 0x4025e4
push 3
pop ecx
call fcn.00401443
push 4
mov dword [0x4098c8], eax
pop eax
cmp dword [ebp + 8], 3
jne 0x4025f9
push 0xc00
push edi
push ebx
push dword [ebp - 0x1c]
call fcn.00402f1d
push eax
push edi
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402612
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015eb.2
push 0x20019
call fcn.00401547
push 0x33
pop esi
mov dword [ebp - 8], eax
call fcn.00401459
mov byte [edi], bl
cmp dword [ebp - 8], ebx
je 0x40171e
lea ecx, [ebp - 0x30]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402699
cmp dword [ebp + 8], 4
je 0x402681
cmp dword [ebp + 8], ecx
je 0x402673
cmp dword [ebp + 8], 2
jne 0x402699
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov byte [edi + 0x3ff], bl
jmp 0x402612
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], ebx
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00405984
jmp 0x402612
mov byte [edi], bl
mov dword [ebp - 4], ecx
jmp 0x402612
push 0x20019
call fcn.00401547
push 3
pop ecx
mov esi, eax
call fcn.00401443
mov byte [edi], bl
cmp esi, ebx
je 0x40171e
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], ebx
je 0x4026da
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026f3
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40171e
mov byte [edi + 0x3ff], bl
push esi
jmp 0x402615
push edi
call fcn.0040599d
cmp eax, ebx
je case.0x4015eb.2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp case.0x4015eb.2
push 0xffffffffffffffed
pop esi
call fcn.00401459
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.00405838
cmp eax, 0xffffffff
jne 0x401af1
mov byte [edi], bl
jmp 0x40171e
cmp dword [ebp - 0x20], ebx
je 0x402753
xor esi, esi
inc esi
mov ecx, esi
call fcn.00401443
mov byte [0x4094c8], al
jmp 0x402763
push 0x11
pop esi
call fcn.00401459
push eax
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
cmp byte [edi], bl
je 0x40171e
push edi
call fcn.0040599d
push esi
push 0x4094c8
push eax
call fcn.004058de
jmp 0x401716
push 2
pop ecx
xor esi, esi
call fcn.00401443
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015eb.2
mov ecx, 0x3ff
cmp eax, ecx
jle 0x4027a4
mov dword [ebp - 8], ecx
cmp byte [edi], bl
je 0x40282e
push edi
mov byte [ebp + 0xb], bl
call fcn.0040599d
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x34], eax
jle 0x40282e
mov edi, dword [ebp - 0xc]
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x34]
call fcn.004058af
test eax, eax
je 0x402831
cmp dword [ebp - 0x1c], ebx
jne 0x4027f8
cmp byte [ebp + 0xb], 0xd
je 0x402808
cmp byte [ebp + 0xb], 0xa
je 0x402808
mov al, byte [ebp - 0xd]
mov byte [esi + edi], al
inc esi
mov byte [ebp + 0xb], al
cmp al, bl
je 0x402831
cmp esi, dword [ebp - 8]
jl 0x4027c0
jmp 0x402831
movzx eax, byte [ebp - 0xd]
push eax
push edi
call fcn.00405984
jmp 0x402b05
mov al, byte [ebp - 0xd]
cmp byte [ebp + 0xb], al
je 0x40281e
cmp al, 0xd
je 0x402818
cmp al, 0xa
jne 0x40281e
mov byte [esi + edi], al
inc esi
jmp 0x402831
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x402831
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x401718
cmp byte [edi], bl
je case.0x4015eb.2
push dword [ebp - 0x1c]
push ebx
push 2
pop ecx
call fcn.00401443
push eax
push edi
call fcn.0040599d
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp dword [ebp - 0x24], ebx
jl case.0x4015eb.2
push eax
push dword [ebp - 0xc]
jmp 0x4016cd
push edi
call fcn.0040599d
cmp eax, ebx
je case.0x4015eb.2
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp case.0x4015eb.2
push dword [ebp - 0xc]
call fcn.0040599d
cmp eax, ebx
je 0x4018c9
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x4018c9
jmp 0x4028df
push 2
pop esi
call fcn.00401459
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4028d6
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
jmp 0x402736
push eax
push dword [ebp - 0xc]
call fcn.00405984
lea eax, [ebp - 0x178]
push eax
push edi
call fcn.00405a26
jmp case.0x4015eb.2
push 0xfffffffffffffff0
pop esi
mov dword [ebp - 8], 0xfffffd66
call fcn.00401459
mov edi, eax
push edi
mov dword [ebp - 0x38], edi
call fcn.00405719
test eax, eax
jne 0x402917
push 0xffffffffffffffed
pop esi
call fcn.00401459
push edi
call fcn.00405812
push 2
push 0x40000000
push edi
call fcn.00405838
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4029cd
mov eax, dword [0x7a1c8c]
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x34], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x4029c4
push ebx
call fcn.00402d9f
push dword [ebp - 0x34]
push edi
call fcn.00402d89
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x4029a2
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp - 0x24]
call fcn.00402f1d
jmp 0x402995
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x50], ecx
call fcn.004057ee
add esi, dword [ebp - 0x50]
cmp byte [esi], bl
jne 0x40297d
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push dword [ebp - 0x34]
push edi
push dword [ebp + 8]
call fcn.004058de
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebx
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402f1d
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], ebx
push 0xfffffffffffffff3
pop esi
jge 0x4029e8
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [ebp - 4], 1
push esi
jmp 0x4017c4
xor ecx, ecx
call fcn.00401443
mov edi, eax
cmp edi, dword [0x7a1c4c]
jae 0x40171e
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x7a1c48]
cmp eax, ebx
jl 0x402a2f
mov ecx, dword [esi + eax*4]
jne 0x402a29
add esi, 0x18
push esi
push dword [ebp - 0xc]
jmp 0x4028e7
push ecx
jmp 0x402867
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x402a46
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp - 0x24], eax
jmp 0x402a59
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00405d20
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x1c], ebx
je case.0x4015eb.2
push edi
call fcn.00401186
jmp case.0x4015eb.2
xor ecx, ecx
call fcn.00401443
cmp eax, 0x20
jae 0x40171e
cmp dword [ebp - 0x1c], ebx
je 0x402aaa
cmp dword [ebp - 0x20], ebx
je 0x402a9f
push eax
call fcn.004012a6
push ebx
push ebx
call fcn.004011f8
jmp case.0x4015eb.2
push ebx
call fcn.004012f1
jmp 0x402866
cmp dword [ebp - 0x20], ebx
je 0x402ac1
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x7a1c2c]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015eb.2
mov ecx, dword [0x7a1c2c]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.00405d20
jmp case.0x4015eb.2
mov eax, dword [0x79f220]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x28], ebx
je case.0x4015eb.2
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x7a1ce8], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4