Function at 0x10082ed6
Capabilities:
Copy file

Disassembly:
mov eax, 0x100eb784
call fcn.100c908c
sub esp, 0x70
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.1007f33d
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x1008314e
cmp eax, 0xffffffff
je 0x10083143
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
mov dword [ebp - 0x38], ebx
call fcn.1000548f
lea eax, [ebp - 0x7c]
push eax
call fcn.10097821
pop ecx
pop ecx
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 3
jb 0x10082f59
mov eax, dword [eax + 4]
jmp 0x10082f5c
add eax, 4
push eax
lea ecx, [ebp - 0x28]
call fcn.10009e15
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.100022b8
mov esi, 0x101519f8
push esi
lea ecx, [ebp - 0x24]
call fcn.1007170f
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.1000548f
call fcn.10049ba4
pop ecx
pop ecx
test al, al
jne 0x1008312a
mov ebx, str..bak
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10006fb9
add esp, 0xc
mov byte [ebp - 4], 7
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10082fdf
push ebx
lea ecx, [ebp - 0x20]
call fcn.1001195c
jmp 0x10082fc2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push str.Not_a_well_formed_XML._Reason:
push eax
call fcn.10007024
add esp, 0xc
push 0x100fa928
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 8
call fcn.10006fb9
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.10006f5b
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.10003f60
push esi
lea ecx, [ebp - 0x18]
call fcn.1007170f
mov eax, dword [edi + 0x12bc]
lea ecx, [eax + 0x104]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov byte [ebp - 4], 0xd
test eax, 0xfffffffc
je 0x100830a7
push 0
lea esi, [edi + 0xb8]
call fcn.1008d01e
mov ecx, dword [eax]
mov eax, dword [ecx]
push 0
push 1
push ecx
mov edx, esp
mov dword [ebp - 0x3c], esp
push edx
call dword [eax + 0x28]
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1004ad5e
add esp, 0x14
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.1000688b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xd
call fcn.10003f60
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push str._r_nLayout_url:
push eax
call fcn.10007024
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call fcn.1000714f
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.10003f60
push 1
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
call fcn.1000548f
mov ecx, edi
call fcn.10080d89
cmp byte [0x1015400c], 0
jne 0x10083112
mov ecx, edi
mov byte [0x1015400c], 1
call fcn.100803b3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
xor ebx, ebx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.10003f60
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x1008314e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret