Function at 0x40af20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440693
mov eax, dword fs:[0]
push eax
mov eax, 0x1678
call fcn.0040f8a0
mov eax, dword [0x45410c]
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
mov ebx, ecx
mov dword [ebp - 0x1648], ebx
mov dword [ebp - 4], 0
mov dword [ebp - method.BootContainer.virtual_0], vtable.BootContainer.0
mov dword [ebp - 0x1640], 0
mov byte [ebp - 0x163c], 0
mov dword [ebp - 0x1430], 0
mov dword [ebp - 0x1224], 0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40b055
call fcn.0042dd19
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x40b03e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40afb5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x40aff0
movzx eax, word [esi]
cmp eax, 0x2d
je 0x40afd6
cmp eax, 0x2f
jne 0x40aff0
lea eax, [esi + 2]
push 0x44ca18
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b055
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aff5
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x40b030
cmp word [esi], 0x2d
jne 0x40b030
cmp word [esi + 2], 0x2d
jne 0x40b030
lea eax, [esi + 4]
push str.silent
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b055
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x40afb0
push str.BtsIntroShow
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
push 0
push eax
push ebx
call dword [0x4540a4]
lea ecx, [ebp - 0x1644]
call fcn.00406bb0
test al, al
je 0x40b0d7
push 8
push 0x44c954
lea ecx, [ebp - 0x142c]
mov dword [ebp - 0x1224], 0x44c954
call fcn.004031d0
add esp, 8
test al, al
jne 0x40b1a2
push 0x101
push str.eset.temp
lea ecx, [ebp - 0x142c]
mov dword [ebp - 0x1224], str.eset.temp
call fcn.004031d0
add esp, 8
test al, al
jne 0x40b1a2
xor eax, eax
cmp dword [ebp - 0x1640], 8
mov word [ebp - 0x142c], ax
mov dword [ebp - 0x1224], eax
ja 0x40b0d7
mov dword [ebp - 0x1640], 0x3ea
test ebx, ebx
je 0x40b5b3
push ebx
lea ecx, [ebp - 0x1644]
call fcn.004071c0
call fcn.0042dd19
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x40b5b3
nop
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b105
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x40b144
movzx eax, word [esi]
cmp eax, 0x2d
je 0x40b126
cmp eax, 0x2f
jne 0x40b144
lea eax, [esi + 2]
push 0x44ca18
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b5a6
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b150
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x40b18f
cmp word [esi], 0x2d
jne 0x40b18f
cmp word [esi + 2], 0x2d
jne 0x40b18f
lea eax, [esi + 4]
push str.silent
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b5a6
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x40b100
jmp 0x40b5b3
xor eax, eax
push 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x163a]
push 0x44c568
push eax
call fcn.00428d96
add esp, 0xc
test eax, eax
je 0x40b309
push 3
lea eax, [ebp - 0x163a]
push eax
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.0042bb21
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call dword [0x4540cc]
cmp eax, 4
je 0x40b309
lea ecx, [ebp - 0x1644]
call fcn.00406e50
test al, al
je 0x40b4a5
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
jb 0x40b211
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00427180
push 0x1000
lea eax, [ebp - 0x1220]
push 0
push eax
call fcn.00427180
push 0x3c
lea eax, [ebp - 0x1684]
push 0
push eax
call fcn.00427180
push dword [ebp - 0x1430]
lea eax, [ebp - 0x142c]
push eax
push str.__s_s_
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004072d0
add esp, 0x38
lea eax, [ebp - 0x163a]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__bts_container
push str._s__d___s___s
lea eax, [ebp - 0x1220]
push 0x800
push eax
call fcn.004072d0
movzx eax, byte [ebp - 0x163c]
lea ecx, [ebp - 0x1644]
add esp, 0x1c
mov dword [ebp - 0x1684], 0x3c
neg eax
mov dword [ebp - 0x1680], 0x440
mov dword [ebp - 0x1668], 1
sbb eax, eax
and eax, str.runas
mov dword [ebp - 0x1678], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x1674], eax
lea eax, [ebp - 0x1220]
mov dword [ebp - 0x1670], eax
lea eax, [ebp - 0x142c]
mov dword [ebp - 0x166c], eax
lea eax, [ebp - 0x1684]
push eax
call fcn.00407110
jmp 0x40b4a5
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00427180
push dword [ebp - 0x1430]
lea eax, [ebp - 0x142c]
push eax
push str._s_s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004072d0
add esp, 0x20
lea eax, [ebp - 0x220]
push 1
push eax
lea eax, [ebp - 0x163a]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40b3b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13a
ja 0x40b375
je 0x40b398
cmp eax, 0x27
je 0x40b398
cmp eax, 0x70
jmp 0x40b37a
cmp eax, 0x50f
je 0x40b398
cmp dword [ebp - 0x1640], 8
ja 0x40b4a5
mov dword [ebp - 0x1640], 0x3f4
jmp 0x40b4a5
cmp dword [ebp - 0x1640], 8
ja 0x40b4a5
mov dword [ebp - 0x1640], 0x3f8
jmp 0x40b4a5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x163a]
push 0x104
push eax
call fcn.0042c048
add esp, 0xc
lea eax, [ebp - 0x163a]
push eax
call dword [0x4540c8]
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x1430], eax
lea eax, [ebp + 8]
jb 0x40b3ee
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1670], eax
lea ecx, [ebp - 0x163a]
lea eax, [ebp - 0x142c]
mov dword [ebp - 0x1674], ecx
mov dword [ebp - 0x166c], eax
lea ecx, [ebp - 0x1644]
lea eax, [ebp - 0x1684]
mov dword [ebp - 0x167c], 0
push eax
mov dword [ebp - 0x1678], 0
mov dword [ebp - 0x1664], 0
mov dword [ebp - 0x1660], 0
mov dword [ebp - 0x165c], 0
mov dword [ebp - 0x1658], 0
mov dword [ebp - 0x1654], 0
mov dword [ebp - 0x1650], 0
mov dword [ebp - 0x164c], 0
mov dword [ebp - 0x1684], 0x3c
mov dword [ebp - 0x1680], 0x440
mov dword [ebp - 0x1668], 1
call fcn.00407110
push ecx
lea ecx, [ebp - 0x142c]
call fcn.00403420
add esp, 4
mov eax, dword [ebp - 0x1648]
mov ebx, dword [ebp - 0x1640]
test eax, eax
je 0x40b5b9
cmp ebx, 0x3e8
jl 0x40b4c9
cmp ebx, 0x7cf
jl 0x40b4d5
cmp ebx, 0x10000
jl 0x40b597
call fcn.0042dd19
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x40b57e
lea esp, [esp]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b4f5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x40b530
movzx eax, word [esi]
cmp eax, 0x2d
je 0x40b516
cmp eax, 0x2f
jne 0x40b530
lea eax, [esi + 2]
push 0x44ca18
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b591
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b535
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x40b570
cmp word [esi], 0x2d
jne 0x40b570
cmp word [esi + 2], 0x2d
jne 0x40b570
lea eax, [esi + 4]
push str.silent
push eax
call fcn.0042917d
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40b591
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x40b4f0
push dword [ebp - 0x1648]
lea ecx, [ebp - 0x1644]
call fcn.004071c0
jmp 0x40b5b9
mov eax, dword [ebp - 0x1648]
push 0
push 0
push 0x10
push eax
call dword [0x4540a4]
jmp 0x40b5b9
push 0
push 0
push 0x10
push ebx
call dword [0x4540a4]
mov ebx, dword [ebp - 0x1640]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - method.BootContainer.virtual_0], vtable.BootContainer.0
cmp edx, 8
jb 0x40b5f9
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b5ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b617
push edx
push ecx
call fcn.0040e5be
add esp, 8
mov eax, ebx
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.0040e5ad
mov esp, ebp
pop ebp
ret
call fcn.0042901d
int3