Function at 0x523ea8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x523eb0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x52437f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x524349
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0x11], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00523cdc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.00405e34
lea eax, [ebp - 0x2c]
mov ecx, 0x5243a0
mov edx, dword [ebp - 8]
call fcn.0040629c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
call fcn.00523ba0
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040629c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4370c8]
call fcn.00437444
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x5220c0]
call fcn.00403dac
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xe4], edx
mov dword [eax + 0xe0], 0x52247c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xdc], edx
mov dword [eax + 0xd8], 0x5221b8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
add edx, 0x200
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
mov eax, dword [ebp - 0x30]
call fcn.004facf4
test al, al
je 0x523fb8
mov eax, dword [ebp - 0x18]
add eax, 0x88
mov edx, dword [ebp - 0x10]
add edx, 0x200
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
jmp 0x523fdd
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00403408
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040d474
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
add eax, 0x88
call fcn.00405de0
mov eax, dword [ebp - 0x18]
add eax, 0x8c
mov edx, 0x5243c8
call fcn.00405de0
mov dl, 1
mov eax, dword [0x43c8f4]
call fcn.0043c9b8
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x4228dc]
call fcn.00403dac
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
call fcn.0040cf58
test al, al
je 0x5240a2
xor edx, edx
push ebp
push 0x524040
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00437518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5240ad
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00439ae4
mov edx, 0x524414
mov eax, dword [ebp - 0x18]
call fcn.00439bb4
inc eax
jle 0x5240cd
mov ecx, 0x524414
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.00438594
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.00427e48
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0043d2e0
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x10]
add edx, 0x864
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x44]
push eax
mov ecx, 0x524430
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
add edx, 0x8ca
mov ecx, pe_nt_image_headers32
call fcn.00405fc8
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x524460
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
add edx, 0xaca
mov ecx, 0x15
call fcn.00405fc8
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, 0x524484
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xaf4], 1
sbb eax, eax
inc eax
push eax
mov ecx, 0x5244a8
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x10]
add edx, 0xb5e
mov ecx, 6
call fcn.00405fc8
mov eax, dword [ebp - 0x50]
push eax
mov ecx, 0x5244c4
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
add edx, 0xaf8
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x54]
push eax
mov ecx, 0x5244dc
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x10]
add edx, 0xb70
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x58]
push eax
mov ecx, 0x5244f8
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xb6c], 1
sbb eax, eax
inc eax
push eax
mov ecx, 0x524520
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x10]
add edx, 0xbd6
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, 0x524540
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x10]
add edx, 0xc44
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x60]
push eax
mov ecx, 0x52456c
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc40]
push eax
mov ecx, 0x524594
mov edx, 0x524448
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.004285f0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0043d404
mov edx, 0x524414
mov eax, dword [ebp - 0x18]
call fcn.00439bb4
inc eax
jne 0x5242d7
push 1
mov ecx, dword [ebp - 0x20]
mov edx, 0x524414
mov eax, dword [ebp - 0x18]
call fcn.00438b18
jmp 0x5242e9
push 1
mov ecx, dword [ebp - 0x20]
mov edx, 0x524414
mov eax, dword [ebp - 0x18]
call fcn.004392c8
mov edx, 0x5243a0
mov eax, dword [ebp - 4]
call fcn.005213e8
push 0
lea eax, [ebp - 0x64]
mov ecx, 0x5245b4
mov edx, dword [ebp - 8]
call fcn.0040629c
mov eax, dword [ebp - 0x64]
call fcn.00405e6c
push eax
mov eax, dword [ebp - 4]
call fcn.00405e6c
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [ebp - 0x1c]
call fcn.00403ddc
mov eax, dword [ebp - 0x20]
call fcn.00403ddc
mov eax, dword [ebp - 0x18]
call fcn.00403ddc
mov eax, dword [ebp - 0x24]
call fcn.00403ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524357
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524386
lea eax, [ebp - 0x64]
mov edx, 0x10
call fcn.00405dd8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405dd8
ret