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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x437bc4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 4], 0
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov edi, eax
mov ebx, edx
imul edi, edi, 0x1400
imul ebx, ebx, 0x1400
mov ecx, section..ndata
add edi, ecx
add ebx, ecx
lea ecx, [ebp - 0x28]
mov dword [0x40f4e0], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffffe
cmp ecx, 0x42
ja case.0x4015f6.65
jmp dword [ecx*4 + 0x402b00]
push 0
push eax
call fcn.0040488d
mov eax, 0x7fffffff
jmp case.0x4015f6.2
inc dword [0x435394]
cmp dword [ebp - 0xc], 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.0040488d
jmp case.0x4015f6.65
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.65
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f6.65
shl eax, 2
cmp dword [ebp - 0x20], 0
jne 0x40169b
mov ecx, dword [eax + 0x437c80]
mov dword [eax + 0x437c40], ecx
xor ecx, ecx
inc ecx
call fcn.00401446
mov ecx, dword [ebp - 0x28]
mov dword [ecx*4 + 0x437c80], eax
jmp case.0x4015f6.65
mov ecx, dword [eax + 0x437c40]
mov dword [eax + 0x437c80], ecx
jmp case.0x4015f6.65
mov edx, dword [ebp - 0x20]
lea edx, [edx*4 + 0x437c80]
mov ecx, dword [edx]
xor eax, eax
test ecx, ecx
sete al
and ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov eax, dword [ebp + eax*4 - 0x28]
jmp case.0x4015f6.2
push dword [edx*4 + 0x437c80]
push edi
call fcn.0040573c
jmp case.0x4015f6.65
mov ecx, dword [0x4353a0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x4016f6
push edx
push ecx
call esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x43538c]
test ecx, ecx
je case.0x4015f6.65
push eax
push ecx
call esi
jmp case.0x4015f6.65
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4015f6.65
mov dword [ebp - 4], 1
jmp case.0x4015f6.65
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
mov edi, eax
push edi
call fcn.004055b7
mov esi, eax
test esi, esi
je 0x401787
push 0x5c
push esi
call fcn.00405573
mov esi, eax
mov bl, byte [esi]
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40177d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401780
inc dword [ebp - 4]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x401749
cmp dword [ebp - 0x24], 0
je 0x4017ab
push 0xffffffffffffffe6
call fcn.00401435
push edi
push 0x453800
call fcn.004057de
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015f6.65
push 0xfffffffffffffff5
call fcn.00401435
jmp case.0x4015f6.65
xor esi, esi
call fcn.0040145c
push eax
call fcn.0040589a
test eax, eax
je 0x401b87
mov eax, dword [ebp - 0x24]
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_MoveFileA]
test eax, eax
je 0x401800
push 0xffffffffffffffe3
jmp 0x4017ad
cmp dword [ebp - 0x20], 0
je 0x401727
push edi
call fcn.0040589a
test eax, eax
je 0x401727
push ebx
push edi
call fcn.00405cb4
push 0xffffffffffffffe4
jmp 0x4017ad
xor esi, esi
call fcn.0040145c
mov esi, eax
lea eax, [ebp + 8]
push eax
push ebx
mov edi, 0x1400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x401866
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x401870
cmp byte [eax], 0
je 0x401870
push esi
call fcn.0040589a
test eax, eax
je 0x401866
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.004057de
jmp 0x401870
mov byte [ebx], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne case.0x4015f6.65
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015f6.65
or esi, 0xffffffff
call fcn.0040145c
lea ecx, [ebp + 8]
push ecx
push edi
push 0x1400
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4015f6.65
mov dword [ebp - 4], 1
mov byte [edi], 0
jmp case.0x4015f6.65
push 0xffffffffffffffef
pop esi
call fcn.0040145c
push eax
push edi
call fcn.0040567d
jmp 0x40171f
push 0x31
pop esi
call fcn.0040145c
mov esi, eax
mov eax, dword [ebp - 0x28]
and eax, 7
push esi
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
call fcn.0040558f
push esi
mov esi, 0x4090e0
test eax, eax
je 0x4018fe
push esi
call fcn.004057de
jmp 0x401915
push 0x453800
push esi
call fcn.004057de
push eax
call fcn.0040592b
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.00405800
mov edi, 0x40b8e0
mov ebx, section..ndata
cmp dword [ebp + 8], 3
jl 0x40195c
push esi
call fcn.0040589a
xor ecx, ecx
test eax, eax
je 0x401947
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], 0
jne 0x401968
push esi
call fcn.0040562e
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.0040564e
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4019f1
cmp dword [ebp + 8], 0
jne 0x4019d3
push ebx
push edi
call fcn.004057de
push esi
push ebx
call fcn.004057de
push dword [ebp - 0x14]
push 0x40a4e0
call fcn.00405a57
push edi
push ebx
call fcn.004057de
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x40a4e0
call fcn.0040550d
sub eax, 4
je 0x401925
dec eax
je 0x4019e6
push esi
push 0xfffffffffffffffa
jmp 0x401600
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.0040488d
cmp dword [ebp + 8], 2
jmp 0x401721
inc dword [0x437c88]
jmp 0x402af7
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.0040488d
inc dword [0x437cb4]
xor edi, edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00402f3e
dec dword [0x437cb4]
cmp dword [ebp - 0x1c], 0xffffffff
mov ebx, eax
jne 0x401a24
cmp dword [ebp - 0x18], 0xffffffff
je 0x401a33
lea eax, [ebp - 0x1c]
push eax
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge case.0x4015f6.65
cmp ebx, 0xfffffffe
jne 0x401a5c
push 0xffffffffffffffe9
push esi
call fcn.00405a57
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a64
push 0xffffffffffffffee
push esi
call fcn.00405a57
push 0x200010
push esi
call fcn.0040550d
jmp 0x401605
xor esi, esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call fcn.00405e4d
jmp case.0x4015f6.65
push 0x31
pop esi
call fcn.0040145c
push dword [ebp - 0x28]
push eax
call fcn.0040550d
test eax, eax
je 0x401727
cmp eax, dword [ebp - 0x20]
jne 0x401aaf
mov eax, dword [ebp - 0x1c]
jmp case.0x4015f6.2
cmp eax, dword [ebp - 0x18]
jne case.0x4015f6.65
mov eax, dword [ebp - 0x14]
jmp case.0x4015f6.2
push 0xfffffffffffffff0
pop esi
jmp 0x401a76
xor esi, esi
inc esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x4016d4
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
cmp dword [ebp - 0x20], 0
mov esi, eax
mov byte [edi], 0
je 0x401b0b
cmp dword [ebp + 8], 0
je case.0x4015f6.65
push esi
call sub.KERNEL32.dll_lstrlenA
test ebx, ebx
jge 0x401b1d
add ebx, eax
js case.0x4015f6.65
cmp ebx, eax
jle 0x401b23
mov ebx, eax
add esi, ebx
push esi
push edi
call fcn.004057de
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4015f6.65
jge 0x401b4a
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401b4a
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x1400
jge case.0x4015f6.65
mov byte [esi + edi], 0
jmp case.0x4015f6.65
push 0x20
pop esi
call fcn.0040145c
push 0x31
pop esi
mov edi, eax
call fcn.0040145c
cmp dword [ebp - 0x18], 0
push eax
push edi
jne 0x401b8f
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401aa7
mov eax, dword [ebp - 0x20]
jmp case.0x4015f6.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401b7f
xor esi, esi
inc esi
call fcn.0040145c
push 0x1400
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401bc4
cmp dword [ebp - 0x20], 0
je 0x401bca
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401bca
mov dword [ebp - 4], esi
mov byte [edi], 0
mov byte [edi + 0x13ff], 0
jmp case.0x4015f6.65
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x14], 0
jne 0x401bff
cmp esi, eax
jl 0x401aa7
jle 0x401b87
mov eax, dword [ebp - 0x18]
jmp case.0x4015f6.2
cmp esi, eax
jb 0x401aa7
jbe 0x401b87
jmp 0x401bf7
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 - 0x1c]
cmp eax, 0xc
ja case.default.0x401c2d
jmp dword [eax*4 + 0x402c0c]
add esi, ecx
jmp case.default.0x401c2d
sub esi, ecx
jmp case.default.0x401c2d
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c2d
test ecx, ecx
je 0x401c4e
mov eax, esi
cdq
idiv ecx
jmp 0x401c68
xor esi, esi
mov dword [ebp - 4], ebx
jmp case.default.0x401c2d
or esi, ecx
jmp case.default.0x401c2d
and esi, ecx
jmp case.default.0x401c2d
xor esi, ecx
jmp case.default.0x401c2d
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c2d
test esi, esi
jne 0x401c74
test ecx, ecx
je 0x401c7c
mov esi, ebx
jmp case.default.0x401c2d
test esi, esi
jne 0x401c70
xor esi, esi
jmp case.default.0x401c2d
test ecx, ecx
je 0x401c4e
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c2d
shl esi, cl
jmp case.default.0x401c2d
sar esi, cl
push esi
jmp 0x4016d4
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_wsprintfA]
jmp 0x402aeb
mov eax, dword [ebp - 0x20]
mov esi, dword [0x4090a0]
test eax, eax
je 0x401d16
dec eax
test esi, esi
je 0x401cd5
mov esi, dword [esi]
test eax, eax
jne 0x401cc6
test esi, esi
jne 0x401ce9
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00405a57
push eax
jmp 0x401a6a
lea edi, [esi + 4]
push edi
mov esi, 0x4090e0
push esi
call fcn.004057de
mov eax, dword [0x4090a0]
add eax, 4
push eax
push edi
call fcn.004057de
mov eax, dword [0x4090a0]
push esi
add eax, 4
push eax
jmp 0x4028c0
test edx, edx
je 0x401d39
test esi, esi
je 0x401727
lea eax, [esi + 4]
push eax
push edi
call fcn.004057de
mov eax, dword [esi]
mov dword [0x4090a0], eax
push esi
jmp 0x402157
push 0x1404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x28]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405a57
mov eax, dword [0x4090a0]
mov dword [esi], eax
mov dword [0x4090a0], esi
jmp case.0x4015f6.65
test byte [ebp - 0x14], 1
je 0x401d76
push 0x33
pop esi
call fcn.0040145c
jmp 0x401d98
test byte [ebp - 0x14], 4
je 0x401d90
mov esi, dword [ebp - 0x1c]
imul esi, esi, 0x1400
add esi, section..ndata
mov dword [ebp + 8], esi
jmp 0x401d9d
push 3
pop ecx
call fcn.00401446
mov esi, eax
mov dword [ebp + 8], eax
test byte [ebp - 0x14], 2
je 0x401db0
push 0x44
pop esi
call fcn.0040145c
mov esi, dword [ebp + 8]
jmp 0x401dcf
test byte [ebp - 0x14], 8
je 0x401dc7
mov ebx, dword [ebp - 0x18]
imul ebx, ebx, 0x1400
add ebx, section..ndata
jmp 0x401dd1
push 4
pop ecx
call fcn.00401446
mov ebx, eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401e1f
xor ecx, ecx
inc ecx
call fcn.00401446
push 2
pop ecx
mov dword [ebp + 8], eax
call fcn.00401446
mov ecx, dword [ebp - 0x14]
sar ecx, 4
test ecx, ecx
je 0x401e11
lea edx, [ebp - 8]
push edx
push ecx
push 0
push ebx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e56
push ebx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e53
xor esi, esi
inc esi
call fcn.0040145c
push 0x12
pop esi
mov dword [ebp - 0xc], eax
call fcn.0040145c
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0xc]
push ecx
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jl case.0x4015f6.65
push dword [ebp - 8]
jmp 0x4016d4
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017c4
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 0x401ad3
mov eax, dword [0x437c08]
add eax, edx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015f6.65
push edx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x20]
push 0x10
push eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x20]
push eax
xor ebx, ebx
push ebx
xor esi, esi
call fcn.0040145c
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.0x4015f6.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f6.65
push 0x48
push 0x5a
push dword [ebp - 0xc]
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 [0x4090a4], eax
call fcn.00401446
push dword [ebp - 0x24]
mov dword [0x4090b4], eax
mov al, byte [ebp - 0x18]
mov cl, al
and cl, 1
mov byte [0x4090b8], cl
mov cl, al
and cl, 2
and al, 4
push 0x4090c0
mov byte [0x4090b9], cl
mov byte [0x4090ba], al
mov byte [0x4090bb], 1
call fcn.00405a57
push 0x4090a4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401ad3
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x1c], 0
push eax
push esi
jne 0x401fb2
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f6.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f6.65
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
movsx eax, byte [ebx]
push dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ebx
push 0x453800
push eax
movsx eax, byte [edi]
push dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015f6.65
jmp 0x401727
xor esi, esi
call fcn.0040145c
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.0040488d
push esi
call fcn.004054ac
mov dword [ebp + 8], eax
test eax, eax
je 0x401727
cmp dword [ebp - 0x20], 0
je 0x402097
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402068
push 0xf
call fcn.004058f8
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40205a
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0
jl 0x40208a
push dword [ebp - 8]
push ebx
call fcn.0040573c
jmp 0x402097
cmp dword [ebp - 8], 0
je 0x402097
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4026dc
push 2
pop esi
call fcn.0040145c
push eax
call fcn.0040589a
mov esi, eax
test esi, esi
je 0x4020c4
push dword [esi + 0x14]
push ebx
call fcn.0040573c
push dword [esi + 0x18]
jmp 0x4016d4
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x401727
push 0xffffffffffffffee
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0xc], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov byte [edi], 0
mov byte [ebx], 0
mov dword [ebp - 4], 1
test esi, esi
je case.0x4015f6.65
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je case.0x4015f6.65
push eax
push esi
push 0
push dword [ebp - 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402154
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
push 0x407290
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402154
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.0040573c
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push ebx
call fcn.0040573c
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f6.65
cmp dword [0x437cb8], 0
mov dword [ebp - 4], 1
jl 0x402230
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 - 0x18], esi
je 0x40219f
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x4021af
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x402229
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4021fc
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], esi
je 0x4021de
push dword [ebp - 0x20]
call fcn.00401435
call edi
test eax, eax
je 0x402206
mov dword [ebp - 4], 1
jmp 0x402206
push section..data
push 0x4090a0
push section..ndata
push 0x1400
push dword [ebp - 0xc]
call edi
add esp, 0x14
jmp 0x402206
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.0040488d
cmp dword [ebp - 0x1c], esi
jne case.0x4015f6.65
push ebx
call fcn.0040374a
test eax, eax
je case.0x4015f6.65
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f6.65
push 0xfffffffffffffff6
jmp 0x4017ad
push 0xffffffffffffffe7
jmp 0x4017ad
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040145c
push 2
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x38], eax
call fcn.0040145c
push 0x45
pop esi
mov dword [ebp - 0xc], eax
call fcn.0040145c
push ebx
mov dword [ebp - 0x34], eax
call fcn.0040558f
test eax, eax
jne 0x40227f
push 0x21
pop esi
call fcn.0040145c
lea eax, [ebp + 8]
push eax
push 0x407640
push 1
push 0
push 0x407660
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40237a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x407650
push eax
call dword [ecx]
mov edi, eax
test edi, edi
jl 0x40236d
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 0x453800
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x4022f2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [ebp - 0xc]
cmp byte [ecx], 0
je 0x402317
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
and ebx, esi
push ebx
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
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 0x402364
push 0x400
mov esi, 0x40f4e8
push esi
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov edi, 0x80004005
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402364
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 8]
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 0x402388
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017ad
push 0xfffffffffffffff4
jmp 0x4017ad
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.0040589a
test eax, eax
jne 0x4023c4
push 0
push 0xfffffffffffffff9
call fcn.0040488d
jmp 0x401727
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 2
call sub.KERNEL32.dll_lstrlenA
push ebx
mov byte [eax + edi + 1], 0
call sub.KERNEL32.dll_lstrlenA
mov byte [eax + ebx + 1], 0
mov ax, word [ebp - 0x20]
push esi
push 0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x3e], esi
mov word [ebp - 0x48], ax
call fcn.0040488d
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015f6.65
jmp 0x4023b6
cmp eax, 0xbadf00d
jne 0x401cd5
inc dword [0x437c94]
jmp case.0x4015f6.65
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x402441
xor esi, esi
call fcn.0040145c
mov edx, dword [ebp - 0x24]
mov edi, eax
test edx, edx
je 0x402450
push 0x11
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x40245f
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_WritePrivateProfileStringA]
jmp 0x40171f
xor esi, esi
inc esi
mov dword [ebp + 8], 0x7e4e21
call fcn.0040145c
push 0x12
pop esi
mov ebx, eax
call fcn.0040145c
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x30], eax
call fcn.0040145c
push eax
push 0x13ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi]
cmp eax, dword [ebp + 8]
jmp 0x4018a7
cmp dword [ebp - 0x18], 0
jne 0x4024ed
push 2
call fcn.0040154d
mov edi, eax
test edi, edi
je 0x401727
push 0x33
pop esi
call fcn.0040145c
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402518
push 0x22
pop esi
call fcn.0040145c
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x402508
mov ecx, dword [0x437c84]
add ecx, 0x80000001
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
push eax
push ecx
call fcn.00401497
mov esi, eax
test esi, esi
je case.0x4015f6.65
jmp 0x401727
test eax, eax
je 0x40252d
mov edi, eax
jmp 0x402539
mov edi, dword [0x437c84]
add edi, 0x80000001
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push 2
pop esi
mov dword [ebp - 0x30], 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 [0x437cb0]
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_RegCreateKeyExA]
test eax, eax
jne case.0x4015f6.65
mov edi, 0x40b8e0
cmp ebx, 1
jne 0x40259a
push 0x23
pop esi
call fcn.0040145c
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp ebx, 4
jne 0x4025ae
push 3
pop ecx
call fcn.00401446
push ebx
mov dword [0x40b8e0], eax
pop eax
cmp ebx, 3
jne 0x4025c3
push 0x3c00
push edi
push 0
push dword [ebp - 0x1c]
call fcn.00402f3e
push eax
push edi
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x34]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4025dd
and dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f6.65
push 0x20019
call fcn.0040154d
push 0x33
pop esi
mov ebx, eax
call fcn.0040145c
mov byte [edi], 0
test ebx, ebx
je 0x401727
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push ebx
mov dword [ebp - 8], 0x13ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x402660
cmp dword [ebp + 8], 4
je 0x40264b
cmp dword [ebp + 8], ecx
je 0x40263c
cmp dword [ebp + 8], 2
jne 0x402660
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
jmp 0x402666
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.0040573c
jmp 0x402666
mov byte [edi], 0
mov dword [ebp - 4], ecx
push ebx
jmp 0x4025e0
push 0x20019
call fcn.0040154d
push 3
pop ecx
mov esi, eax
call fcn.00401446
xor edx, edx
mov byte [edi], 0
cmp esi, edx
je 0x401727
mov ecx, 0x13ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], edx
je 0x4026a6
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026bf
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_RegEnumValueA]
test eax, eax
jne 0x401727
mov byte [edi + 0x13ff], 0
push esi
jmp 0x4025e0
cmp byte [edi], 0
je case.0x4015f6.65
push edi
call fcn.00405755
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f6.65
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.0040564e
cmp eax, 0xffffffff
jne 0x401ad3
mov byte [edi], 0
jmp 0x401727
cmp dword [ebp - 0x20], 0
je 0x402724
xor ecx, ecx
inc ecx
call fcn.00401446
mov byte [0x40a4e0], al
xor eax, eax
inc eax
jmp 0x402732
push 0x11
pop esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], 0
je 0x401727
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push 0x40a4e0
push edi
call fcn.00405755
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40171f
push 2
pop ecx
xor esi, esi
call fcn.00401446
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015f6.65
mov ecx, 0x13ff
cmp eax, ecx
jle 0x40277b
mov dword [ebp - 8], ecx
cmp byte [edi], 0
je 0x40280c
push edi
mov byte [ebp + 0xb], 0
call fcn.00405755
cmp dword [ebp - 8], esi
mov edi, eax
jle 0x40280c
push 0
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40280c
cmp dword [ebp - 0x30], 1
jne 0x40280c
cmp dword [ebp - 0x1c], 0
jne 0x4027d9
cmp byte [ebp + 0xb], 0xd
je 0x4027e9
cmp byte [ebp + 0xb], 0xa
je 0x4027e9
mov al, byte [ebp - 0xd]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0xb], al
test al, al
je 0x40280c
cmp esi, dword [ebp - 8]
jl 0x402795
jmp 0x40280c
movzx eax, byte [ebp - 0xd]
push eax
push ebx
call fcn.0040573c
jmp 0x402af7
mov al, byte [ebp - 0xd]
cmp byte [ebp + 0xb], al
je 0x4027ff
cmp al, 0xd
je 0x4027f9
cmp al, 0xa
jne 0x4027ff
mov byte [esi + ebx], al
inc esi
jmp 0x40280c
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x401721
cmp byte [edi], 0
je case.0x4015f6.65
push dword [ebp - 0x1c]
push 0
push 2
pop ecx
call fcn.00401446
push eax
push edi
call fcn.00405755
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], 0
jl case.0x4015f6.65
push eax
push ebx
jmp 0x4016d5
cmp byte [edi], 0
je case.0x4015f6.65
push edi
call fcn.00405755
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f6.65
cmp byte [ebx], 0
je 0x4018ad
lea eax, [ebp - 0x198]
push eax
push ebx
call fcn.00405755
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018ad
jmp 0x4028b8
push 2
pop esi
call fcn.0040145c
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4028b1
mov byte [ebx], 0
jmp 0x402704
push eax
push ebx
call fcn.0040573c
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.004057de
jmp case.0x4015f6.65
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.0040145c
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call fcn.0040558f
test eax, eax
jne 0x4028ee
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push edi
call fcn.0040562e
push 2
push 0x40000000
push edi
call fcn.0040564e
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4029aa
mov eax, dword [0x437c2c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x4029a1
push 0
call fcn.00402da9
push dword [ebp - 8]
push edi
call fcn.00402d77
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x402978
push dword [ebp - 0x20]
push esi
push 0
push dword [ebp - 0x24]
call fcn.00402f3e
jmp 0x40296a
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.0040560a
add esi, ebx
cmp byte [esi], 0
jne 0x402956
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
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.00402f3e
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x4029c4
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push esi
jmp 0x4017ad
xor ecx, ecx
call fcn.00401446
mov edi, eax
cmp edi, dword [0x437bec]
jae 0x401727
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x1418
add esi, dword [0x437be8]
test eax, eax
jl 0x402a09
mov ecx, dword [esi + eax*4]
jne 0x402a03
add esi, 0x18
push esi
push ebx
jmp 0x4028c0
push ecx
jmp 0x402846
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x402a20
xor ecx, ecx
inc ecx
call fcn.00401446
mov dword [ebp - 0x24], eax
jmp 0x402a33
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00405a57
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], 0
je case.0x4015f6.65
push edi
call fcn.00401186
jmp case.0x4015f6.65
xor ecx, ecx
call fcn.00401446
cmp eax, 0x20
jae 0x401727
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x402a87
cmp dword [ebp - 0x20], esi
je 0x402a7c
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4015f6.65
push esi
call fcn.004012f1
jmp 0x402845
cmp dword [ebp - 0x20], esi
je 0x402a9e
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x437bcc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f6.65
mov ecx, dword [0x437bcc]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00405a57
jmp case.0x4015f6.65
mov ecx, dword [0x42f1cc]
push 0
and ecx, eax
push ecx
push 0xb
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x28], 0
je case.0x4015f6.65
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4015f6.65
push 0x1400
push 0
push edi
call fcn.00406b0a
add esp, 0xc
mov eax, dword [ebp - 4]
add dword [0x437c88], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4