Function at 0x458d88
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 0x45900b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0049a1f8
mov al, 3
call fcn.00458ce4
fstp qword [ebp - 0x18]
wait
mov al, 1
call fcn.00458ce4
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jbe 0x458fde
xor eax, eax
call fcn.00629b44
call fcn.0064d6f4
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00621464
lea eax, [ebp - 0x2c]
mov edx, 0x459020
call fcn.00403ac4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0064f498
lea edx, [ebp - 4]
mov al, 2
call fcn.00621464
lea edx, [ebp - 8]
mov al, 4
call fcn.00621464
xor ebx, ebx
jmp 0x458fa5
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 0x458fa4
mov eax, dword [esi]
cmp byte [eax], 0x2a
jne 0x458fa4
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 [0x669558]
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 [0x669558]
add dl, byte [edi + ecx]
lea ecx, [ebp - 0x20]
add ecx, eax
mov byte [ecx], dl
inc eax
cmp eax, 8
jne 0x458e48
inc ebx
jmp 0x458f96
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
lea esi, [eax + ebx*4]
inc ebx
cmp dword [esi], 0
je 0x458f96
mov eax, dword [esi]
cmp byte [eax], 0x2a
jne 0x458eab
dec ebx
jmp 0x458fa5
lea ecx, [ebp - 0xc]
mov eax, dword [esi]
mov edx, 0x4e4
call fcn.00654218
fld qword [ebp - 0x18]
fcomp qword [ebp - 0x20]
fnstsw ax
sahf
jae 0x458f96
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00654750
test al, al
je 0x458f96
mov eax, dword [ebp - 0xc]
call fcn.006532bc
cmp ax, 0x21
jne 0x458f00
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0xc]
call fcn.00653300
lea eax, [ebp - 0xc]
call fcn.00653300
jmp 0x458f04
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.00653e88
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.006548ec
mov eax, dword [ebp - 0x2c]
call fcn.006216bc
mov eax, dword [0x6695b0]
cmp dword [eax], 0x2670d20
jge 0x458f7f
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403ab8
mov edx, eax
sub edx, 0x16
mov ecx, 8
mov eax, dword [ebp - 0x10]
call fcn.00403c6c
mov eax, dword [ebp - 0x2c]
mov edx, 0x45903c
call fcn.00654730
test al, al
je 0x458f7f
mov eax, dword [ebp - 0x10]
call fcn.00621d70
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 0x458e8b
jmp 0x458fa5
inc ebx
mov eax, dword [ebp - 0x28]
cmp ebx, dword [eax + 0x24]
jl 0x458e22
mov eax, dword [ebp - 0x28]
call fcn.004028c0
push 0
lea edx, [ebp - 0x2c]
mov al, 3
call fcn.00621464
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov al, 1
call fcn.00621464
mov eax, dword [ebp - 0x30]
mov cl, 1
pop edx
call fcn.00622308
call fcn.0049a1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459012
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403898
ret