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
imul edi, edi, 0x1400
mov ebx, edx
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]
dec ecx
cmp ecx, 0x43
ja case.0x4015f4.3
jmp dword [ecx*4 + 0x402b00]
push 0
push eax
call fcn.00404891
mov eax, 0x7fffffff
jmp case.0x4015f4.5
inc dword [0x435394]
cmp dword [ebp - 0xc], 0
je 0x401603
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x401603
push eax
call fcn.0040137c
dec eax
push 0
push eax
call fcn.0040139b
jmp case.0x4015f4.5
push 0
push eax
call fcn.00404891
jmp case.0x4015f4.3
xor ecx, ecx
call fcn.00401446
cmp eax, 1
jg 0x401653
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015f4.3
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015f4.3
shl eax, 2
cmp dword [ebp - 0x20], 0
jne 0x401699
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.0x4015f4.3
mov ecx, dword [eax + 0x437c40]
mov dword [eax + 0x437c80], ecx
jmp case.0x4015f4.3
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.0x4015f4.5
push dword [edx*4 + 0x437c80]
push edi
call fcn.00405740
jmp case.0x4015f4.3
mov ecx, dword [0x4353a0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x4016f4
push edx
push ecx
call esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x43538c]
test ecx, ecx
je case.0x4015f4.3
push eax
push ecx
call esi
jmp case.0x4015f4.3
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.0x4015f4.3
mov dword [ebp - 4], 1
jmp case.0x4015f4.3
push 0xfffffffffffffff0
pop esi
call fcn.0040145c
mov edi, eax
push edi
call fcn.004055bb
mov esi, eax
test esi, esi
je 0x401785
push 0x5c
push esi
call fcn.00405577
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 0x40177e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40177b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40177e
inc dword [ebp - 4]
mov byte [esi], bl
inc esi
test bl, bl
jne 0x401747
cmp dword [ebp - 0x24], 0
je 0x4017a9
push 0xffffffffffffffe6
call fcn.00401435
push edi
push 0x453800
call fcn.004057e2
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015f4.3
push 0xfffffffffffffff5
call fcn.00401435
jmp case.0x4015f4.3
xor esi, esi
call fcn.0040145c
push eax
call fcn.0040589e
test eax, eax
je 0x401b85
mov eax, dword [ebp - 0x24]
jmp case.0x4015f4.5
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 0x4017fe
push 0xffffffffffffffe3
jmp 0x4017ab
cmp dword [ebp - 0x20], 0
je 0x401725
push edi
call fcn.0040589e
test eax, eax
je 0x401725
push ebx
push edi
call fcn.00405cb8
push 0xffffffffffffffe4
jmp 0x4017ab
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 0x401864
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40186e
cmp byte [eax], 0
je 0x40186e
push esi
call fcn.0040589e
test eax, eax
je 0x401864
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.004057e2
jmp 0x40186e
mov byte [ebx], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne case.0x4015f4.3
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015f4.3
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.0x4015f4.3
mov dword [ebp - 4], 1
mov byte [edi], 0
jmp case.0x4015f4.3
push 0xffffffffffffffef
pop esi
call fcn.0040145c
push eax
push edi
call fcn.00405681
jmp 0x40171d
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.00405593
push esi
mov esi, 0x4090e0
test eax, eax
je 0x4018fc
push esi
call fcn.004057e2
jmp 0x401913
push 0x453800
push esi
call fcn.004057e2
push eax
call fcn.0040592f
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.00405804
mov edi, 0x40b8e0
mov ebx, section..ndata
cmp dword [ebp + 8], 3
jl 0x40195a
push esi
call fcn.0040589e
xor ecx, ecx
test eax, eax
je 0x401945
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 0x401966
push esi
call fcn.00405632
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00405652
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4019ef
cmp dword [ebp + 8], 0
jne 0x4019d1
push ebx
push edi
call fcn.004057e2
push esi
push ebx
call fcn.004057e2
push dword [ebp - 0x14]
push 0x40a4e0
call fcn.00405a5b
push edi
push ebx
call fcn.004057e2
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x40a4e0
call fcn.00405511
sub eax, 4
je 0x401923
dec eax
je 0x4019e4
push esi
push 0xfffffffffffffffa
jmp 0x4015fe
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.00404891
cmp dword [ebp + 8], 2
jmp 0x40171f
inc dword [0x437c88]
jmp 0x402af5
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.00404891
inc dword [0x437cb4]
xor edi, edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00402f42
dec dword [0x437cb4]
cmp dword [ebp - 0x1c], 0xffffffff
mov ebx, eax
jne 0x401a22
cmp dword [ebp - 0x18], 0xffffffff
je 0x401a31
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.0x4015f4.3
cmp ebx, 0xfffffffe
jne 0x401a5a
push 0xffffffffffffffe9
push esi
call fcn.00405a5b
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a62
push 0xffffffffffffffee
push esi
call fcn.00405a5b
push 0x200010
push esi
call fcn.00405511
jmp 0x401603
xor esi, esi
call fcn.0040145c
push dword [ebp - 0x24]
push eax
call fcn.00405e51
jmp case.0x4015f4.3
push 0x31
pop esi
call fcn.0040145c
push dword [ebp - 0x28]
push eax
call fcn.00405511
test eax, eax
je 0x401725
cmp eax, dword [ebp - 0x20]
jne 0x401aad
mov eax, dword [ebp - 0x1c]
jmp case.0x4015f4.5
cmp eax, dword [ebp - 0x18]
jne case.0x4015f4.3
mov eax, dword [ebp - 0x14]
jmp case.0x4015f4.5
push 0xfffffffffffffff0
pop esi
jmp 0x401a74
xor esi, esi
inc esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x4016d2
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 0x401b09
cmp dword [ebp + 8], 0
je case.0x4015f4.3
push esi
call sub.KERNEL32.dll_lstrlenA
test ebx, ebx
jge 0x401b1b
add ebx, eax
js case.0x4015f4.3
cmp ebx, eax
jle 0x401b21
mov ebx, eax
add esi, ebx
push esi
push edi
call fcn.004057e2
mov esi, dword [ebp + 8]
test esi, esi
je case.0x4015f4.3
jge 0x401b48
push edi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jns 0x401b48
and dword [ebp + 8], 0
mov esi, dword [ebp + 8]
cmp esi, 0x1400
jge case.0x4015f4.3
mov byte [esi + edi], 0
jmp case.0x4015f4.3
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 0x401b8d
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401aa5
mov eax, dword [ebp - 0x20]
jmp case.0x4015f4.5
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401b7d
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 0x401bc2
cmp dword [ebp - 0x20], 0
je 0x401bc8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401bc8
mov dword [ebp - 4], esi
mov byte [edi], 0
mov byte [edi + 0x13ff], 0
jmp case.0x4015f4.3
xor ecx, ecx
call fcn.00401446
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401446
cmp dword [ebp - 0x14], 0
jne 0x401bfd
cmp esi, eax
jl 0x401aa5
jle 0x401b85
mov eax, dword [ebp - 0x18]
jmp case.0x4015f4.5
cmp esi, eax
jb 0x401aa5
jbe 0x401b85
jmp 0x401bf5
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.0x401c2b
jmp dword [eax*4 + 0x402c10]
add esi, ecx
jmp case.default.0x401c2b
sub esi, ecx
jmp case.default.0x401c2b
imul ecx, esi
mov esi, ecx
jmp case.default.0x401c2b
test ecx, ecx
je 0x401c4c
mov eax, esi
cdq
idiv ecx
jmp 0x401c66
xor esi, esi
mov dword [ebp - 4], ebx
jmp case.default.0x401c2b
or esi, ecx
jmp case.default.0x401c2b
and esi, ecx
jmp case.default.0x401c2b
xor esi, ecx
jmp case.default.0x401c2b
xor eax, eax
test esi, esi
sete al
mov esi, eax
jmp case.default.0x401c2b
test esi, esi
jne 0x401c72
test ecx, ecx
je 0x401c7a
mov esi, ebx
jmp case.default.0x401c2b
test esi, esi
jne 0x401c6e
xor esi, esi
jmp case.default.0x401c2b
test ecx, ecx
je 0x401c4c
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x401c2b
shl esi, cl
jmp case.default.0x401c2b
sar esi, cl
push esi
jmp 0x4016d2
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 0x402ae9
mov eax, dword [ebp - 0x20]
mov esi, dword [0x4090a0]
test eax, eax
je 0x401d14
dec eax
test esi, esi
je 0x401cd3
mov esi, dword [esi]
test eax, eax
jne 0x401cc4
test esi, esi
jne 0x401ce7
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00405a5b
push eax
jmp 0x401a68
lea edi, [esi + 4]
push edi
mov esi, 0x4090e0
push esi
call fcn.004057e2
mov eax, dword [0x4090a0]
add eax, 4
push eax
push edi
call fcn.004057e2
mov eax, dword [0x4090a0]
push esi
add eax, 4
push eax
jmp 0x4028be
test edx, edx
je 0x401d37
test esi, esi
je 0x401725
lea eax, [esi + 4]
push eax
push edi
call fcn.004057e2
mov eax, dword [esi]
mov dword [0x4090a0], eax
push esi
jmp 0x402155
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.00405a5b
mov eax, dword [0x4090a0]
mov dword [esi], eax
mov dword [0x4090a0], esi
jmp case.0x4015f4.3
test byte [ebp - 0x14], 1
je 0x401d74
push 0x33
pop esi
call fcn.0040145c
jmp 0x401d96
test byte [ebp - 0x14], 4
je 0x401d8e
mov esi, dword [ebp - 0x1c]
imul esi, esi, 0x1400
add esi, section..ndata
mov dword [ebp + 8], esi
jmp 0x401d9b
push 3
pop ecx
call fcn.00401446
mov esi, eax
mov dword [ebp + 8], eax
test byte [ebp - 0x14], 2
je 0x401dae
push 0x44
pop esi
call fcn.0040145c
mov esi, dword [ebp + 8]
jmp 0x401dcd
test byte [ebp - 0x14], 8
je 0x401dc5
mov ebx, dword [ebp - 0x18]
imul ebx, ebx, 0x1400
add ebx, section..ndata
jmp 0x401dcf
push 4
pop ecx
call fcn.00401446
mov ebx, eax
cmp dword [ebp - 0x2c], 0x1f
jne 0x401e1d
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 0x401e0f
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 0x401e54
push ebx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e51
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.0x4015f4.3
push dword [ebp - 8]
jmp 0x4016d2
xor ecx, ecx
call fcn.00401446
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017c2
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 0x401ad1
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.0x4015f4.3
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.0x4015f4.3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015f4.3
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.00405a5b
push 0x4090a4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401ad1
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 0x401fb0
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015f4.3
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015f4.3
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.0x4015f4.3
jmp 0x401725
xor esi, esi
call fcn.0040145c
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404891
push esi
call fcn.004054b0
mov dword [ebp + 8], eax
test eax, eax
je 0x401725
cmp dword [ebp - 0x20], 0
je 0x402095
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call esi
mov edi, 0x102
jmp 0x402066
push 0xf
call fcn.004058fc
push 0x64
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x402058
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24], 0
jl 0x402088
push dword [ebp - 8]
push ebx
call fcn.00405740
jmp 0x402095
cmp dword [ebp - 8], 0
je 0x402095
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x4026da
push 2
pop esi
call fcn.0040145c
push eax
call fcn.0040589e
mov esi, eax
test esi, esi
je 0x4020c2
push dword [esi + 0x14]
push ebx
call fcn.00405740
push dword [esi + 0x18]
jmp 0x4016d2
mov byte [edi], 0
mov byte [ebx], 0
jmp 0x401725
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.0x4015f4.3
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je case.0x4015f4.3
push eax
push esi
push 0
push dword [ebp - 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402152
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 0x402152
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.00405740
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push ebx
call fcn.00405740
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015f4.3
cmp dword [0x437cb8], 0
mov dword [ebp - 4], 1
jl 0x40222e
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 0x40219d
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, esi
jne 0x4021ad
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, esi
je 0x402227
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4021fa
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], esi
je 0x4021dc
push dword [ebp - 0x20]
call fcn.00401435
call edi
test eax, eax
je 0x402204
mov dword [ebp - 4], 1
jmp 0x402204
push section..data
push 0x4090a0
push section..ndata
push 0x1400
push dword [ebp - 0xc]
call edi
add esp, 0x14
jmp 0x402204
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.00404891
cmp dword [ebp - 0x1c], esi
jne case.0x4015f4.3
push ebx
call fcn.0040374e
test eax, eax
je case.0x4015f4.3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015f4.3
push 0xfffffffffffffff6
jmp 0x4017ab
push 0xffffffffffffffe7
jmp 0x4017ab
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.00405593
test eax, eax
jne 0x40227d
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 0x402378
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 0x40236b
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 0x4022f0
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 0x402315
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 0x402362
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 0x402362
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 0x402386
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x4017ab
push 0xfffffffffffffff4
jmp 0x4017ab
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.0040589e
test eax, eax
jne 0x4023c2
push 0
push 0xfffffffffffffff9
call fcn.00404891
jmp 0x401725
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.00404891
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015f4.3
jmp 0x4023b4
cmp eax, 0xbadf00d
jne 0x401cd3
inc dword [0x437c94]
jmp case.0x4015f4.3
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x40243f
xor esi, esi
call fcn.0040145c
mov edx, dword [ebp - 0x24]
mov edi, eax
test edx, edx
je 0x40244e
push 0x11
pop esi
call fcn.0040145c
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], ebx
je 0x40245d
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 0x40171d
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 0x4018a5
cmp dword [ebp - 0x18], 0
jne 0x4024eb
push 2
call fcn.0040154d
mov edi, eax
test edi, edi
je 0x401725
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 0x402516
push 0x22
pop esi
call fcn.0040145c
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x402506
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.0x4015f4.3
jmp 0x401725
test eax, eax
je 0x40252b
mov edi, eax
jmp 0x402537
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.0x4015f4.3
mov edi, 0x40b8e0
cmp ebx, 1
jne 0x402598
push 0x23
pop esi
call fcn.0040145c
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp ebx, 4
jne 0x4025ac
push 3
pop ecx
call fcn.00401446
push ebx
mov dword [0x40b8e0], eax
pop eax
cmp ebx, 3
jne 0x4025c1
push 0x3c00
push edi
push 0
push dword [ebp - 0x1c]
call fcn.00402f42
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 0x4025db
and dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015f4.3
push 0x20019
call fcn.0040154d
push 0x33
pop esi
mov ebx, eax
call fcn.0040145c
mov byte [edi], 0
test ebx, ebx
je 0x401725
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 0x40265e
cmp dword [ebp + 8], 4
je 0x402649
cmp dword [ebp + 8], ecx
je 0x40263a
cmp dword [ebp + 8], 2
jne 0x40265e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
jmp 0x402664
push dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], eax
push edi
sete al
mov dword [ebp - 4], eax
call fcn.00405740
jmp 0x402664
mov byte [edi], 0
mov dword [ebp - 4], ecx
push ebx
jmp 0x4025de
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 0x401725
mov ecx, 0x13ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x18], edx
je 0x4026a4
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4026bd
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 0x401725
mov byte [edi + 0x13ff], 0
push esi
jmp 0x4025de
cmp byte [edi], 0
je case.0x4015f4.3
push edi
call fcn.00405759
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015f4.3
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.00405652
cmp eax, 0xffffffff
jne 0x401ad1
mov byte [edi], 0
jmp 0x401725
cmp dword [ebp - 0x20], 0
je 0x402722
xor ecx, ecx
inc ecx
call fcn.00401446
mov byte [0x40a4e0], al
xor eax, eax
inc eax
jmp 0x402730
push 0x11
pop esi
call fcn.0040145c
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], 0
je 0x401725
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push 0x40a4e0
push edi
call fcn.00405759
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40171d
push 2
pop ecx
xor esi, esi
call fcn.00401446
cmp eax, 1
mov dword [ebp - 8], eax
jl case.0x4015f4.3
mov ecx, 0x13ff
cmp eax, ecx
jle 0x402779
mov dword [ebp - 8], ecx
cmp byte [edi], 0
je 0x40280a
push edi
mov byte [ebp + 0xb], 0
call fcn.00405759
cmp dword [ebp - 8], esi
mov edi, eax
jle 0x40280a
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 0x40280a
cmp dword [ebp - 0x30], 1
jne 0x40280a
cmp dword [ebp - 0x1c], 0
jne 0x4027d7
cmp byte [ebp + 0xb], 0xd
je 0x4027e7
cmp byte [ebp + 0xb], 0xa
je 0x4027e7
mov al, byte [ebp - 0xd]
mov byte [esi + ebx], al
inc esi
mov byte [ebp + 0xb], al
test al, al
je 0x40280a
cmp esi, dword [ebp - 8]
jl 0x402793
jmp 0x40280a
movzx eax, byte [ebp - 0xd]
push eax
push ebx
call fcn.00405740
jmp 0x402af5
mov al, byte [ebp - 0xd]
cmp byte [ebp + 0xb], al
je 0x4027fd
cmp al, 0xd
je 0x4027f7
cmp al, 0xa
jne 0x4027fd
mov byte [esi + ebx], al
inc esi
jmp 0x40280a
push 1
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + ebx], 0
test esi, esi
jmp 0x40171f
cmp byte [edi], 0
je case.0x4015f4.3
push dword [ebp - 0x1c]
push 0
push 2
pop ecx
call fcn.00401446
push eax
push edi
call fcn.00405759
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x24], 0
jl case.0x4015f4.3
push eax
push ebx
jmp 0x4016d3
cmp byte [edi], 0
je case.0x4015f4.3
push edi
call fcn.00405759
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015f4.3
cmp byte [ebx], 0
je 0x4018ab
lea eax, [ebp - 0x198]
push eax
push ebx
call fcn.00405759
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018ab
jmp 0x4028b6
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 0x4028af
mov byte [ebx], 0
jmp 0x402702
push eax
push ebx
call fcn.00405740
lea eax, [ebp - 0x16c]
push eax
push edi
call fcn.004057e2
jmp case.0x4015f4.3
push 0xfffffffffffffff0
pop esi
mov ebx, 0xfffffd66
call fcn.0040145c
mov edi, eax
push edi
mov dword [ebp - 0x34], edi
call fcn.00405593
test eax, eax
jne 0x4028ec
push 0xffffffffffffffed
pop esi
call fcn.0040145c
push edi
call fcn.00405632
push 2
push 0x40000000
push edi
call fcn.00405652
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4029a8
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 0x40299f
push 0
call fcn.00402dad
push dword [ebp - 8]
push edi
call fcn.00402d7b
push dword [ebp - 0x20]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x402976
push dword [ebp - 0x20]
push esi
push 0
push dword [ebp - 0x24]
call fcn.00402f42
jmp 0x402968
mov ebx, dword [esi]
mov eax, dword [esi + 4]
push ebx
add esi, 8
push esi
add eax, edi
push eax
call fcn.0040560e
add esi, ebx
cmp byte [esi], 0
jne 0x402954
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.00402f42
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
test ebx, ebx
jge 0x4029c2
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push esi
jmp 0x4017ab
xor ecx, ecx
call fcn.00401446
mov edi, eax
cmp edi, dword [0x437bec]
jae 0x401725
mov eax, dword [ebp - 0x20]
mov esi, edi
imul esi, esi, 0x1418
add esi, dword [0x437be8]
test eax, eax
jl 0x402a07
mov ecx, dword [esi + eax*4]
jne 0x402a01
add esi, 0x18
push esi
push ebx
jmp 0x4028be
push ecx
jmp 0x402844
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x20], ecx
je 0x402a1e
xor ecx, ecx
inc ecx
call fcn.00401446
mov dword [ebp - 0x24], eax
jmp 0x402a31
push dword [ebp - 0x18]
lea eax, [esi + 0x18]
push eax
call fcn.00405a5b
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.0x4015f4.3
push edi
call fcn.00401186
jmp case.0x4015f4.3
xor ecx, ecx
call fcn.00401446
cmp eax, 0x20
jae 0x401725
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x402a85
cmp dword [ebp - 0x20], esi
je 0x402a7a
push eax
call fcn.004012a6
push esi
push esi
call fcn.004011f8
jmp case.0x4015f4.3
push esi
call fcn.004012f1
jmp 0x402843
cmp dword [ebp - 0x20], esi
je 0x402a9c
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x437bcc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015f4.3
mov ecx, dword [0x437bcc]
push dword [ecx + eax*4 + 0x94]
push ebx
call fcn.00405a5b
jmp case.0x4015f4.3
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.0x4015f4.3
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4015f4.3
push 0x1400
push 0
push edi
call fcn.00406b0e
add esp, 0xc
mov eax, dword [ebp - 4]
add dword [0x437c88], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4