Function at 0x40ce34
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x930
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], ecx
call fcn.0040d57b
mov ebx, eax
test ebx, ebx
je 0x40d187
and byte [ebp - 0x128], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x930]
push eax
call fcn.00403d6d
test eax, eax
pop ecx
je 0x40d187
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.0040df5f
lea eax, [ebp - 0x528]
push eax
call fcn.00439247
test eax, eax
pop ecx
jne 0x40d187
lea eax, [ebp - 0x528]
push 1
add ebx, 0x40
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40d187
lea eax, [ebp - 0x528]
push eax
call fcn.0040c5c8
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
je 0x40d187
cmp dword [ebp + 0x20], edi
je 0x40cf09
push 0x100
lea eax, [ebx + 0xe36]
push dword [ebp + 0x20]
mov byte [ebx + 0xe35], 1
push eax
call fcn.00451bc0
add esp, 0xc
jmp 0x40cf10
and byte [ebx + 0xe35], 0
push edi
call fcn.0045342f
cmp dword [ebp + 0x14], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [ebx + 0xc], eax
je 0x40cf2d
mov dword [ebx + 8], esi
jmp 0x40d04a
mov ecx, dword [ebx + 0x1c]
xor esi, esi
test ecx, ecx
jbe 0x40cf6a
lea eax, [ebx + 0xa5]
mov edi, ecx
mov cl, byte [eax]
and cl, 0xe0
cmp cl, 0x20
je 0x40cf4d
cmp cl, 0x40
jne 0x40cf64
inc esi
cmp cl, 0x40
jne 0x40cf64
mov cl, byte [eax + 0x20]
and cl, 0xe0
cmp cl, 0x40
je 0x40cf64
add esi, 0xffff
add eax, 0x20
dec edi
jne 0x40cf3e
mov dword [ebp - 0x14], 0xebd4a0a8
mov word [ebp - 0x10], 0xb1e5
mov word [ebp - 0xe], 0x4432
mov byte [ebp - 0xc], 0x87
mov byte [ebp - 0xb], 0xc8
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0xb6
mov byte [ebp - 8], 0xb7
mov byte [ebp - 7], 0x26
mov byte [ebp - 6], 0x95
mov byte [ebp - 5], 0xc7
mov dword [ebp - 0x24], 0xebd0a0a2
mov word [ebp - 0x20], 0xb9e5
mov word [ebp - 0x1e], 0x4433
mov byte [ebp - 0x1c], 0x87
mov byte [ebp - 0x1b], 0xc0
mov byte [ebp - 0x1a], 0x68
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0xb7
mov byte [ebp - 0x17], 0x26
mov byte [ebp - 0x16], 0x99
mov byte [ebp - 0x15], 0xc7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp + 0x23], 0
inc esi
movzx esi, si
cmp esi, dword [ebx + 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp + 8], esi
jae 0x40d048
mov eax, esi
imul eax, eax, 0x4c
lea edi, [eax + ebx + 0x4c3]
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0x24]
push eax
lea eax, [edi - 0x10]
push eax
call fcn.0040bf95
pop ecx
test al, al
pop ecx
je 0x40d036
lea esi, [ebp - 0x14]
mov eax, dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
push str.Edit_Copy_OS_GPT_PART_n
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ecx, eax
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
add dword [eax], ecx
mov cl, byte [ebp + 0x23]
add byte [eax + 8], cl
call fcn.00452e0e
inc byte [ebp + 0x23]
mov esi, dword [ebp + 8]
pop ecx
mov edi, dword [ebp + 0x10]
inc esi
add edi, 0x4c
cmp esi, dword [ebx + 0x1c]
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], edi
jb 0x40cff8
xor edi, edi
lea eax, [ebp - 0x128]
push eax
push edi
call fcn.0045342f
pop ecx
push eax
call fcn.00437de2
cmp dword [ebp + 0x18], edi
pop ecx
pop ecx
je 0x40d0ce
and byte [ebp - 0x228], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
push dword [ebp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x228]
push eax
call fcn.00452490
lea eax, [ebp - 0x228]
push eax
call fcn.004525b0
add esp, 0xc
cmp eax, 0x63
jl 0x40d0b6
and byte [ebp - 0x1c5], 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x228]
push eax
jmp 0x40d0c0
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x18]
lea eax, [ebx + 0x42e2]
push str._s__s
push eax
jmp 0x40d11a
lea esi, [ebx + 0x42e2]
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.00452490
lea eax, [ebp - 0x328]
push eax
call fcn.004525b0
add esp, 0xc
cmp eax, 0x63
jl 0x40d10c
and byte [ebp - 0x2c5], 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x328]
push eax
jmp 0x40d114
lea eax, [ebp - 0x128]
push eax
push esi
push str._s__s
push esi
call fcn.00451ef5
add esp, 0x10
lea eax, [ebx + 0x455f]
push dword [ebp + 0xc]
push eax
call fcn.00452490
lea eax, [ebp - 0x528]
push ebx
push eax
call fcn.0040c55f
add esp, 0x10
test eax, eax
jne 0x40d14e
push ebx
call fcn.00431aec
pop ecx
jmp 0x40d187
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x730]
push eax
call fcn.00452490
pop ecx
lea eax, [ebp - 0x730]
pop ecx
xor esi, esi
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x52c], esi
mov dword [ebp - 0x530], ebx
push dword [ebx + 0xc]
call fcn.0040d852
test al, al
jne 0x40d18b
xor al, al
jmp 0x40d1aa
cmp dword [ebp + 0x14], esi
jne 0x40d1a8
cmp dword [ebp + 0x1c], esi
je 0x40d1a8
push 0x426
push 0x5802
push ebx
call fcn.0041bc5b
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x1c