Function at 0x401599
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, 0x1a4
mov eax, dword [0x424bc4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov esi, eax
mov ecx, section..ndata
mov edi, edx
shl esi, 0xa
add esi, ecx
shl edi, 0xa
add edi, ecx
lea ecx, [ebp - 0x24]
mov dword [0x40b4e0], ecx
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
add ecx, 0xfffffffe
mov dword [ebp - 4], ebx
cmp ecx, 0x41
ja case.0x4015ee.65
jmp dword [ecx*4 + 0x402a69]
push ebx
push eax
call fcn.00404979
mov eax, 0x7fffffff
jmp case.0x4015ee.2
inc dword [0x424394]
cmp dword [ebp - 0x34], ebx
je 0x4015fc
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4015fc
push eax
call fcn.0040137e
dec eax
push ebx
push eax
call fcn.0040139a
jmp case.0x4015ee.2
push ebx
push eax
call fcn.00404979
jmp case.0x4015ee.65
xor ecx, ecx
call fcn.00401443
cmp eax, 1
jg 0x401648
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x4015ee.65
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x4015ee.65
cmp dword [ebp - 0x1c], ebx
jne 0x40168c
mov ecx, dword [eax*4 + 0x424c80]
mov dword [eax*4 + 0x424c40], ecx
xor ecx, ecx
inc ecx
call fcn.00401443
mov ecx, dword [ebp - 0x24]
mov dword [ecx*4 + 0x424c80], eax
jmp case.0x4015ee.65
mov ecx, dword [eax*4 + 0x424c40]
mov dword [eax*4 + 0x424c80], ecx
jmp case.0x4015ee.65
mov esi, dword [ebp - 0x1c]
lea esi, [esi*4 + 0x424c80]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov eax, dword [ebp + eax*4 - 0x24]
jmp case.0x4015ee.2
push dword [edx*4 + 0x424c80]
push esi
call fcn.00405878
jmp case.0x4015ee.65
mov ecx, dword [0x4243a0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x4016e9
push edx
push ecx
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x42438c]
cmp ecx, ebx
je case.0x4015ee.65
push eax
push ecx
call esi
jmp case.0x4015ee.65
push 0xfffffffffffffff0
call fcn.00401459
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x4015ee.65
mov dword [ebp - 4], 1
jmp case.0x4015ee.65
push 0xfffffffffffffff0
call fcn.00401459
mov edi, eax
push edi
call fcn.004056c7
mov esi, eax
cmp esi, ebx
je 0x40177c
push 0x5c
push esi
call fcn.00405683
mov esi, eax
mov al, byte [esi]
push ebx
push edi
mov byte [ebp + 0xb], al
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401772
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40176f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401772
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x40173a
push 0x40a4e0
cmp dword [ebp - 0x20], ebx
je 0x4017a4
push 0xffffffffffffffe6
call fcn.00404979
push edi
push 0x42a800
call fcn.00405918
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x4015ee.65
push 0xfffffffffffffff5
jmp 0x40162f
push ebx
call fcn.00401459
push eax
call fcn.00405a09
test eax, eax
je 0x401b73
mov eax, dword [ebp - 0x20]
jmp case.0x4015ee.2
push 0xffffffffffffffd0
call fcn.00401459
push 0xffffffffffffffdf
mov esi, eax
call fcn.00401459
push 0x13
mov edi, eax
call fcn.00401459
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4017f8
push 0x40a4e0
push 0xffffffffffffffe3
jmp 0x40162f
cmp dword [ebp - 0x1c], ebx
je 0x401719
push esi
call fcn.00405a09
test eax, eax
je 0x401719
push edi
push esi
call fcn.00405e12
push 0x40a4e0
push 0xffffffffffffffe4
jmp 0x40162f
push ebx
call fcn.00401459
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x401862
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40186b
cmp byte [eax], bl
je 0x40186b
push esi
call fcn.00405a09
cmp eax, ebx
je 0x401862
add eax, 0x2c
push eax
push dword [ebp + 8]
call fcn.00405918
jmp 0x40186b
mov byte [edi], bl
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], ebx
jne case.0x4015ee.65
push 0x400
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x4015ee.65
push 0xffffffffffffffff
call fcn.00401459
lea ecx, [ebp + 8]
push ecx
push esi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x4015ee.65
mov dword [ebp - 4], 1
mov byte [esi], bl
jmp case.0x4015ee.65
push 0xffffffffffffffef
call fcn.00401459
push eax
push esi
call fcn.004057b9
jmp 0x401711
push 0x31
call fcn.00401459
mov esi, eax
mov eax, dword [ebp - 0x24]
and eax, 7
push esi
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
call fcn.0040569f
push esi
mov esi, 0x40a0e0
test eax, eax
je 0x4018f6
push esi
call fcn.00405918
jmp 0x40190d
push 0x42a800
push esi
call fcn.00405918
push eax
call fcn.00405a99
push eax
call sub.KERNEL32.dll_lstrcatA
push esi
call fcn.0040596e
mov edi, 0x40a8e0
cmp dword [ebp + 8], 3
jl 0x40194f
push esi
call fcn.00405a09
xor ecx, ecx
cmp eax, ebx
je 0x40193a
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], ebx
jne 0x40195a
push esi
call fcn.0040576a
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.0040578a
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x4019ee
cmp dword [ebp + 8], ebx
jne 0x4019d0
push section..ndata
push edi
call fcn.00405918
push esi
push section..ndata
call fcn.00405918
push dword [ebp - 0x10]
push 0x40a4e0
call fcn.00405bc5
push edi
push section..ndata
call fcn.00405918
mov eax, dword [ebp - 0x24]
sar eax, 3
push eax
push 0x40a4e0
call fcn.0040561d
sub eax, 4
je 0x401918
dec eax
je 0x4019e3
push esi
push 0xfffffffffffffffa
jmp 0x4015f7
push dword [ebp - 8]
push 0xffffffffffffffe2
call fcn.00404979
cmp dword [ebp + 8], 2
jmp 0x401713
inc dword [0x424c88]
jmp 0x402a5f
push dword [ebp - 8]
push 0xffffffffffffffea
call fcn.00404979
push dword [ebp - 0x34]
inc dword [0x424cb4]
push dword [ebp - 0x1c]
call fcn.00402fcc
dec dword [0x424cb4]
cmp dword [ebp - 0x18], 0xffffffff
mov edi, eax
jne 0x401a1d
cmp dword [ebp - 0x14], 0xffffffff
je 0x401a2c
lea eax, [ebp - 0x18]
push eax
push ebx
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge case.0x4015ee.65
cmp edi, 0xfffffffe
jne 0x401a55
push 0xffffffffffffffe9
push esi
call fcn.00405bc5
push dword [ebp - 8]
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x401a5d
push 0xffffffffffffffee
push esi
call fcn.00405bc5
push 0x200010
push esi
call fcn.0040561d
jmp 0x4015fc
push ebx
call fcn.00401459
push dword [ebp - 0x20]
push eax
call fcn.00405fad
jmp case.0x4015ee.65
push 0x31
call fcn.00401459
push dword [ebp - 0x24]
push eax
call fcn.0040561d
cmp eax, ebx
je 0x401719
cmp eax, dword [ebp - 0x1c]
jne 0x401aa6
mov eax, dword [ebp - 0x18]
jmp case.0x4015ee.2
cmp eax, dword [ebp - 0x14]
jne case.0x4015ee.65
mov eax, dword [ebp - 0x10]
jmp case.0x4015ee.2
push 0xfffffffffffffff0
jmp 0x401a6e
push 1
call fcn.00401459
push eax
call sub.KERNEL32.dll_lstrlenA
push eax
jmp 0x4016c7
push 2
pop ecx
call fcn.00401443
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401443
push 1
mov edi, eax
call fcn.00401459
mov dword [ebp - 0x2c], eax
mov byte [esi], bl
cmp dword [ebp - 0x1c], ebx
je 0x401afd
cmp dword [ebp + 8], ebx
je case.0x4015ee.65
push eax
call sub.KERNEL32.dll_lstrlenA
cmp edi, ebx
jge 0x401b0f
add edi, eax
js case.0x4015ee.65
cmp edi, eax
jle 0x401b15
mov edi, eax
mov eax, dword [ebp - 0x2c]
add eax, edi
push eax
push esi
call fcn.00405918
mov edi, dword [ebp + 8]
cmp edi, ebx
je case.0x4015ee.65
jge 0x401b3a
push esi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
jns 0x401b3a
mov edi, ebx
cmp edi, 0x400
jge case.0x4015ee.65
mov byte [edi + esi], bl
jmp case.0x4015ee.65
push 0x20
call fcn.00401459
push 0x31
mov esi, eax
call fcn.00401459
push eax
push esi
cmp dword [ebp - 0x14], ebx
jne 0x401b7b
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401a9e
mov eax, dword [ebp - 0x1c]
jmp case.0x4015ee.2
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x401b6b
xor edi, edi
inc edi
push edi
call fcn.00401459
push 0x400
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x401bb3
cmp dword [ebp - 0x1c], ebx
je 0x401bb8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401bb8
mov dword [ebp - 4], edi
mov byte [esi], bl
mov byte [esi + 0x3ff], bl
jmp case.0x4015ee.65
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
cmp dword [ebp - 0x10], ebx
jne 0x401beb
cmp esi, eax
jl 0x401a9e
jle 0x401b73
mov eax, dword [ebp - 0x14]
jmp case.0x4015ee.2
cmp esi, eax
jb 0x401a9e
jbe 0x401b73
jmp 0x401be3
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov edi, eax
call fcn.00401443
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xc
ja case.default.0x401c17
jmp dword [eax*4 + 0x402b71]
add edi, ecx
jmp case.default.0x401c17
sub edi, ecx
jmp case.default.0x401c17
imul edi, ecx
jmp case.default.0x401c17
cmp ecx, ebx
je 0x401c36
mov eax, edi
cdq
idiv ecx
jmp 0x401c54
xor edi, edi
mov dword [ebp - 4], 1
jmp case.default.0x401c17
or edi, ecx
jmp case.default.0x401c17
and edi, ecx
jmp case.default.0x401c17
xor edi, ecx
jmp case.default.0x401c17
xor eax, eax
cmp edi, ebx
sete al
mov edi, eax
jmp case.default.0x401c17
cmp edi, ebx
jne 0x401c60
cmp ecx, ebx
je 0x401c69
xor edi, edi
inc edi
jmp case.default.0x401c17
cmp edi, ebx
jne 0x401c5c
xor edi, edi
jmp case.default.0x401c17
cmp ecx, ebx
je 0x401c36
mov eax, edi
cdq
idiv ecx
mov edi, edx
jmp case.default.0x401c17
shl edi, cl
jmp case.default.0x401c17
sar edi, cl
push edi
jmp 0x4016c7
push 1
call fcn.00401459
push 2
pop ecx
mov edi, eax
call fcn.00401443
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x4015ee.65
mov eax, dword [ebp - 0x1c]
mov edi, dword [0x40a0a0]
cmp eax, ebx
je 0x401d04
dec eax
cmp edi, ebx
je 0x401cc4
mov edi, dword [edi]
cmp eax, ebx
jne 0x401cb5
cmp edi, ebx
jne 0x401cd7
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.00405bc5
push eax
jmp 0x401a63
add edi, 4
push edi
mov esi, 0x40a0e0
push esi
call fcn.00405918
mov eax, dword [0x40a0a0]
add eax, 4
push eax
push edi
call fcn.00405918
mov eax, dword [0x40a0a0]
push esi
add eax, 4
push eax
jmp 0x402838
cmp edx, ebx
je 0x401d27
cmp edi, ebx
je 0x401719
lea eax, [edi + 4]
push eax
push esi
call fcn.00405918
mov eax, dword [edi]
mov dword [0x40a0a0], eax
push edi
jmp 0x4020fa
push 0x404
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x24]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.00405bc5
mov eax, dword [0x40a0a0]
mov dword [esi], eax
mov dword [0x40a0a0], esi
jmp case.0x4015ee.65
push 3
pop ecx
call fcn.00401443
push 4
pop ecx
mov dword [ebp - 0x34], eax
call fcn.00401443
test byte [ebp - 0x10], 1
mov dword [ebp + 8], eax
je 0x401d7a
push 0x33
call fcn.00401459
mov dword [ebp - 0x34], eax
test byte [ebp - 0x10], 2
je 0x401d8a
push 0x44
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x28], 0x21
jne 0x401dda
xor ecx, ecx
inc ecx
call fcn.00401443
push 2
pop ecx
mov edi, eax
call fcn.00401443
mov ecx, dword [ebp - 0x10]
sar ecx, 2
cmp ecx, ebx
je 0x401dca
lea edx, [ebp - 8]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x401e0d
push dword [ebp + 8]
push dword [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401e0a
push 1
call fcn.00401459
push 0x12
mov edi, eax
call fcn.00401459
movsx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, eax
movsx eax, byte [edi]
neg eax
push ecx
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x24], ebx
jl case.0x4015ee.65
push dword [ebp - 8]
jmp 0x4016c7
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_IsWindow]
jmp 0x4017b7
push 2
pop ecx
call fcn.00401443
xor ecx, ecx
push eax
inc ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x401ac8
mov eax, dword [0x424c08]
add eax, edx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401443
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x4015ee.65
push edx
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x1c]
push 0x10
push eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x1c]
push eax
push ebx
push ebx
call fcn.00401459
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push ebx
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
je case.0x4015ee.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x4015ee.65
push 0x48
push 0x5a
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401443
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x40a0a4], eax
call fcn.00401443
push dword [ebp - 0x20]
mov dword [0x40a0b4], eax
mov al, byte [ebp - 0x14]
mov cl, al
and cl, 1
mov byte [0x40a0b8], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a0c0
mov byte [0x40a0b9], cl
mov byte [0x40a0ba], al
mov byte [0x40a0bb], 1
call fcn.00405bc5
push 0x40a0a4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x401ac8
xor ecx, ecx
call fcn.00401443
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401443
push eax
push esi
cmp dword [ebp - 0x18], ebx
jne 0x401f64
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4015ee.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x4015ee.65
push ebx
call fcn.00401459
push 0x31
mov esi, eax
call fcn.00401459
push 0x22
mov ebx, eax
call fcn.00401459
push 0x15
mov edi, eax
call fcn.00401459
push 0x40a4e0
push 0xffffffffffffffec
call fcn.00404979
movsx eax, byte [edi]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, edi
push 0x42a800
push eax
movsx eax, byte [esi]
neg eax
sbb eax, eax
push ebx
and eax, esi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x4015ee.65
jmp 0x401719
push ebx
call fcn.00401459
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.00404979
push esi
call fcn.004055bc
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x401719
cmp dword [ebp - 0x1c], ebx
je 0x40203f
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
jmp 0x40200d
push 0xf
call fcn.00405a66
push 0x64
push dword [ebp + 8]
call esi
cmp eax, 0x102
je 0x402001
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x20], ebx
jl 0x402033
push dword [ebp - 8]
push edi
call fcn.00405878
jmp 0x40203f
cmp dword [ebp - 8], ebx
je 0x40203f
mov dword [ebp - 4], 1
push dword [ebp + 8]
jmp 0x40265e
push 2
call fcn.00401459
push eax
call fcn.00405a09
cmp eax, ebx
je 0x40206b
mov ebx, eax
push dword [ebx + 0x14]
push edi
call fcn.00405878
push dword [ebx + 0x18]
jmp 0x4016c7
mov byte [esi], bl
mov byte [edi], bl
jmp 0x401719
push 0xffffffffffffffee
call fcn.00401459
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x2c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [esi], bl
mov dword [ebp - 8], eax
mov byte [edi], bl
mov dword [ebp - 4], 1
cmp eax, ebx
je case.0x4015ee.65
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
je case.0x4015ee.65
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0x2c]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4020f7
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x4082d0
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4020f7
mov eax, dword [ebp - 0x34]
push dword [eax + 8]
push esi
call fcn.00405878
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc]
push edi
call fcn.00405878
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x4015ee.65
mov dword [ebp - 4], 1
cmp dword [0x424cb8], ebx
jl 0x4021d3
push 0xfffffffffffffff0
call fcn.00401459
push 1
mov esi, eax
call fcn.00401459
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], ebx
je 0x40213d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
jne 0x40214d
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x4021c7
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40219a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40217c
push dword [ebp - 0x1c]
call fcn.00401432
call esi
test eax, eax
je 0x4021a4
mov dword [ebp - 4], 1
jmp 0x4021a4
push section..data
push 0x40a0a0
push section..ndata
push 0x400
push dword [ebp - 0x34]
call esi
add esp, 0x14
jmp 0x4021a4
push dword [ebp + 8]
push 0xfffffffffffffff7
call fcn.00404979
cmp dword [ebp - 0x18], ebx
jne case.0x4015ee.65
push edi
call fcn.0040383f
test eax, eax
je case.0x4015ee.65
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp case.0x4015ee.65
push 0x40a4e0
push 0xfffffffffffffff6
jmp 0x40162f
push 0x40a4e0
push 0xffffffffffffffe7
jmp 0x40162f
push 0xfffffffffffffff0
call fcn.00401459
push 0xffffffffffffffdf
mov dword [ebp - 0x30], eax
call fcn.00401459
push 2
mov esi, eax
call fcn.00401459
push 0xffffffffffffffcd
mov dword [ebp - 0x2c], eax
call fcn.00401459
push 0x45
mov dword [ebp - 8], eax
call fcn.00401459
push esi
mov dword [ebp - 0x44], eax
call fcn.0040569f
test eax, eax
jne 0x402221
push 0x21
call fcn.00401459
lea eax, [ebp + 8]
push eax
push 0x408908
push 1
push ebx
push 0x408928
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40231a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push 0x408918
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x40230d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0x42a800
push eax
call dword [ecx + 0x24]
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x402293
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 - 8]
cmp byte [eax], bl
je 0x4022b9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and edx, esi
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp edi, ebx
jl 0x402304
push 0x400
mov esi, 0x40b4e8
push esi
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov edi, 0x80004005
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402304
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jge 0x40232d
push 0x40a4e0
mov dword [ebp - 4], 1
push 0xfffffffffffffff0
jmp 0x40162f
push 0x40a4e0
push 0xfffffffffffffff4
jmp 0x40162f
push ebx
call fcn.00401459
push 0x11
mov esi, eax
call fcn.00401459
push 0x23
mov edi, eax
call fcn.00401459
push esi
mov dword [ebp + 8], eax
call fcn.00405a09
test eax, eax
jne 0x40236b
push ebx
push 0xfffffffffffffff9
call fcn.00404979
jmp 0x401719
mov eax, dword [ebp - 0x34]
push esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 2
call sub.KERNEL32.dll_lstrlenA
push edi
mov byte [eax + esi + 1], bl
call sub.KERNEL32.dll_lstrlenA
mov byte [eax + edi + 1], bl
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4a], eax
mov word [ebp - 0x54], cx
call fcn.00404979
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x4015ee.65
jmp 0x40235e
cmp eax, 0xbadf00d
jne 0x401cc4
inc dword [0x424c94]
jmp case.0x4015ee.65
xor esi, esi
xor edi, edi
cmp eax, ebx
je 0x4023e4
push ebx
call fcn.00401459
mov edx, dword [ebp - 0x20]
mov esi, eax
cmp edx, ebx
je 0x4023f1
push 0x11
call fcn.00401459
mov edi, eax
cmp dword [ebp - 0x14], ebx
je 0x4023ff
push 0x22
call fcn.00401459
mov ebx, eax
push 0xffffffffffffffcd
call fcn.00401459
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x401711
push 1
mov dword [ebp + 8], 0x7e4e21
call fcn.00401459
push 0x12
mov edi, eax
call fcn.00401459
push 0xffffffffffffffdd
mov dword [ebp - 0x30], eax
call fcn.00401459
push eax
push 0x3ff
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jmp 0x4018a2
cmp dword [ebp - 0x14], ebx
jne 0x402485
push 2
call fcn.0040154d
mov esi, eax
cmp esi, ebx
je 0x401719
push 0x33
call fcn.00401459
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024af
push 0x22
call fcn.00401459
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jne 0x40249f
mov ecx, dword [0x424c84]
add ecx, 0x80000001
mov edx, dword [ebp - 0x14]
and edx, 2
push edx
push eax
push ecx
call fcn.00401497
mov edi, eax
cmp edi, ebx
je case.0x4015ee.65
jmp 0x401719
cmp eax, ebx
je 0x4024c4
mov edi, eax
jmp 0x4024d0
mov edi, dword [0x424c84]
add edi, 0x80000001
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push 2
mov dword [ebp - 0x30], eax
call fcn.00401459
push 0x11
mov dword [ebp - 0x44], eax
call fcn.00401459
push ebx
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [0x424cb0]
push ebx
or ecx, 2
push ecx
push ebx
push ebx
push ebx
push eax
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x4015ee.65
mov edi, 0x40a8e0
cmp esi, 1
jne 0x40252c
push 0x23
call fcn.00401459
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp esi, 4
jne 0x402540
push 3
pop ecx
call fcn.00401443
push esi
mov dword [0x40a8e0], eax
pop eax
cmp esi, 3
jne 0x402554
push 0xc00
push edi
push ebx
push dword [ebp - 0x18]
call fcn.00402ea3
push eax
push edi
push dword [ebp - 0x30]
push ebx
push dword [ebp - 0x44]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40256d
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x4015ee.65
push 0x20019
call fcn.0040154d
push 0x33
mov edi, eax
call fcn.00401459
mov byte [esi], bl
cmp edi, ebx
je 0x401719
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x4025ec
cmp dword [ebp + 8], 4
je 0x4025d7
cmp dword [ebp + 8], ecx
je 0x4025c9
cmp dword [ebp + 8], 2
jne 0x4025ec
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov byte [eax + esi], bl
jmp 0x4025f1
push dword [esi]
xor eax, eax
cmp dword [ebp - 0x14], ebx
push esi
sete al
mov dword [ebp - 4], eax
call fcn.00405878
jmp 0x4025f1
mov byte [esi], bl
mov dword [ebp - 4], ecx
push edi
jmp 0x402570
push 0x20019
call fcn.0040154d
push 3
pop ecx
mov edi, eax
call fcn.00401443
mov byte [esi], bl
cmp edi, ebx
je 0x401719
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x14], ebx
je 0x40262e
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402647
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401719
mov byte [esi + 0x3ff], bl
jmp 0x4025f1
cmp byte [esi], bl
je case.0x4015ee.65
push esi
call fcn.00405891
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4015ee.65
push 0xffffffffffffffed
call fcn.00401459
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call fcn.0040578a
cmp eax, 0xffffffff
jne 0x401ac8
mov byte [esi], bl
jmp 0x401719
cmp dword [ebp - 0x1c], ebx
je 0x4026a3
xor ecx, ecx
inc ecx
call fcn.00401443
mov byte [0x40a4e0], al
xor eax, eax
inc eax
jmp 0x4026b0
push 0x11
call fcn.00401459
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [esi], bl
je 0x401719
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push 0x40a4e0
push esi
call fcn.00405891
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401711
push 2
pop ecx
call fcn.00401443
mov dword [ebp - 0x34], eax
cmp eax, 1
jl case.0x4015ee.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x4026f5
mov dword [ebp - 0x34], ecx
cmp byte [esi], bl
je 0x40278a
push esi
mov byte [ebp + 0xb], bl
call fcn.00405891
mov dword [ebp - 8], eax
cmp dword [ebp - 0x34], ebx
jle 0x40278a
mov esi, ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 9]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40278c
cmp dword [ebp - 0x30], 1
jne 0x40278c
cmp dword [ebp - 0x18], ebx
jne 0x402754
cmp byte [ebp + 0xb], 0xd
je 0x402764
cmp byte [ebp + 0xb], 0xa
je 0x402764
mov al, byte [ebp - 9]
mov byte [esi + edi], al
inc esi
mov byte [ebp + 0xb], al
cmp al, bl
je 0x40278c
cmp esi, dword [ebp - 0x34]
jl 0x402710
jmp 0x40278c
movzx eax, byte [ebp - 9]
push eax
push edi
call fcn.00405878
jmp 0x402a5f
mov al, byte [ebp - 9]
cmp byte [ebp + 0xb], al
je 0x40277a
cmp al, 0xd
je 0x402774
cmp al, 0xa
jne 0x40277a
mov byte [esi + edi], al
inc esi
jmp 0x40278c
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40278c
mov esi, ebx
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x401713
cmp byte [esi], bl
je case.0x4015ee.65
push dword [ebp - 0x18]
push ebx
push 2
pop ecx
call fcn.00401443
push eax
push esi
call fcn.00405891
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], ebx
jl case.0x4015ee.65
push eax
push edi
jmp 0x4016c8
cmp byte [esi], bl
je case.0x4015ee.65
push esi
call fcn.00405891
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x4015ee.65
cmp byte [edi], bl
je 0x4018a8
lea eax, [ebp - 0x1a4]
push eax
push edi
call fcn.00405891
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4018a8
jmp 0x402830
push 2
call fcn.00401459
lea ecx, [ebp - 0x1a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402829
mov byte [edi], bl
jmp 0x402685
push eax
push edi
call fcn.00405878
lea eax, [ebp - 0x178]
push eax
push esi
call fcn.00405918
jmp case.0x4015ee.65
push 0xfffffffffffffff0
mov dword [ebp - 8], 0xfffffd66
call fcn.00401459
mov esi, eax
push esi
mov dword [ebp - 0x44], esi
call fcn.0040569f
test eax, eax
jne 0x402866
push 0xffffffffffffffed
call fcn.00401459
push esi
call fcn.0040576a
push 2
push 0x40000000
push esi
call fcn.0040578a
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x402922
mov eax, dword [0x424c2c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [ebp - 0x2c], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x402919
push ebx
call fcn.00402d0e
push dword [ebp - 0x2c]
push edi
call fcn.00402cdc
push dword [ebp - 0x1c]
push 0x40
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, ebx
je 0x4028f1
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x20]
call fcn.00402ea3
jmp 0x4028e4
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x38], ecx
call fcn.0040571a
add esi, dword [ebp - 0x38]
cmp byte [esi], bl
jne 0x4028cc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
lea eax, [ebp - 8]
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 ebx
push ebx
push dword [ebp + 8]
push 0xffffffffffffffff
call fcn.00402ea3
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff3
pop esi
cmp dword [ebp - 8], ebx
jge 0x40293d
push 0xffffffffffffffef
pop esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
push esi
call fcn.00401432
jmp case.0x4015ee.65
xor ecx, ecx
call fcn.00401443
mov dword [ebp + 8], eax
cmp eax, dword [0x424bec]
jae 0x401719
mov esi, eax
mov eax, dword [ebp - 0x1c]
imul esi, esi, 0x418
add esi, dword [0x424be8]
cmp eax, ebx
jl 0x402988
mov ecx, dword [esi + eax*4]
jne 0x402982
add esi, 0x18
push esi
push edi
jmp 0x402838
push ecx
jmp 0x4027c2
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x1c], ecx
je 0x40299f
xor ecx, ecx
inc ecx
call fcn.00401443
mov dword [ebp - 0x20], eax
jmp 0x4029b2
push dword [ebp - 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.00405bc5
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], ebx
je case.0x4015ee.65
push dword [ebp + 8]
call fcn.00401186
jmp case.0x4015ee.65
xor ecx, ecx
call fcn.00401443
cmp eax, 0x20
jae 0x401719
cmp dword [ebp - 0x18], ebx
je 0x402a05
cmp dword [ebp - 0x1c], ebx
je 0x4029fa
push eax
call fcn.004012a6
push ebx
push ebx
call fcn.004011f8
jmp case.0x4015ee.65
push ebx
call fcn.004012f1
jmp 0x4027c1
cmp dword [ebp - 0x1c], ebx
je 0x402a1c
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x424bcc]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x4015ee.65
mov ecx, dword [0x424bcc]
push dword [ecx + eax*4 + 0x94]
push edi
call fcn.00405bc5
jmp case.0x4015ee.65
mov ecx, dword [0x4221cc]
push ebx
and ecx, eax
push ecx
push 0xb
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x24], ebx
je case.0x4015ee.65
push ebx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 4]
add dword [0x424c88], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4