Function at 0x4371c0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50b047
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov esi, dword [esp + 0x398]
mov ebx, dword [esp + 0x39c]
mov ebp, ecx
lea ecx, [esp + 0x260]
mov dword [esp + 0x14], esi
call fcn.00435d60
lea eax, [esp + 0x260]
push eax
mov ecx, ebx
mov dword [esp + 0x394], 0
call fcn.004379e0
test al, al
je 0x437283
push 0
push esi
lea ecx, [esp + 0x268]
call fcn.00436f40
test al, al
jne 0x437283
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x37c], 0
jne 0x43727c
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x43727c
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x437457
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x437292
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
add eax, 4
push eax
call edi
cmp byte [ebx + 0x11c], 0
lea ecx, [ebx + 0xc]
jne 0x4372b2
mov ecx, dword [ebx + 8]
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x4372c1
mov eax, dword [ebp + 8]
movzx edx, byte [esp + 0x3a0]
push edx
add ecx, 4
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4373e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00438300
mov esi, eax
call fcn.00438b40
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00438300
cmp byte [ebx + 0x11c], 0
je 0x437317
add ebx, 0xc
jmp 0x43731a
mov ebx, dword [ebx + 8]
lea ecx, [esp + 0x18]
call fcn.00438f20
lea eax, [ebx + 4]
lea edx, [esp + 0x18]
call fcn.00439130
cmp byte [ebp + 0x11c], 0
lea esi, [ebp + 0xc]
jne 0x43733e
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x13c]
call fcn.00438f20
lea eax, [esi + 4]
lea edx, [esp + 0x13c]
call fcn.00439130
lea eax, [esp + 0x13c]
push eax
push 0x52347c
mov ecx, edi
mov byte [esp + 0x398], 4
call fcn.00438300
mov esi, eax
lea eax, [esp + 0x20]
call fcn.00438dc0
cmp byte [esp + 0x258], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x13c], esi
jne 0x4373b1
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x4373b1
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], esi
jne 0x4373d4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x4373d4
push eax
call fcn.004cc2c0
add esp, 4
mov dword [esp + 0x260], esi
jmp 0x437257
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x4373ef
mov eax, dword [ebx + 8]
push 0x80
add eax, 4
push eax
call edi
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x437409
mov eax, dword [ebx + 8]
push 1
push 0x10000000
add eax, 4
push 1
push eax
call fcn.004440a0
add esp, 0x10
mov eax, ebx
call fcn.00437b10
cmp byte [esp + 0x37c], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x437455
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x437455
push eax
call fcn.004cc2c0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x380
ret 0xc