Function at 0x411200
Capabilities:
Copy file
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c63b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x41125f
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], ecx
jne 0x41127c
push str.Empty_service_executable_image_path
mov ecx, edi
call fcn.00401590
xor bl, bl
jmp 0x41141f
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4112b5
lea ecx, [ebp - 0x218]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.00411950
jmp 0x4112d9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
jb 0x4112d4
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
jne 0x4112f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_failed_with__i
jmp 0x4113f7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4112fd
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x411313
mov ecx, dword [esi]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
jb 0x411328
mov eax, dword [ebp - 0x230]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call ebx
test eax, eax
jne 0x41141d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x248]
push str._EAC_Setup___Error__CopyFile_failed__LastErrorCode:__i.
push eax
call fcn.00411e60
add esp, 0xc
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
jb 0x41136c
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x248]
call fcn.00401520
lea eax, [ebp - 0x248]
push str._EAC_Setup___Info__Retrying_to_copy_the_service_program_executable_once_more_in_2_seconds..
push eax
call fcn.00411e60
add esp, 8
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
jb 0x4113a7
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x248]
call fcn.00401520
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x4113cc
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
jb 0x4113e1
mov eax, dword [ebp - 0x230]
push 0
push esi
push eax
call ebx
test eax, eax
jne 0x41141d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile_failed_with__i
lea eax, [ebp - 0x248]
push eax
call fcn.00411e60
add esp, 0xc
mov ecx, edi
push eax
call fcn.00403810
lea ecx, [ebp - 0x248]
call fcn.00401520
xor bl, bl
jmp 0x41141f
mov bl, 1
lea ecx, [ebp - 0x230]
call fcn.00401520
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042207c
mov esp, ebp
pop ebp
ret