Function at 0x108e08d
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x520], eax
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
je 0x108e129
lea eax, [ebp - 0x518]
push eax
push dword [0x11115b8]
push edi
call fcn.0108de8e
mov esi, eax
cmp esi, 0x80070002
je 0x108e318
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jge 0x108e129
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108e122
test byte [eax + 0x1c], 1
je 0x108e122
cmp byte [eax + 0x19], 2
jb 0x108e122
push esi
push 0x1008be8
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, esi
jmp 0x108e31a
mov esi, 0x143
cmp edi, ebx
je 0x108e170
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x108e137
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x108e160
push 0x1009168
push 0xa0d
push 0x1008c14
call fcn.0107b4be
push edi
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.01025872
jmp 0x108e18b
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x28c]
push eax
call fcn.0108cab9
cmp eax, ebx
jl 0x108e31a
push 0x10019e4
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.01040bdd
lea eax, [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.01025872
lea eax, [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x108e1ba
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [0x11115b8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108e1d2
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [0x11115c4]
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108e1ea
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + ebx + 1]
cmp eax, esi
jb 0x108e216
push 0x1009300
push 0xa24
push 0x1008c14
call fcn.0107b4be
push dword [0x11115c4]
lea eax, [ebp - 0x28c]
push esi
push eax
call fcn.01040bdd
push 0x10019e4
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.01040bdd
push dword [0x11115b8]
lea eax, [ebp - 0x28c]
push esi
push eax
call fcn.01040bdd
lea eax, [ebp - 0x514]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108e257
sub eax, ecx
mov ecx, dword [0x11115bc]
sar eax, 1
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
inc ecx
inc ecx
test ax, ax
jne 0x108e270
sub ecx, edx
sar ecx, 1
mov edx, ecx
mov ecx, dword [0x11115c4]
lea edi, [ecx + 2]
mov ax, word [ecx]
inc ecx
inc ecx
test ax, ax
jne 0x108e289
sub ecx, edi
sar ecx, 1
add ecx, edx
lea eax, [ecx + ebx + 1]
cmp eax, esi
jb 0x108e2b5
push 0x1009280
push 0xa2d
push 0x1008c14
call fcn.0107b4be
push dword [0x11115c4]
lea eax, [ebp - 0x514]
push esi
push eax
call fcn.01040bdd
push 0x10019e4
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.01040bdd
mov edi, dword [0x11115bc]
push edi
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.01040bdd
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x108e32b
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0108c075
cmp eax, ebx
jl 0x108e31a
mov eax, dword [ebp - 0x520]
mov dword [eax], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0xc
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x518]
push eax
push edi
push dword [ebp - 0x51c]
call fcn.0108de8e
mov esi, eax
cmp esi, ebx
jge 0x108e394
cmp esi, 0x80070002
je 0x108e318
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108e122
test byte [eax + 0x1c], 2
je 0x108e122
cmp byte [eax + 0x19], 2
jb 0x108e122
push esi
push dword [0x11115bc]
push 0x1008be8
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108e122
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x108e318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108e3f3
test byte [eax + 0x1c], 1
je 0x108e3f3
cmp byte [eax + 0x19], 2
jb 0x108e3f3
push esi
push 0x1008be8
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
cmp esi, ebx
jle 0x108e122
and esi, 0xffff
or esi, 0x80070000
jmp 0x108e122