Function at 0x40159c
Capabilities:
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file version info
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4705b4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 4], 0
push 7
pop ecx
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov edi, eax
mov ebx, edx
imul edi, edi, 0x4008
imul ebx, ebx, 0x4008
mov ecx, section..ndata
add edi, ecx
add ebx, ecx
lea ecx, [ebp - 0x24]
mov dword [0x40a0a4], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffffe
cmp ecx, 0x44
ja case.0x4015f6.67
jmp dword [ecx*4 + 0x402c6c]
push 0
push eax
call fcn.00404ba9
mov eax, 0x7fffffff
jmp case.0x4015f6.2
inc dword [0x468574]
cmp dword [ebp - 8], 0
je 0x401605
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401605
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.0040139b
jmp case.0x4015f6.2
push 0
push eax
call fcn.00404ba9
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
cmp eax, 1
jg 0x401655
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015f6.67
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f6.67
shl eax, 2
cmp dword [ebp - 0x1c], 0
jne 0x40169b
mov ecx, dword [eax + 0x470660]
mov dword [eax + 0x470620], ecx
xor ecx, ecx
inc ecx
call fcn.00401446
mov ecx, dword [ebp - 0x24]
mov dword [ecx*4 + 0x470660], eax
jmp case.0x4015f6.67
mov ecx, dword [eax + 0x470620]
mov dword [eax + 0x470660], ecx
jmp case.0x4015f6.67
mov edx, dword [ebp - 0x1c]
lea edx, [edx*4 + 0x470660]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 - 0x24]
jmp case.0x4015f6.2
push dword [edx*4 + 0x470660]
jmp 0x402c52
mov ecx, dword [0x468580]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x4016f0
push edx
push ecx
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x46856c]
test ecx, ecx
je case.0x4015f6.67
push eax
push ecx
call esi
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne case.0x4015f6.67
mov dword [ebp - 4], 1
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
mov ebx, eax
push ebx
call fcn.0040593d
mov esi, eax
test esi, esi
je 0x401786
push 0x5c
push esi
call fcn.004058e9
mov esi, eax
movzx edi, word [esi]
xor eax, eax
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40177c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401779
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40177c
inc dword [ebp - 4]
mov word [esi], di
inc esi
inc esi
test di, di
jne 0x401743
cmp dword [ebp - 0x20], 0
je 0x4017aa
push 0xffffffffffffffe6
call fcn.00401435
push ebx
push 0x4c90b0
call fcn.00405bee
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp case.0x4015f6.67
push 0xfffffffffffffff5
call fcn.00401435
jmp case.0x4015f6.67
xor esi, esi
call fcn.0040145c
push eax
call fcn.00405cce
test eax, eax
je 0x401b90
mov eax, dword [ebp - 0x20]
jmp case.0x4015f6.2
push 0xffffffffffffffd0
pop esi
call fcn.0040145c
push 0xffffffffffffffdf
pop esi
mov edi, eax
call fcn.0040145c
push 0x13
pop esi
mov ebx, eax
call fcn.0040145c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4017ff
push 0xffffffffffffffe3
jmp 0x4017ac
cmp dword [ebp - 0x1c], 0
je 0x401721
push edi
call fcn.00405cce
test eax, eax
je 0x401721
push ebx
push edi
call fcn.0040665c
push 0xffffffffffffffe4
jmp 0x4017ac
xor esi, esi
call fcn.0040145c
mov esi, eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x401865
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401871
cmp word [eax], 0
je 0x401871
push esi
call fcn.00405cce
test eax, eax
je 0x401865
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405bee
jmp 0x401871
xor eax, eax
mov word [ebx], ax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne case.0x4015f6.67
push 0x2004
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp case.0x4015f6.67
or esi, 0xffffffff
call fcn.0040145c
lea ecx, [ebp + 8]
push ecx
push edi
push 0x2004
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne case.0x4015f6.67
xor eax, eax
mov dword [ebp - 4], 1
mov word [edi], ax
jmp case.0x4015f6.67
push 0xffffffffffffffef
pop esi
call fcn.0040145c
push eax
push edi
call fcn.00405a63
jmp 0x401719
push 0x31
pop esi
call fcn.0040145c
mov esi, eax
mov eax, dword [ebp - 0x24]
and eax, 7
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
call fcn.00405908
push esi
mov esi, 0x40a0a8
test eax, eax
je 0x401905
push esi
call fcn.00405bee
jmp 0x40191c
push 0x4c90b0
push esi
call fcn.00405bee
push eax
call fcn.0040611c
push eax
call fcn.00405c0a
push esi
call fcn.00405c1d
mov edi, 0x4120b8
mov ebx, section..ndata
cmp dword [ebp + 8], 3
jl 0x401963
push esi
call fcn.00405cce
xor ecx, ecx
test eax, eax
je 0x40194e
lea ecx, [ebp - 0x18]
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], 0
jne 0x40196f
push esi
call fcn.00405a14
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405a34
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4019f8
cmp dword [ebp + 8], 0
jne 0x4019da
push ebx
push edi
call fcn.00405bee
push esi
push ebx
call fcn.00405bee
push dword [ebp - 0x10]
push 0x40e0b0
call fcn.00406200
push edi
push ebx
call fcn.00405bee
mov eax, dword [ebp - 0x24]
sar eax, 3
push eax
push 0x40e0b0
call fcn.00405883
sub eax, 4
je 0x40192c
dec eax
je 0x4019ed
push esi
push 0xfffffffffffffffa
jmp 0x401600
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.00404ba9
cmp dword [ebp + 8], 2
jmp 0x40171b
inc dword [0x470668]
jmp 0x402c61
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.00404ba9
inc dword [0x470694]
xor edi, edi
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.004030b8
dec dword [0x470694]
cmp dword [ebp - 0x18], 0xffffffff
mov ebx, eax
jne 0x401a2b
cmp dword [ebp - 0x14], 0xffffffff
je 0x401a3a
lea eax, [ebp - 0x18]
push eax
push edi
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 ebx, edi
jge case.0x4015f6.67
cmp ebx, 0xfffffffe
jne 0x401a63
push 0xffffffffffffffe9
push esi
call fcn.00406200
push dword [ebp - 0xc]
push esi
call fcn.00405c0a
jmp 0x401a6b
push 0xffffffffffffffee
push esi
call fcn.00406200
push 0x200010
push esi
call fcn.00405883
jmp 0x401605
xor esi, esi
call fcn.0040145c
push dword [ebp - 0x20]
push eax
call fcn.0040668f
jmp case.0x4015f6.67
push 0x31
pop esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call fcn.00405883
test eax, eax
je 0x401721
cmp eax, dword [ebp - 0x1c]
jne 0x401ab6
mov eax, dword [ebp - 0x18]
jmp case.0x4015f6.2
cmp eax, dword [ebp - 0x14]
jne case.0x4015f6.67
mov eax, dword [ebp - 0x10]
jmp case.0x4015f6.2
push 0xfffffffffffffff0
pop esi
jmp 0x401a7d
xor esi, esi
inc esi
call fcn.0040145c
push eax
call fcn.00405c04
jmp 0x402c51
push 2
pop ecx
call fcn.00401446
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401446
xor esi, esi
inc esi
mov ebx, eax
call fcn.0040145c
mov esi, eax
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0x1c], eax
je 0x401b11
cmp dword [ebp + 8], eax
je case.0x4015f6.67
push esi
call fcn.00405c04
test ebx, ebx
jge 0x401b23
add ebx, eax
js case.0x4015f6.67
cmp ebx, eax
jle 0x401b29
mov ebx, eax
lea eax, [esi + ebx*2]
push eax
push edi
call fcn.00405bee
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4015f6.67
jge 0x401b51
push edi
call fcn.00405c04
add esi, eax
jns 0x401b51
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x2004
jge case.0x4015f6.67
xor eax, eax
mov word [edi + esi*2], ax
jmp case.0x4015f6.67
push 0x20
pop esi
call fcn.0040145c
push 0x31
pop esi
mov edi, eax
call fcn.0040145c
cmp dword [ebp - 0x14], 0
push eax
push edi
jne 0x401b98
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401aae
mov eax, dword [ebp - 0x1c]
jmp case.0x4015f6.2
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x401b88
xor esi, esi
inc esi
call fcn.0040145c
push 0x2004
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401bcd
cmp dword [ebp - 0x1c], 0
je 0x401bd5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401bd5
xor eax, eax
mov dword [ebp - 4], esi
mov word [edi], ax
xor eax, eax
mov word [edi + 0x4006], ax
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x10], 0
jne 0x401c0c
cmp esi, eax
jl 0x401aae
jle 0x401b90
mov eax, dword [ebp - 0x14]
jmp case.0x4015f6.2
cmp esi, eax
jb 0x401aae
jbe 0x401b90
jmp 0x401c04
xor ebx, ebx
inc ebx
mov ecx, ebx
call fcn.00401446
push 2
pop ecx
mov esi, eax
call fcn.00401446
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xc
ja case.default.0x401c3a
jmp dword [eax*4 + 0x402d80]
add esi, ecx
jmp case.default.0x401c3a
sub esi, ecx
jmp case.default.0x401c3a
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c3a
test ecx, ecx
je 0x401c5b
mov eax, esi
cdq
idiv ecx
jmp 0x401c75
xor esi, esi
mov dword [ebp - 4], ebx
jmp case.default.0x401c3a
or esi, ecx
jmp case.default.0x401c3a
and esi, ecx
jmp case.default.0x401c3a
xor esi, ecx
jmp case.default.0x401c3a
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c3a
test esi, esi
jne 0x401c81
test ecx, ecx
je 0x401c89
mov esi, ebx
jmp case.default.0x401c3a
test esi, esi
jne 0x401c7d
xor esi, esi
jmp case.default.0x401c3a
test ecx, ecx
je 0x401c5b
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c3a
shl esi, cl
jmp case.default.0x401c3a
sar esi, cl
push esi
jmp 0x402c52
xor esi, esi
inc esi
call fcn.0040145c
push 2
pop ecx
mov esi, eax
call fcn.00401446
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp case.0x4015f6.67
mov eax, dword [ebp - 0x1c]
mov esi, dword [0x40a0a0]
test eax, eax
je 0x401d26
dec eax
test esi, esi
je 0x401ce5
mov esi, dword [esi]
test eax, eax
jne 0x401cd6
test esi, esi
jne 0x401cf9
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00406200
push eax
jmp 0x401a71
lea edi, [esi + 4]
push edi
mov esi, 0x40a0a8
push esi
call fcn.00405bee
mov eax, dword [0x40a0a0]
add eax, 4
push eax
push edi
call fcn.00405bee
mov eax, dword [0x40a0a0]
push esi
add eax, 4
push eax
jmp 0x402a25
test edx, edx
je 0x401d49
test esi, esi
je 0x401721
lea eax, [esi + 4]
push eax
push edi
call fcn.00405bee
mov eax, dword [esi]
mov dword [0x40a0a0], eax
push esi
jmp 0x402139
push 0x400c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x24]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00406200
mov eax, dword [0x40a0a0]
mov dword [esi], eax
mov dword [0x40a0a0], esi
jmp case.0x4015f6.67
push 3
pop ecx
call fcn.00401446
push 4
pop ecx
mov dword [ebp - 8], eax
call fcn.00401446
test byte [ebp - 0x10], 1
mov dword [ebp + 8], eax
je 0x401d9d
push 0x33
pop esi
call fcn.0040145c
mov dword [ebp - 8], eax
test byte [ebp - 0x10], 2
je 0x401dae
push 0x44
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x28], 0x21
jne 0x401dff
xor ecx, ecx
inc ecx
call fcn.00401446
push 2
pop ecx
mov esi, eax
call fcn.00401446
mov ecx, dword [ebp - 0x10]
sar ecx, 2
test ecx, ecx
je 0x401def
lea edx, [ebp - 0xc]
push edx
push ecx
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e34
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x401e31
xor esi, esi
inc esi
call fcn.0040145c
push 0x12
pop esi
mov ebx, eax
call fcn.0040145c
movzx ecx, word [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movzx eax, word [ebx]
neg eax
push ecx
sbb eax, eax
and eax, ebx
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x24], 0
jl case.0x4015f6.67
push dword [ebp - 0xc]
jmp 0x402c52
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017c3
push 2
pop ecx
call fcn.00401446
xor ecx, ecx
push eax
inc ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x402c51
mov eax, dword [0x4705e8]
add eax, edx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp case.0x4015f6.67
push edx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x1c]
push 0x10
push eax
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
xor esi, esi
call fcn.0040145c
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebx
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je case.0x4015f6.67
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f6.67
push 0x48
push 0x5a
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401446
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x41e0d0], eax
call fcn.00401446
push dword [ebp - 0x20]
mov dword [0x41e0e0], eax
mov al, byte [ebp - 0x14]
mov cl, al
and cl, 1
mov byte [0x41e0e4], cl
mov cl, al
and cl, 2
and al, 4
push 0x41e0ec
mov byte [0x41e0e5], cl
mov byte [0x41e0e6], al
mov byte [0x41e0e7], 1
call fcn.00406200
push 0x41e0d0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x402c51
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x18], 0
push eax
push esi
jne 0x401f90
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f6.67
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f6.67
xor esi, esi
call fcn.0040145c
push 0x31
pop esi
mov edi, eax
call fcn.0040145c
push 0x22
pop esi
mov dword [ebp + 8], eax
call fcn.0040145c
push 0x15
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffec
call fcn.00401435
movzx eax, word [ebx]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, ebx
push 0x4c90b0
push eax
movzx eax, word [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_ShellExecuteW]
cmp eax, 0x21
jge case.0x4015f6.67
jmp 0x401721
xor esi, esi
call fcn.0040145c
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404ba9
push esi
call fcn.00405822
mov dword [ebp + 8], eax
test eax, eax
je 0x401721
cmp dword [ebp - 0x1c], 0
je 0x402075
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402046
push 0xf
call fcn.00405d2c
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x402038
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], 0
jl 0x402068
push dword [ebp - 0xc]
push ebx
call fcn.00405b35
jmp 0x402075
cmp dword [ebp - 0xc], 0
je 0x402075
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4026bd
push 2
pop esi
call fcn.0040145c
push eax
call fcn.00405cce
mov esi, eax
test esi, esi
je 0x4020a2
push dword [esi + 0x14]
push ebx
call fcn.00405b35
push dword [esi + 0x18]
jmp 0x402c52
xor eax, eax
mov word [edi], ax
mov word [ebx], ax
jmp 0x401721
push 0xffffffffffffffee
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x2c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
xor eax, eax
mov word [edi], ax
mov word [ebx], ax
mov dword [ebp - 4], 1
test esi, esi
je case.0x4015f6.67
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je case.0x4015f6.67
push eax
push esi
push 0
push dword [ebp - 0x2c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402136
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
push 0x4082c8
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402136
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.00405b35
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push ebx
call fcn.00405b35
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f6.67
cmp dword [0x470698], 0
mov dword [ebp - 4], 1
jl 0x402211
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
xor esi, esi
inc esi
mov edi, eax
call fcn.0040145c
xor esi, esi
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], esi
je 0x402181
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
cmp ebx, esi
jne 0x402191
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
je 0x40220a
push dword [ebp + 8]
push ebx
call fcn.00405d5f
mov edi, eax
cmp edi, esi
je 0x4021dd
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x4021bf
push dword [ebp - 0x1c]
call fcn.00401435
call edi
test eax, eax
je 0x4021e7
mov dword [ebp - 4], 1
jmp 0x4021e7
push section..data
push 0x40a0a0
push section..ndata
push 0x2004
push dword [ebp - 8]
call edi
add esp, 0x14
jmp 0x4021e7
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.00404ba9
cmp dword [ebp - 0x18], esi
jne case.0x4015f6.67
push ebx
call fcn.00403976
test eax, eax
je case.0x4015f6.67
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f6.67
push 0xfffffffffffffff6
jmp 0x4017ac
push 0xffffffffffffffe7
jmp 0x4017ac
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x3c], eax
call fcn.0040145c
push 2
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 8], eax
call fcn.0040145c
push 0x45
pop esi
mov dword [ebp - 0x2c], eax
call fcn.0040145c
push ebx
mov dword [ebp - 0x34], eax
call fcn.00405908
test eax, eax
jne 0x402260
push 0x21
pop esi
call fcn.0040145c
lea eax, [ebp + 8]
push eax
push 0x4089e8
push 1
push 0
push 0x408a08
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40233b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x4089f8
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jl 0x40232e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x4c90b0
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x4022d3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
je 0x4022f9
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and ebx, esi
push ebx
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test edi, edi
jl 0x402325
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x3c]
push eax
call dword [ecx + 0x18]
mov edi, 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]
test edi, edi
jge 0x402349
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017ac
push 0xfffffffffffffff4
jmp 0x4017ac
xor esi, esi
call fcn.0040145c
push 0x11
pop esi
mov edi, eax
call fcn.0040145c
push 0x23
pop esi
mov ebx, eax
call fcn.0040145c
push edi
mov esi, eax
call fcn.00405cce
test eax, eax
jne 0x402385
push 0
push 0xfffffffffffffff9
call fcn.00404ba9
jmp 0x401721
mov eax, dword [ebp - 8]
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 2
call fcn.00405c04
xor ecx, ecx
push ebx
mov word [edi + eax*2 + 2], cx
call fcn.00405c04
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
mov ax, word [ebp - 0x1c]
push esi
push ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3a], esi
mov word [ebp - 0x44], ax
call fcn.00404ba9
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je case.0x4015f6.67
jmp 0x402377
cmp eax, 0xbadf00d
jne 0x401ce5
inc dword [0x470674]
jmp case.0x4015f6.67
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x402405
xor esi, esi
call fcn.0040145c
mov edx, dword [ebp - 0x20]
mov edi, eax
test edx, edx
je 0x402414
push 0x11
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], ebx
je 0x402423
push 0x22
pop esi
call fcn.0040145c
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.0040145c
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x401719
mov eax, dword [0x4082c0]
mov dword [ebp - 0x40], eax
mov eax, dword [0x4082c4]
xor esi, esi
inc esi
mov dword [ebp - 0x3c], eax
call fcn.0040145c
push 0x12
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffdd
pop esi
mov dword [ebp + 8], eax
call fcn.0040145c
push eax
push 0x2003
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
jmp 0x4018aa
cmp dword [ebp - 0x14], 0
jne 0x4024c0
push 2
call fcn.0040154d
mov edi, eax
test edi, edi
je 0x401721
push 0x33
pop esi
call fcn.0040145c
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024eb
push 0x22
pop esi
call fcn.0040145c
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x4024db
mov ecx, dword [0x470664]
add ecx, 0x80000001
mov edx, dword [ebp - 0x14]
and edx, 2
push edx
push eax
push ecx
call fcn.00401497
mov esi, eax
test esi, esi
je case.0x4015f6.67
jmp 0x401721
test eax, eax
je 0x402500
mov edi, eax
jmp 0x40250c
mov edi, dword [0x470664]
add edi, 0x80000001
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push 2
pop esi
mov dword [ebp - 0x3c], eax
call fcn.0040145c
push 0x11
pop esi
mov dword [ebp - 0x34], eax
call fcn.0040145c
xor ecx, ecx
push ecx
lea edx, [ebp + 8]
push edx
mov edx, dword [0x470690]
push ecx
or edx, 2
push edx
push ecx
push ecx
push ecx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne case.0x4015f6.67
mov edi, 0x4120b8
cmp ebx, 1
jne 0x402570
push 0x23
pop esi
call fcn.0040145c
push edi
call fcn.00405c04
lea eax, [eax + eax + 2]
cmp ebx, 4
jne 0x402584
push 3
pop ecx
call fcn.00401446
push ebx
mov dword [0x4120b8], eax
pop eax
cmp ebx, 3
jne 0x402599
push 0xc018
push edi
push 0
push dword [ebp - 0x18]
call fcn.004030b8
push eax
push edi
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x34]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4025b3
and dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f6.67
push 0x20019
call fcn.0040154d
push 0x33
pop esi
mov ebx, eax
call fcn.0040145c
xor ecx, ecx
mov word [edi], cx
test ebx, ebx
je 0x401721
lea ecx, [ebp - 0xc]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
mov dword [ebp - 0xc], 0x4008
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x40263a
cmp dword [ebp + 8], 4
je 0x402625
cmp dword [ebp + 8], ecx
je 0x402614
cmp dword [ebp + 8], 2
jne 0x40263a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
xor eax, eax
mov word [edi + ecx*2], ax
jmp 0x402642
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x14], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00405b35
jmp 0x402642
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], ecx
push ebx
jmp 0x4025b6
push 0x20019
call fcn.0040154d
push 3
pop ecx
mov esi, eax
call fcn.00401446
xor ecx, ecx
xor edx, edx
mov word [edi], cx
cmp esi, edx
je 0x401721
mov ecx, 0x2003
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x14], edx
je 0x402684
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40269d
push edx
push edx
push edx
push edx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x401721
xor eax, eax
mov word [edi + 0x4006], ax
push esi
jmp 0x4025b6
cmp word [edi], 0
je case.0x4015f6.67
push edi
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f6.67
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call fcn.00405a34
cmp eax, 0xffffffff
jne 0x402c51
xor eax, eax
mov word [edi], ax
jmp 0x401721
mov ebx, 0x2004
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp dword [ebp - 0x1c], 0
mov esi, eax
mov dword [ebp + 8], esi
je 0x402717
xor ecx, ecx
inc ecx
call fcn.00401446
mov byte [esi], al
xor eax, eax
inc eax
jmp 0x40273f
push 0x11
pop esi
call fcn.0040145c
xor eax, eax
push eax
push eax
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
push 0x40e0b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp word [edi], 0
je 0x402760
push 0
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp + 8]
push edi
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402767
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x402139
push 2
pop ecx
xor esi, esi
call fcn.00401446
cmp eax, 1
mov dword [ebp - 0xc], eax
jl case.0x4015f6.67
mov ecx, 0x2003
cmp eax, ecx
jle 0x402791
mov dword [ebp - 0xc], ecx
cmp word [edi], si
je 0x40284d
push edi
mov byte [ebp - 0x2d], 0
call fcn.00405b4e
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], eax
jle 0x40284d
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40284d
cmp dword [ebp - 0x3c], 1
jne 0x40284d
xor edi, edi
cmp dword [ebp - 0x18], edi
jne 0x402813
push 2
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [ebp - 0x2d]
cmp al, 0xd
je 0x402823
cmp al, 0xa
je 0x402823
mov ax, word [ebp - 8]
mov word [ebx + esi*2], ax
mov al, byte [ebp + 0xb]
inc esi
mov byte [ebp - 0x2d], al
test al, al
je 0x40284d
cmp esi, dword [ebp - 0xc]
jl 0x4027b0
jmp 0x40284d
movzx eax, byte [ebp + 0xb]
push eax
push ebx
call fcn.00405b35
jmp 0x402c61
cmp al, byte [ebp + 0xb]
je 0x40283f
cmp byte [ebp + 0xb], 0xd
je 0x402834
cmp byte [ebp + 0xb], 0xa
jne 0x40283f
mov ax, word [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
jmp 0x40284d
push 1
push edi
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov word [ebx + esi*2], ax
test esi, esi
jmp 0x40171b
cmp dword [ebp - 0x1c], 0
je 0x402873
xor ecx, ecx
inc ecx
call fcn.00401446
mov word [0x40e0b0], ax
xor eax, eax
inc eax
jmp 0x402881
push 0x11
pop esi
call fcn.0040145c
push eax
call fcn.00405c04
cmp word [edi], 0
je 0x401721
push 0
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push 0x40e0b0
push edi
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401719
push 2
pop ecx
xor esi, esi
call fcn.00401446
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015f6.67
mov ecx, 0x2003
cmp eax, ecx
jle 0x4028cd
mov dword [ebp - 8], ecx
cmp word [edi], si
je 0x40284d
and dword [ebp + 8], esi
push edi
call fcn.00405b4e
cmp dword [ebp - 8], esi
mov dword [ebp - 0x2c], eax
jle 0x40284d
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x3c]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40284d
cmp dword [ebp - 0x3c], 2
jne 0x40284d
cmp dword [ebp - 0x18], 0
jne 0x402946
cmp di, 0xd
je 0x40294f
cmp di, 0xa
je 0x40294f
mov ax, word [ebp + 8]
mov word [ebx + esi*2], ax
inc esi
movzx edi, ax
test ax, ax
je 0x40284d
cmp esi, dword [ebp - 8]
jl 0x4028ee
jmp 0x40284d
movzx eax, word [ebp + 8]
jmp 0x402817
mov ax, word [ebp + 8]
cmp di, ax
je 0x40296c
cmp ax, 0xd
je 0x402838
cmp ax, 0xa
je 0x402838
push 1
push 0
push 0xfffffffffffffffe
jmp 0x402844
cmp word [edi], 0
je case.0x4015f6.67
push dword [ebp - 0x18]
push 0
push 2
pop ecx
call fcn.00401446
push eax
push edi
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0
jl case.0x4015f6.67
push eax
push ebx
jmp 0x402c53
cmp word [edi], 0
je case.0x4015f6.67
push edi
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f6.67
cmp word [ebx], 0
je 0x4018b2
lea eax, [ebp - 0x2a4]
push eax
push ebx
call fcn.00405b4e
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4018b2
jmp 0x402a1d
push 2
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x2a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402a16
xor eax, eax
mov word [ebx], ax
jmp 0x4026e5
push eax
push ebx
call fcn.00405b35
lea eax, [ebp - 0x278]
push eax
push edi
call fcn.00405bee
jmp case.0x4015f6.67
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.0040145c
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call fcn.00405908
test eax, eax
jne 0x402a53
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push edi
call fcn.00405a14
push 2
push 0x40000000
push edi
call fcn.00405a34
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402b0f
mov eax, dword [0x47060c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x2c], eax
call esi
mov edi, eax
test edi, edi
je 0x402b06
push 0
call fcn.00402f23
push dword [ebp - 0x2c]
push edi
call fcn.00402ef1
push dword [ebp - 0x1c]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x402add
push dword [ebp - 0x1c]
push esi
push 0
push dword [ebp - 0x20]
call fcn.004030b8
jmp 0x402acf
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.004059f0
add esi, ebx
cmp byte [esi], 0
jne 0x402abb
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.004030b8
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x402b29
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
push esi
jmp 0x4017ac
xor ecx, ecx
call fcn.00401446
mov edi, eax
cmp edi, dword [0x4705cc]
jae 0x401721
mov eax, dword [ebp - 0x1c]
mov esi, edi
imul esi, esi, 0x4020
add esi, dword [0x4705c8]
test eax, eax
jl 0x402b6e
mov ecx, dword [esi + eax*4]
jne 0x402b68
add esi, 0x18
push esi
push ebx
jmp 0x402a25
push ecx
jmp 0x4029a7
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x402b85
xor ecx, ecx
inc ecx
call fcn.00401446
mov dword [ebp - 0x20], eax
jmp 0x402b98
push dword [ebp - 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.00406200
or dword [esi + 8], 0x100
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x18], 0
je case.0x4015f6.67
push edi
call fcn.00401186
jmp case.0x4015f6.67
xor ecx, ecx
call fcn.00401446
cmp eax, 0x20
jae 0x401721
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x402bec
cmp dword [ebp - 0x1c], esi
je 0x402be1
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4015f6.67
push esi
call fcn.004012f1
jmp 0x4029a6
cmp dword [ebp - 0x1c], esi
je 0x402c03
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4705bc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f6.67
mov ecx, dword [0x4705bc]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00406200
jmp case.0x4015f6.67
mov ecx, dword [0x456264]
push 0
and ecx, eax
push ecx
push 0xb
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x24], 0
je case.0x4015f6.67
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4015f6.67
xor esi, esi
inc esi
call fcn.0040145c
push eax
call fcn.00405da6
push eax
push edi
call fcn.00405b35
mov eax, dword [ebp - 4]
add dword [0x470668], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4