Function at 0x403210
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0x78]
mov eax, 0x49dae8
call fcn.004902c4
mov word [esi + 0x10], 8
mov edx, str.TMainForm::WinNTUpdate
lea eax, [ebp - 4]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
push edx
call fcn.00402a4c
pop ecx
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0049b308
mov edi, dword [ebx + 0x320]
test edi, edi
je 0x40365a
mov word [esi + 0x10], 0x20
mov edx, 0x49d3d4
lea eax, [ebp - 0x1c]
call fcn.0049b294
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 8], eax
push edx
mov edx, str.file
inc dword [esi + 0x1c]
lea eax, [ebp - 0x18]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, str.WINNT
mov ecx, dword [eax]
lea eax, [ebp - 0x14]
push ecx
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
pop ecx
mov edi, dword [eax]
call dword [edi]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x14
push 0x104
lea ecx, [ebp - 0x17c]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [esi + 0x10], 0x2c
lea edx, [ebp - 0x17c]
lea eax, [ebp - 0xc]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, str.SYSTEM32DRIVERS_
mov word [esi + 0x10], 0x14
mov word [esi + 0x10], 0x38
lea eax, [ebp - 0x20]
call fcn.0049b294
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
inc dword [esi + 0x1c]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.0049b34c
lea edx, [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.0049b338
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.0049b34c
mov word [esi + 0x10], 0x14
mov eax, dword [ebp - 8]
push eax
call fcn.00402a4c
pop ecx
push 0
cmp dword [ebp - 0x10], 0
je 0x4033ad
mov edx, dword [ebp - 0x10]
jmp 0x4033b2
mov edx, 0x49d3e9
push edx
cmp dword [ebp - 8], 0
je 0x4033be
mov eax, dword [ebp - 8]
jmp 0x4033c3
mov eax, 0x49d3e8
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebp - 0x10]
call fcn.004274a4
test al, al
je 0x40360b
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402a4c
pop ecx
mov dl, 1
mov eax, dword [0x423518]
call fcn.004235c4
mov edi, eax
mov edx, SysReAllocStringLen
mov eax, edi
call fcn.0049b28c
mov word [esi + 0x10], 0x50
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x2c]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004275fc
lea edx, [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.0049b338
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x5c
mov edx, 0x49d3ea
lea eax, [ebp - 0x30]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00427534
lea edx, [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.0049b338
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x74
mov edx, str.SystemCurrentControlSetServices_
lea eax, [ebp - 0x38]
call fcn.0049b294
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
call fcn.0049b34c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x68
mov eax, dword [ebp - 0x28]
push eax
call fcn.00402a4c
pop ecx
mov cl, 1
mov edx, dword [ebp - 0x28]
mov eax, edi
call fcn.004236c8
mov word [esi + 0x10], 0x80
mov edx, str.Type
lea eax, [ebp - 0x3c]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov ecx, 1
mov eax, edi
call fcn.00423818
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x8c
mov edx, str.Start
lea eax, [ebp - 0x40]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov ecx, 2
mov eax, edi
call fcn.00423818
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x98
mov edx, str.ErrorControl
lea eax, [ebp - 0x44]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov ecx, 1
mov eax, edi
call fcn.00423818
dec dword [esi + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0049b308
mov edx, str.Extended_Base
lea eax, [ebp - 0x4c]
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, str.Group
mov ecx, dword [eax]
lea eax, [ebp - 0x48]
push ecx
mov word [esi + 0x10], 0xa4
call fcn.0049b294
inc dword [esi + 0x1c]
mov edx, dword [eax]
mov eax, edi
pop ecx
call fcn.004237ec
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0049b308
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x54], 0
je 0x4035f5
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov dword [ebp - 0x50], eax
mov word [esi + 0x10], 0xbc
mov edx, 3
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [esi + 0x10], 0xb0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0x14
push 0x40
push str.Warning
push str.Please_restart_Windows_NT_now_
mov eax, ebx
call fcn.00476f7c
push eax
call sub.USER32.DLL_MessageBoxA
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0049b308
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0049b308
mov word [esi + 0x10], 0
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret