Function at 0x401b40
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x420e4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.0041a5b0
lea eax, [esp + 0x4c]
push 0x104
push eax
mov dword [esp + 0x160], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov bl, 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x4c]
mov edi, 0x42b408
cmp byte [esp + ecx + 0x4b], bl
je 0x401bab
mov edi, 0x42b400
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push 0x42d3d0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x42d5d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x42d4d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x42d3d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x42b3e8
cmp byte [ecx + 0x42d3cf], bl
je 0x401c47
mov edi, 0x42b3d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x42d3d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.MONITOR.EXE
or ecx, 0xffffffff
xor eax, eax
push 0x42b3bc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x81
mov esi, edi
mov edx, ecx
mov edi, 0x42d5d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42b3b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42d4d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov dword [esp + 0x20], eax
call esi
push 0x80
push 0x42d5d8
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42d5d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x9002
push 0x42d5d8
lea ecx, [esp + 0x28]
call fcn.0041a6c2
test eax, eax
jne 0x401d5f
mov eax, dword [0x42d3c4]
push 0
cmp eax, 1
push 0
jne 0x401e54
push 0x42b398
jmp 0x401e59
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0041a819
lea ecx, [esp + 0x1c]
call fcn.0041a8dd
push 0x42b3bc
push 0x83
push 0
call edi
push eax
push 0
mov dword [esp + 0x1c], eax
call ebx
push eax
call ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push edx
push 0
call esi
push 0x80
push 0x42d3d0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42d3d0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x9002
push 0x42d3d0
lea ecx, [esp + 0x28]
call fcn.0041a6c2
test eax, eax
je 0x401d43
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0041a819
lea ecx, [esp + 0x1c]
call fcn.0041a8dd
push 0x42b3bc
push 0x82
push 0
call edi
mov edi, eax
push edi
push 0
call ebx
push eax
call ebp
push edi
push 0
mov ebx, eax
call esi
push 0x80
push 0x42d4d4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x42d4d4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x9002
push 0x42d4d4
lea ecx, [esp + 0x28]
call fcn.0041a6c2
test eax, eax
jne 0x401e7d
jmp 0x401d43
push str.Error_when_open_file_to_read_and_write_
mov ecx, dword [esp + 0x1c]
call fcn.00418b33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041a605
xor eax, eax
jmp 0x401fad
push esi
push ebx
lea ecx, [esp + 0x24]
call fcn.0041a819
lea ecx, [esp + 0x1c]
call fcn.0041a8dd
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.004017f0
test eax, eax
jne 0x401edc
mov eax, dword [0x42d3c4]
push 0
cmp eax, 1
push 0
jne 0x401eb5
push 0x42b358
jmp 0x401eba
push str.Error_of_setting_register_key_
mov ecx, esi
call fcn.00418b33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041a605
xor eax, eax
jmp 0x401fad
mov ecx, dword [0x42d3c8]
mov eax, dword [0x42d3c4]
inc ecx
cmp eax, 1
mov dword [0x42d3c8], ecx
jne 0x401efa
push 0x42b318
jmp 0x401eff
push str.______Installation_is_completed_successfully_
lea ecx, [esi + 0xd4]
call fcn.00419cbd
push 0
lea ecx, [esi + 0x98]
call fcn.00419dbe
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0041befb
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x2c]
push edx
push eax
call edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0041befb
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
sub eax, edx
sub edi, ebx
cdq
sub eax, edx
push 1
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov dword [esp + 0x30], ecx
lea eax, [ecx + edi]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
sub edi, edx
sub eax, ecx
push edi
push eax
push edx
push ecx
lea ecx, [esi + 0x5c]
call fcn.00419d2e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041a605
mov eax, 1
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret