Function at 0x402116
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 [0x423fc0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov edx, eax
shl edx, 0xa
add edx, section..ndata
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x2c]
mov dword [0x40b0a8], edx
mov edx, dword [ebp - 0x30]
mov ecx, esi
xor ebx, ebx
shl ecx, 0xa
add edx, 0xfffffffe
cmp edx, 0x41
mov dword [ebp - 8], ebx
lea edi, [ecx + section..ndata]
ja case.0x402171.65
jmp dword [edx*4 + 0x4036db]
mov eax, esi
jmp 0x4036d4
push ebx
push esi
call fcn.004053f6
jmp 0x402fe2
inc dword [0x423794]
cmp dword [ebp - 4], ebx
je 0x402fe2
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402fe2
cmp esi, ebx
jge 0x4021be
mov eax, section..ndata
sub eax, ecx
sub eax, 0x400
push eax
call fcn.0040626d
jmp 0x4021c0
mov eax, esi
push ebx
dec eax
push eax
call fcn.00401f2c
jmp 0x4036d4
cmp eax, ebx
je 0x4021f2
test al, 8
je 0x4021dc
mov eax, dword [0x409008]
jmp 0x4021e8
mov ecx, dword [0x409040]
mov dword [0x409008], ecx
mov dword [0x409040], eax
jmp case.0x402171.65
push ebx
push esi
call fcn.004053f6
jmp case.0x402171.65
xor ecx, ecx
call fcn.00401ff8
cmp eax, 1
jg 0x40220d
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x402171.65
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x402171.65
xor ecx, ecx
inc ecx
call fcn.00401ff8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx*4 + 0x424040], eax
jmp case.0x402171.65
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
xor eax, eax
lea ecx, [ecx*4 + 0x424040]
cmp dword [ecx], ebx
sete al
and dword [ecx], edx
mov eax, dword [ebp + eax*4 - 0x2c]
jmp 0x4036d4
push dword [eax*4 + 0x424040]
push edi
jmp 0x403670
mov ecx, dword [0x4237a0]
cmp ecx, ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x402281
push eax
push ecx
call edi
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x42378c]
cmp eax, ebx
je case.0x402171.65
push esi
push eax
call edi
jmp case.0x402171.65
push 0xfffffffffffffff0
pop esi
call fcn.0040200e
push dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x402171.65
jmp 0x403462
push 0xfffffffffffffff0
pop esi
call fcn.0040200e
mov edi, eax
push edi
call fcn.00406106
cmp byte [edi], bl
mov esi, eax
je 0x402309
cmp esi, ebx
je 0x402309
push 0x5c
push esi
call fcn.004060c3
mov esi, eax
mov al, byte [esi]
push edi
mov byte [ebp + 0xb], al
mov byte [esi], bl
call fcn.004063a6
cmp eax, ebx
jne 0x4022f7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jmp 0x4022fa
test byte [eax], 0x10
jne 0x4022ff
inc dword [ebp - 8]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
cmp al, bl
jne 0x4022d0
cmp dword [ebp - 0x28], ebx
je 0x40232c
push 0xffffffffffffffe6
call fcn.00401fe7
push edi
push 0x42a800
call sub.KERNEL32.dll_lstrcpyA
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp case.0x402171.65
push 0xfffffffffffffff5
jmp 0x402f33
xor esi, esi
call fcn.0040200e
push eax
call fcn.004063a6
jmp 0x4029eb
push 0xffffffffffffffd0
pop esi
call fcn.0040200e
push 0xffffffffffffffdf
pop esi
mov dword [ebp + 8], eax
call fcn.0040200e
push dword [ebp + 8]
mov esi, 0x409868
push esi
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_lstrcpyA
push dword [ebp - 4]
call sub.KERNEL32.dll_lstrlenA
push dword [ebp + 8]
mov edi, eax
call sub.KERNEL32.dll_lstrlenA
add edi, eax
cmp edi, 0x3fd
jge 0x402399
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40729c
push esi
call edi
push dword [ebp - 4]
push esi
call edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4023b0
push 0xffffffffffffffe3
jmp 0x402f33
cmp dword [ebp - 0x24], ebx
je 0x403462
push dword [ebp + 8]
call fcn.004063a6
test eax, eax
je 0x403462
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040650b
push 0xffffffffffffffe4
jmp 0x402f33
xor esi, esi
call fcn.0040200e
mov esi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
mov edi, 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40241f
mov eax, dword [ebp + 8]
cmp eax, esi
jbe 0x40242b
cmp byte [eax], bl
je 0x40242b
push esi
call fcn.004063a6
cmp eax, ebx
je 0x40241f
add eax, 0x2c
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_lstrcpyA
jmp 0x40242b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 1
mov byte [eax], bl
cmp dword [ebp - 0x24], ebx
jne case.0x402171.65
push edi
push dword [ebp - 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp case.0x402171.65
or esi, 0xffffffff
call fcn.0040200e
lea ecx, [ebp + 8]
push ecx
push edi
push 0x400
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne case.0x402171.65
jmp 0x403432
push 0xffffffffffffffef
pop esi
call fcn.0040200e
push eax
push edi
call fcn.004061a2
jmp 0x4022a9
push 0x31
pop esi
call fcn.0040200e
mov esi, eax
mov eax, dword [ebp - 0x2c]
and eax, 7
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], eax
call fcn.004060df
test eax, eax
push esi
mov esi, 0x409468
je 0x4024b0
push esi
call sub.KERNEL32.dll_lstrcpyA
jmp 0x4024c8
push 0x42a800
push esi
call sub.KERNEL32.dll_lstrcpyA
push eax
call fcn.004063e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00406302
mov edi, 0x409c68
cmp dword [ebp + 8], 3
jl 0x40250a
push esi
call fcn.004063a6
xor ecx, ecx
cmp eax, ebx
je 0x4024f5
lea ecx, [ebp - 0x20]
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 0x402521
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
cmp dword [ebp + 8], 1
setne al
inc eax
push eax
push 0x40000000
push esi
call fcn.00406173
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4025c5
cmp dword [ebp + 8], ebx
jne 0x40259b
push section..ndata
push edi
call sub.KERNEL32.dll_lstrcpyA
push esi
push section..ndata
call sub.KERNEL32.dll_lstrcpyA
push dword [ebp - 0x18]
push 0x409868
call fcn.004066c3
push edi
push section..ndata
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x2c]
sar eax, 3
push eax
push 0x409868
call fcn.00406072
sub eax, 4
je 0x4024d3
dec eax
je 0x4025ba
push esi
push 0xfffffffffffffffa
jmp 0x402181
push dword [ebp - 0xc]
push 0xffffffffffffffe2
call fcn.004053f6
cmp dword [ebp + 8], 2
jne case.0x402171.65
inc dword [0x424048]
jmp case.0x402171.65
inc dword [0x424048]
jmp 0x4036d2
push dword [ebp - 0xc]
push 0xffffffffffffffea
call fcn.004053f6
inc dword [0x409040]
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 0x24]
call fcn.00403b1d
dec dword [0x409040]
cmp dword [ebp - 0x20], 0xffffffff
mov edi, eax
jne 0x4025f6
cmp dword [ebp - 0x1c], 0xffffffff
je 0x402605
lea eax, [ebp - 0x20]
push eax
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jge case.0x402171.65
cmp edi, 0xfffffffe
jne 0x40262f
push 0xffffffffffffffe9
push esi
call fcn.004066c3
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402637
push 0xffffffffffffffee
push esi
call fcn.004066c3
push 0x200010
push esi
jmp 0x402fdd
xor esi, esi
jmp 0x40267c
push 0x31
pop esi
call fcn.0040200e
push dword [ebp - 0x2c]
push eax
call fcn.00406072
cmp eax, ebx
je 0x403462
cmp eax, dword [ebp - 0x24]
je 0x4027a7
cmp eax, dword [ebp - 0x1c]
jne case.0x402171.65
mov eax, dword [ebp - 0x18]
jmp 0x4036d4
push 0xfffffffffffffff0
pop esi
call fcn.0040200e
push dword [ebp - 0x28]
push eax
call fcn.004068f2
jmp case.0x402171.65
xor esi, esi
inc esi
call fcn.0040200e
push eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x4032b2
push 2
pop ecx
call fcn.00401ff8
push 3
pop ecx
mov dword [ebp + 8], eax
call fcn.00401ff8
xor esi, esi
inc esi
mov dword [ebp - 4], eax
call fcn.0040200e
cmp dword [ebp - 0x24], ebx
mov esi, eax
mov byte [edi], bl
je 0x4026d2
cmp dword [ebp + 8], ebx
je case.0x402171.65
push esi
call sub.KERNEL32.dll_lstrlenA
cmp dword [ebp - 4], ebx
jge 0x4026e6
add dword [ebp - 4], eax
js case.0x402171.65
mov ecx, dword [ebp - 4]
cmp ecx, eax
jle 0x4026ef
mov ecx, eax
add esi, ecx
push esi
push edi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp + 8], ebx
je case.0x402171.65
jge 0x402711
push edi
call sub.KERNEL32.dll_lstrlenA
add dword [ebp + 8], eax
jns 0x402711
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 0x400
jge case.0x402171.65
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp case.0x402171.65
push 0x20
pop esi
call fcn.0040200e
push 0x31
pop esi
mov edi, eax
call fcn.0040200e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4027a7
mov eax, dword [ebp - 0x24]
jmp 0x4036d4
xor esi, esi
inc esi
call fcn.0040200e
cmp dword [ebp - 0x24], ebx
push 0x400
push edi
push eax
je 0x402774
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40277a
mov dword [ebp - 8], esi
mov byte [edi], bl
jmp 0x40277a
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov byte [edi + 0x3ff], bl
jmp case.0x402171.65
xor ecx, ecx
call fcn.00401ff8
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401ff8
cmp dword [ebp - 0x18], ebx
jne 0x4027a3
cmp esi, eax
jl 0x4027a7
jle 0x402747
jmp 0x4027b1
cmp esi, eax
jae 0x4027af
mov eax, dword [ebp - 0x20]
jmp 0x4036d4
jbe 0x402747
mov eax, dword [ebp - 0x1c]
jmp 0x4036d4
xor ecx, ecx
inc ecx
call fcn.00401ff8
push 2
pop ecx
mov esi, eax
call fcn.00401ff8
mov ecx, eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
ja case.default.0x4027d5
jmp dword [eax*4 + 0x4037e3]
add esi, ecx
jmp case.default.0x4027d5
sub esi, ecx
jmp case.default.0x4027d5
imul ecx, esi
mov esi, ecx
jmp case.default.0x4027d5
cmp ecx, ebx
je 0x402831
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp case.default.0x4027d5
or esi, ecx
jmp case.default.0x4027d5
and esi, ecx
jmp case.default.0x4027d5
xor esi, ecx
jmp case.default.0x4027d5
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4027f4
cmp esi, ebx
jne 0x40281f
jmp 0x40281b
xor esi, esi
jmp case.default.0x4027d5
cmp esi, ebx
je 0x402813
cmp ecx, ebx
je 0x402813
xor esi, esi
inc esi
jmp case.default.0x4027d5
cmp ecx, ebx
je 0x402831
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x4027d5
xor esi, esi
mov dword [ebp - 8], 1
jmp case.default.0x4027d5
shl esi, cl
jmp case.default.0x4027d5
sar esi, cl
push esi
jmp 0x402264
xor esi, esi
inc esi
call fcn.0040200e
push 2
pop ecx
mov esi, eax
call fcn.00401ff8
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x402171.65
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
mov esi, dword [0x409460]
je 0x4028bc
dec ecx
cmp esi, ebx
je 0x402fcf
cmp ecx, ebx
mov esi, dword [esi]
jne 0x402878
cmp esi, ebx
je 0x402fcf
lea edi, [esi + 4]
push edi
mov esi, 0x409468
push esi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x409460]
add eax, 4
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x409460]
push esi
add eax, 4
push eax
jmp 0x4035ee
cmp eax, ebx
je 0x4028e5
cmp esi, ebx
je 0x403462
lea eax, [esi + 4]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [esi]
mov dword [0x409460], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp case.0x402171.65
push 0x404
call fcn.004060b4
push dword [ebp - 0x2c]
mov esi, eax
lea eax, [esi + 4]
push eax
call fcn.004066c3
mov eax, dword [0x409460]
mov dword [esi], eax
mov dword [0x409460], esi
jmp case.0x402171.65
push 0x33
pop esi
call fcn.0040200e
push 0x44
pop esi
mov dword [ebp - 4], eax
call fcn.0040200e
test byte [ebp - 0x18], 1
mov dword [ebp + 8], eax
jne 0x402936
push dword [ebp - 4]
call fcn.0040626d
mov dword [ebp - 4], eax
test byte [ebp - 0x18], 2
jne 0x402947
push dword [ebp + 8]
call fcn.0040626d
mov dword [ebp + 8], eax
cmp dword [ebp - 0x30], 0x21
jne 0x402995
xor ecx, ecx
inc ecx
call fcn.00401ff8
push 2
pop ecx
mov esi, eax
call fcn.00401ff8
mov ecx, dword [ebp - 0x18]
sar ecx, 2
je 0x402985
lea edx, [ebp - 0xc]
push edx
push ecx
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x4029cc
push dword [ebp + 8]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4029c9
xor esi, esi
inc esi
call fcn.0040200e
push 0x12
pop esi
mov dword [ebp - 0x10], eax
call fcn.0040200e
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], ebx
jl case.0x402171.65
push dword [ebp - 0xc]
jmp 0x402264
xor ecx, ecx
call fcn.00401ff8
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402747
mov eax, dword [ebp - 0x28]
jmp 0x4036d4
push 2
pop ecx
call fcn.00401ff8
xor ecx, ecx
push eax
inc ecx
call fcn.00401ff8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4032b2
mov ecx, dword [0x424008]
add eax, ecx
push eax
push 0xffffffffffffffeb
xor ecx, ecx
call fcn.00401ff8
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp case.0x402171.65
push eax
push dword [ebp - 4]
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 - 0x24]
push 0x10
push eax
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x24]
push eax
push ebx
xor esi, esi
call fcn.0040200e
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.0x402171.65
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp case.0x402171.65
push 0x48
push 0x5a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 2
pop ecx
call fcn.00401ff8
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 3
neg eax
pop ecx
mov dword [0x40a868], eax
call fcn.00401ff8
push dword [ebp - 0x28]
mov dword [0x40a878], eax
mov al, byte [ebp - 0x1c]
mov cl, al
and cl, 1
mov byte [0x40a87c], cl
mov cl, al
and cl, 2
and al, 4
push 0x40a884
mov byte [0x40a87d], cl
mov byte [0x40a87e], al
mov byte [0x40a87f], 1
call fcn.004066c3
push 0x40a868
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
jmp 0x4032b2
xor ecx, ecx
call fcn.00401ff8
xor ecx, ecx
inc ecx
mov esi, eax
call fcn.00401ff8
cmp dword [ebp - 0x20], ebx
push eax
push esi
jne 0x402b30
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x402171.65
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.0x402171.65
xor esi, esi
call fcn.0040200e
push 0x31
pop esi
mov edi, eax
call fcn.0040200e
push 0x22
pop esi
mov ebx, eax
call fcn.0040200e
push ebx
push edi
push 0x407294
push 0x409868
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xffffffffffffffec
call fcn.00401fe7
mov al, byte [esi]
push dword [ebp - 0x20]
neg al
push 0x42a800
sbb eax, eax
and eax, esi
push eax
mov al, byte [edi]
neg al
push ebx
sbb eax, eax
and eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x21
jge case.0x402171.65
jmp 0x403462
xor esi, esi
call fcn.0040200e
mov esi, eax
push esi
push 0xffffffffffffffeb
call fcn.004053f6
push 0x42a800
push esi
call fcn.00405ffa
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x403462
cmp dword [ebp - 0x24], ebx
je 0x402c40
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call edi
cmp eax, 0x102
jne 0x402c15
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x402bf6
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0xf
push 0xf
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
test eax, eax
jne 0x402bec
push 0x64
push dword [ebp + 8]
call edi
cmp eax, 0x102
je 0x402bf6
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x28], ebx
jl 0x402c34
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00406254
jmp 0x402c40
cmp dword [ebp - 4], ebx
je 0x402c40
mov dword [ebp - 8], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x402171.65
push 2
pop esi
call fcn.0040200e
push eax
call fcn.004063a6
mov esi, eax
cmp esi, ebx
je 0x402c75
push dword [esi + 0x14]
push dword [ebp - 0xc]
call fcn.00406254
push dword [esi + 0x18]
jmp 0x402264
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
jmp 0x403462
push 0xffffffffffffffee
lea eax, [ebp - 0x4c]
pop esi
mov dword [ebp + 8], eax
call fcn.0040200e
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x10], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0xc]
mov byte [edi], bl
mov byte [eax], bl
mov dword [ebp - 8], 1
je case.0x402171.65
push esi
call fcn.004060b4
cmp eax, ebx
mov dword [ebp - 4], eax
je case.0x402171.65
push eax
push esi
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402d0a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
push 0x407290
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d0a
mov eax, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.00406254
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push dword [ebp - 0xc]
call fcn.00406254
mov dword [ebp - 8], ebx
push dword [ebp - 4]
jmp 0x4028da
push 0x8001
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x424070], ebx
jl 0x402dd3
push 0xfffffffffffffff0
pop esi
call fcn.0040200e
xor esi, esi
inc esi
mov edi, eax
call fcn.0040200e
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], eax
je 0x402d58
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x402d66
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x402dcf
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402db5
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
je 0x402d97
push dword [ebp - 0x24]
call fcn.00401fe7
call esi
test eax, eax
je 0x402dbf
mov dword [ebp - 8], 1
jmp 0x402dbf
push section..data
push 0x409460
push section..ndata
push 0x400
push dword [ebp - 4]
call esi
add esp, 0x14
jmp 0x402dbf
push dword [ebp - 0xc]
push 0xfffffffffffffff7
call fcn.004053f6
cmp dword [ebp - 0x20], ebx
jne 0x402dda
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402dda
push 0xfffffffffffffff6
jmp 0x402dd5
push 0xffffffffffffffe7
call fcn.00401fe7
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
jmp case.0x402171.65
push 0xfffffffffffffff0
pop esi
call fcn.0040200e
push 0xffffffffffffffdf
pop esi
mov dword [ebp - 0x34], eax
call fcn.0040200e
push 2
pop esi
mov dword [ebp - 4], eax
call fcn.0040200e
push 0xffffffffffffffcd
pop esi
mov dword [ebp - 0x40], eax
call fcn.0040200e
push 0x45
pop esi
mov dword [ebp - 0xc], eax
call fcn.0040200e
push dword [ebp - 4]
mov dword [ebp - 0x38], eax
call fcn.004060df
test eax, eax
jne 0x402e31
push 0x21
pop esi
call fcn.0040200e
lea eax, [ebp + 8]
push eax
push 0x40761c
push 1
push ebx
push 0x40762c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402f2a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x40763c
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x402f1d
mov eax, dword [ebp + 8]
push dword [ebp - 4]
mov ecx, dword [eax]
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 - 0x1c]
mov eax, ecx
sar eax, 8
mov esi, 0xff
and eax, esi
je 0x402ea5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sar ecx, 0x10
push ecx
push eax
call dword [edx + 0x34]
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
je 0x402ecb
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and edx, esi
push edx
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 8]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp edi, ebx
jl 0x402f14
push 0x400
mov esi, 0x40a8a8
push esi
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov word [0x40a8a8], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x10]
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 0x402f3d
mov dword [ebp - 8], 1
push 0xfffffffffffffff0
call fcn.00401fe7
jmp case.0x402171.65
push 0xfffffffffffffff4
jmp 0x402f33
xor esi, esi
call fcn.0040200e
push 0x11
mov edi, eax
pop esi
mov dword [ebp + 8], edi
call fcn.0040200e
mov esi, eax
mov eax, dword [ebp - 4]
push edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 2
call sub.KERNEL32.dll_lstrlenA
push esi
mov byte [eax + edi + 1], bl
call sub.KERNEL32.dll_lstrlenA
push 0xfffffffffffffff8
mov edi, 0x409c68
push edi
mov byte [eax + esi + 1], bl
call fcn.004066c3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov ax, word [ebp - 0x24]
push edi
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3e], edi
mov word [ebp - 0x48], ax
call fcn.004053f6
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je case.0x402171.65
push ebx
push 0xfffffffffffffff9
call fcn.004053f6
jmp 0x403462
cmp esi, 0xbadf00d
je 0x402fec
push 0x200010
push 0xffffffffffffffe8
push ebx
call fcn.004066c3
push eax
call fcn.00406072
mov eax, 0x7fffffff
jmp 0x4036d4
inc dword [0x424054]
jmp case.0x402171.65
xor edi, edi
cmp esi, ebx
mov dword [ebp + 8], ebx
je 0x40300c
xor esi, esi
call fcn.0040200e
mov edi, eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x40301b
push 0x11
pop esi
call fcn.0040200e
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], ebx
je 0x40302a
push 0x22
pop esi
call fcn.0040200e
mov ebx, eax
push 0xffffffffffffffcd
pop esi
call fcn.0040200e
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4022a9
xor esi, esi
inc esi
mov dword [ebp + 8], 0x7e4e21
call fcn.0040200e
push 0x12
pop esi
mov dword [ebp - 0x38], eax
call fcn.0040200e
push 0xffffffffffffffdd
pop esi
mov dword [ebp - 0x34], eax
call fcn.0040200e
push eax
push 0x3ff
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi]
cmp eax, dword [ebp + 8]
jmp 0x402463
cmp dword [ebp - 0x1c], ebx
jne 0x4030ba
push 2
call fcn.004020cd
mov edi, eax
cmp edi, ebx
je 0x403462
push 0x33
pop esi
call fcn.0040200e
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4030e5
push 0x22
pop esi
call fcn.0040200e
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x4030d5
mov ecx, dword [0x424044]
add ecx, 0x80000001
mov edx, dword [ebp - 0x1c]
and edx, 2
push edx
push eax
push ecx
call fcn.00402046
mov esi, eax
cmp esi, ebx
je case.0x402171.65
jmp 0x403462
cmp esi, ebx
je 0x4030fa
mov edi, esi
jmp 0x403106
mov edi, dword [0x424044]
add edi, 0x80000001
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
push 2
pop esi
mov dword [ebp - 0x34], eax
call fcn.0040200e
push 0x11
pop esi
mov dword [ebp - 0x38], eax
call fcn.0040200e
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push edi
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.0x402171.65
cmp dword [ebp + 8], 1
mov edi, 0x409c68
jne 0x403161
push 0x23
pop esi
call fcn.0040200e
push edi
call sub.KERNEL32.dll_lstrlenA
inc eax
cmp dword [ebp + 8], 4
jne 0x403177
push 3
pop ecx
call fcn.00401ff8
push 4
mov dword [0x409c68], eax
pop eax
cmp dword [ebp + 8], 3
jne 0x40318c
push 0xc00
push edi
push ebx
push dword [ebp - 0x20]
call fcn.00403b1d
push eax
push edi
push dword [ebp - 0x34]
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4031a5
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
jmp 0x403276
push 0x20019
call fcn.004020cd
push 0x33
pop esi
mov dword [ebp - 4], eax
call fcn.0040200e
cmp dword [ebp - 4], ebx
mov byte [edi], bl
je 0x403462
lea ecx, [ebp - 0x34]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x40321d
cmp dword [ebp + 8], 4
je 0x403207
cmp dword [ebp + 8], ecx
je 0x403200
cmp dword [ebp + 8], 2
jne 0x40321d
cmp dword [ebp - 0x1c], ebx
je 0x403222
jmp 0x40321f
cmp dword [ebp - 0x1c], ebx
jne 0x403213
mov dword [ebp - 8], 1
push dword [edi]
push edi
call fcn.00406254
jmp 0x403222
mov byte [edi], bl
mov dword [ebp - 8], ecx
push dword [ebp - 4]
jmp 0x403276
push 0x20019
call fcn.004020cd
push 3
pop ecx
mov esi, eax
call fcn.00401ff8
cmp esi, ebx
mov byte [edi], bl
je 0x403462
cmp dword [ebp - 0x1c], ebx
mov ecx, 0x3ff
mov dword [ebp + 8], ecx
je 0x40325e
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x40326f
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov byte [edi + 0x3ff], bl
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x402171.65
cmp byte [edi], bl
je case.0x402171.65
push edi
call fcn.0040626d
push eax
jmp 0x402c43
push 0xffffffffffffffed
pop esi
call fcn.0040200e
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00406173
cmp eax, 0xffffffff
je 0x403460
push eax
jmp 0x402264
cmp dword [ebp - 0x24], ebx
je 0x4032cf
xor ecx, ecx
inc ecx
call fcn.00401ff8
mov byte [0x409868], al
xor eax, eax
inc eax
jmp 0x4032dd
push 0x11
pop esi
call fcn.0040200e
push eax
call sub.KERNEL32.dll_lstrlenA
cmp byte [edi], bl
je 0x403462
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push 0x409868
push edi
call fcn.0040626d
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4022a9
push 2
pop ecx
xor esi, esi
call fcn.00401ff8
cmp eax, 1
mov dword [ebp - 4], eax
jl case.0x402171.65
mov ecx, 0x3ff
cmp eax, ecx
jle 0x403324
mov dword [ebp - 4], ecx
cmp byte [edi], bl
je 0x4033ba
push edi
mov byte [ebp + 0xb], bl
call fcn.0040626d
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jle 0x4033ba
mov edi, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033bd
cmp dword [ebp - 0x34], 1
jne 0x4033bd
cmp dword [ebp - 0x20], ebx
jne 0x403384
cmp byte [ebp + 0xb], 0xd
je 0x403394
cmp byte [ebp + 0xb], 0xa
je 0x403394
mov al, byte [ebp - 0x11]
mov byte [esi + edi], al
inc esi
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4033bd
cmp esi, dword [ebp - 4]
jl 0x403340
jmp 0x4033bd
movzx eax, byte [ebp - 0x11]
push eax
push edi
call fcn.00406254
jmp 0x4036d2
mov al, byte [ebp - 0x11]
cmp byte [ebp + 0xb], al
je 0x4033aa
cmp al, 0xd
je 0x4033a4
cmp al, 0xa
jne 0x4033aa
mov byte [esi + edi], al
inc esi
jmp 0x4033bd
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4033bd
mov edi, dword [ebp - 0xc]
mov byte [esi + edi], bl
cmp esi, ebx
jmp 0x4022ab
cmp byte [edi], bl
je case.0x402171.65
push dword [ebp - 0x20]
push ebx
push 2
pop ecx
call fcn.00401ff8
push eax
push edi
call fcn.0040626d
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x28], ebx
jl case.0x402171.65
jmp 0x40366c
cmp byte [edi], bl
je case.0x402171.65
push edi
call fcn.0040626d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp case.0x402171.65
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
je 0x403432
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0xc]
call fcn.0040626d
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403477
mov dword [ebp - 8], 1
mov byte [edi], bl
jmp case.0x402171.65
push 2
pop esi
call fcn.0040200e
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40346e
mov eax, dword [ebp - 0xc]
mov byte [eax], bl
mov byte [edi], bl
mov dword [ebp - 8], 1
jmp case.0x402171.65
push eax
push dword [ebp - 0xc]
call fcn.00406254
lea eax, [ebp - 0x16c]
push eax
push edi
jmp 0x4035ee
xor esi, esi
mov dword [ebp - 0x10], 0xfffffd66
call fcn.0040200e
mov esi, eax
push esi
call fcn.004060df
test eax, eax
push esi
je 0x4034ac
mov esi, 0x409868
push esi
call sub.KERNEL32.dll_lstrcpyA
jmp 0x4034cd
push 0x42a400
push 0x409868
call sub.KERNEL32.dll_lstrcpyA
push eax
call fcn.004063e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, 0x409868
push esi
call fcn.00406302
push 2
push 0x40000000
push esi
call fcn.00406173
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403599
mov eax, dword [0x424028]
push eax
mov dword [ebp + 8], eax
call fcn.004060b4
mov edi, eax
cmp edi, ebx
je 0x40358b
push ebx
call fcn.004038fc
push dword [ebp + 8]
push edi
call fcn.004038ca
push dword [ebp - 0x24]
call fcn.004060b4
push dword [ebp + 8]
mov esi, eax
push edi
mov dword [ebp - 0x34], esi
call fcn.00401eb1
cmp esi, ebx
pop ecx
pop ecx
je 0x403563
push dword [ebp - 0x24]
push esi
push ebx
push dword [ebp - 0x28]
call fcn.00403b1d
jmp 0x403556
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
add esi, 8
push esi
add eax, edi
push eax
mov dword [ebp - 0x44], ecx
call fcn.00406153
add esi, dword [ebp - 0x44]
cmp byte [esi], bl
jne 0x40353e
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push dword [ebp - 4]
push 0xffffffffffffffff
call fcn.00403b1d
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x409868
cmp dword [ebp - 0x10], ebx
push 0xfffffffffffffff3
pop edi
jge 0x4035b2
push 0xffffffffffffffef
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], 1
push edi
jmp 0x402f33
xor ecx, ecx
call fcn.00401ff8
mov edi, eax
cmp edi, dword [0x423fec]
jae 0x403462
mov eax, dword [ebp - 0x24]
mov esi, edi
imul esi, esi, 0x418
add esi, dword [0x423fe8]
cmp eax, ebx
jl 0x4035fb
mov ecx, dword [esi + eax*4]
jne 0x4035f8
add esi, 0x18
push esi
push dword [ebp - 0xc]
call sub.KERNEL32.dll_lstrcpyA
jmp case.0x402171.65
push ecx
jmp 0x40366d
or ecx, 0xffffffff
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x403612
xor ecx, ecx
inc ecx
call fcn.00401ff8
mov dword [ebp - 0x28], eax
jmp 0x403622
push dword [ebp - 0x1c]
lea eax, [esi + 0x18]
push eax
call fcn.004066c3
or byte [esi + 9], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [esi + eax*4], ecx
cmp dword [ebp - 0x20], ebx
je case.0x402171.65
push edi
call fcn.00401c18
jmp case.0x402171.65
xor ecx, ecx
call fcn.00401ff8
cmp eax, 0x20
jae 0x403462
cmp dword [ebp - 0x20], ebx
je 0x403677
cmp dword [ebp - 0x24], ebx
je 0x403666
push eax
call fcn.00401d43
call fcn.00401d39
jmp case.0x402171.65
push ebx
call fcn.00401d8e
push eax
push dword [ebp - 0xc]
call fcn.00406254
jmp case.0x402171.65
cmp dword [ebp - 0x24], ebx
je 0x40368e
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x423fc8]
mov dword [edx + eax*4 + 0x94], ecx
jmp case.0x402171.65
mov ecx, dword [0x423fc8]
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0xc]
call fcn.004066c3
jmp case.0x402171.65
mov eax, dword [0x4219cc]
push ebx
and eax, esi
push eax
push 0xb
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x2c], ebx
je case.0x402171.65
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 8]
add dword [0x424048], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4