Function at 0x47e1b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6bc858]
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
xor ebx, ebx
mov dword [ebp - 0x50], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x47e39d
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x50]
mov dword [ecx], eax
mov edi, 0xf
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], ebx
push 8
mov byte [ebp - 4], 2
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x47e379
mov dword [ebp - 0x30], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x30]
mov dword [eax], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.004c4b60
push 4
push str.www_
lea ecx, [ebp - 0x30]
call fcn.00412ae0
mov ecx, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x47e27f
lea ecx, [ebp - 0x2c]
call fcn.004c3dc0
test eax, eax
je 0x47e298
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x47e293
lea ecx, [ebp - 0x2c]
call fcn.004c4240
push 0x14
push str.Templatehtml_sys.js
lea ecx, [ebp - 0x50]
call fcn.00412ae0
push 6
push str.sys.js
lea ecx, [ebp - 0x30]
call fcn.00412ae0
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x47e2c1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x47e2cc
lea eax, [ebp - 0x4c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x18], esi
jb 0x47e2e6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040ed70
mov edx, dword [ebp - 0x30]
push edx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 1
call fcn.0040ed70
cmp dword [ebp - 0x38], esi
jb 0x47e327
mov eax, dword [ebp - 0x4c]
push eax
call fcn.005f0cb0
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 5
call fcn.0040ed70
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0040ed70
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.005f0da0
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], ebx
call fcn.005f41f0
push 0x6a361c
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::bad_alloc.0
call fcn.006009e0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x54], ebx
call fcn.005f41f0
push 0x6a361c
lea edx, [ebp - 0x70]
push edx
mov dword [ebp - 0x70], vtable.std::bad_alloc.0
call fcn.006009e0
int3