Function at 0x42d7e0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x469ab2
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
call fcn.00437eea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d825
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x124], 0
call fcn.00437eea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d85a
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [str.tmaseng.dll]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
mov dword [esp + 0x18], ecx
call dword [0x490f8c]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004185b0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x12c]
push edx
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x130], 2
call fcn.0040bb70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 3
call fcn.004037f0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x124], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d8ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x124], 1
je 0x42d90a
push eax
call fcn.00449eca
add esp, 4
mov esi, dword [str.tmaseng.dll]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], edx
call dword [0x490f8c]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004185b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x130]
push eax
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x130], 4
call fcn.0040bb70
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 5
call fcn.004037f0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x124], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x124], 1
je 0x42d9a2
push eax
call fcn.00449eca
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42d9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_copy_engine_file__error_d
call fcn.00409e70
add esp, 8
lea eax, [esi - 0x10]
mov byte [esp + 0x124], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d9f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x124], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x11c
ret