Function at 0x46e9b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46ebf4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ac668
mov al, 3
call fcn.0046e90c
fstp qword [ebp - 0x18]
wait
mov al, 1
call fcn.0046e90c
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jbe 0x46ebc7
xor eax, eax
call fcn.0062cef4
lea edx, [ebp - 4]
mov al, 2
call fcn.00624c88
lea edx, [ebp - 8]
mov al, 4
call fcn.00624c88
call fcn.00650c20
mov dword [ebp - 0x28], eax
mov eax, dword [0x672a2c]
inc byte [eax]
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00624c88
lea eax, [ebp - 0x2c]
mov edx, 0x46ec08
call fcn.00403ac4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.006533a8
mov eax, dword [0x672a2c]
dec byte [eax]
xor ebx, ebx
jmp 0x46eb8e
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
call fcn.0040351c
cmp eax, 0x11
jne 0x46eb8d
mov eax, dword [esi]
cmp byte [eax], 0x2a
jne 0x46eb8d
xor eax, eax
mov edx, eax
add edx, edx
add edx, 2
mov ecx, dword [esi]
movzx edx, byte [ecx + edx - 1]
mov ecx, dword [0x6724a0]
mov dl, byte [ecx + edx]
shl edx, 4
mov ecx, eax
add ecx, ecx
add ecx, 2
mov edi, dword [esi]
movzx ecx, byte [edi + ecx]
mov edi, dword [0x6724a0]
add dl, byte [edi + ecx]
lea ecx, [ebp - 0x20]
add ecx, eax
mov byte [ecx], dl
inc eax
cmp eax, 8
jne 0x46ea7e
inc ebx
jmp 0x46eb7f
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
lea esi, [eax + ebx*4]
inc ebx
cmp dword [esi], 0
je 0x46eb7f
mov eax, dword [esi]
cmp byte [eax], 0x2a
jne 0x46eae1
dec ebx
jmp 0x46eb8e
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.0065829c
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
jae 0x46eb7f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.006586c0
test al, al
je 0x46eb7f
mov eax, dword [ebp - 0xc]
call fcn.006571d8
cmp ax, 0x21
jne 0x46eb2d
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0xc]
call fcn.0065721c
lea eax, [ebp - 0xc]
call fcn.0065721c
jmp 0x46eb31
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 4]
call fcn.00403ab8
mov edx, eax
inc edx
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00657df8
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00403b24
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0065885c
mov eax, dword [ebp - 0x2c]
call fcn.00624f1c
mov al, byte [ebp - 0x21]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CopyFileW
mov eax, dword [ebp - 0x28]
cmp ebx, dword [eax + 0x24]
jl 0x46eac1
jmp 0x46eb8e
inc ebx
mov eax, dword [ebp - 0x28]
cmp ebx, dword [eax + 0x24]
jl 0x46ea58
mov eax, dword [ebp - 0x28]
call fcn.004028c0
push 0
lea edx, [ebp - 0x2c]
mov al, 3
call fcn.00624c88
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov al, 1
call fcn.00624c88
mov eax, dword [ebp - 0x30]
mov cl, 1
pop edx
call fcn.00625b68
call fcn.004ac660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ebfb
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403898
ret