Function at 0x50feb0
Capabilities:
Copy file
Get disk information
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404150
xor eax, eax
push ebp
push 0x510ae7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0050d5ac
test al, al
je 0x510ab4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x106c], 0
jne 0x510ab4
lea eax, [ebp - 0x10]
call fcn.00403d20
xor edx, edx
push ebp
push 0x510a69
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5108b3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x106c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
xor edx, edx
call fcn.00495814
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0050d5ac
test al, al
jne 0x50ff7a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x510ab4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10ec]
mov edx, dword [edx + 0xc]
call fcn.00403db8
cmp dword [ebp - 8], 0
je 0x510044
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0047cd74
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403db8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov al, byte [eax + 0x10]
sub al, 1
jb 0x50ffc6
je 0x50ffe3
dec al
je 0x510029
jmp 0x510044
lea ecx, [ebp - 0x2c]
mov edx, 0x510b00
mov eax, dword [ebp - 8]
call fcn.00409078
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403db8
jmp 0x510044
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe01], 0
je 0x51000c
lea ecx, [ebp - 0x2c]
mov edx, 0x510b10
mov eax, dword [ebp - 8]
call fcn.00409078
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403db8
jmp 0x510044
lea ecx, [ebp - 0x2c]
mov edx, 0x510b00
mov eax, dword [ebp - 8]
call fcn.00409078
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403db8
jmp 0x510044
lea ecx, [ebp - 0x2c]
mov edx, 0x510b20
mov eax, dword [ebp - 8]
call fcn.00409078
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403db8
cmp dword [ebp - 8], 0
jne 0x51025f
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x324]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov al, byte [eax + 0x10]
sub al, 1
jb 0x51007a
dec al
jne 0x510089
lea eax, [ebx + 0x54]
mov edx, 0x510b30
call fcn.00403d74
jmp 0x510096
lea eax, [ebx + 0x54]
mov edx, 0x510b74
call fcn.00403d74
jmp 0x510096
lea eax, [ebx + 0x54]
mov edx, 0x510bb4
call fcn.00403d74
mov dword [ebx + 0x58], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
cmp dword [eax + 0xc], 0
je 0x5100c2
lea eax, [ebx + 0x6c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10ec]
mov edx, dword [edx + 0xc]
call fcn.00403d74
jmp 0x5100d9
lea edx, [ebp - 0x2c]
mov eax, dword [0x541f28]
call fcn.0047cb44
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.004453dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
mov edx, dword [eax]
call dword [edx + 0x34]
test al, al
je 0x51024d
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00445364
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.0047cd74
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004040ac
je 0x510128
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov byte [eax + 0xc9], 0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040920c
cmp dword [ebp - 0x18], 0
jne 0x510197
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov al, byte [eax + 0x10]
sub al, 1
jb 0x510151
je 0x510160
dec al
je 0x51018a
jmp 0x510197
lea eax, [ebp - 8]
mov edx, 0x510b00
call fcn.00403fa4
jmp 0x510197
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe01], 0
je 0x51017b
lea eax, [ebp - 8]
mov edx, 0x510b10
call fcn.00403fa4
jmp 0x510197
lea eax, [ebp - 8]
mov edx, 0x510b00
call fcn.00403fa4
jmp 0x510197
lea eax, [ebp - 8]
mov edx, 0x510b20
call fcn.00403fa4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov edx, dword [ebp - 8]
call fcn.004d1d30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
cmp byte [eax + 0x10], 2
jne 0x51025f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe61], 0
je 0x51025f
push 0
push 0x510c18
mov eax, dword [0x541b78]
push dword [eax + 8]
push 0x510c40
push 0x510c90
push 0x510ca0
push 0x510cac
push 0x510cb8
mov eax, dword [0x541b78]
push dword [eax]
push 0x510d1c
lea eax, [ebp - 0x2c]
mov edx, 9
call fcn.0040405c
mov eax, dword [ebp - 0x2c]
mov cx, word [0x510d24]
xor edx, edx
call fcn.004b93a4
sub ax, 2
je 0x51023b
sub ax, 5
jne 0x51025f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
xor edx, edx
call fcn.004cec38
jmp 0x51025f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x510ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x510ab4
mov eax, dword [0x541ef4]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00434dfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + 0x138]
mov edx, 6
call fcn.0047b2d8
push eax
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 8]
mov edx, 0x510d30
call fcn.00403fe8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.0047a964
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdcb], 0
je 0x51069c
mov eax, dword [ebp - 8]
call fcn.00408e88
test al, al
je 0x51069c
mov byte [ebp - 0x25], 1
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.00409140
lea eax, [ebp - 0x2c]
mov edx, 0x510d44
call fcn.00403fa4
mov eax, dword [ebp - 0x2c]
call fcn.00404160
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 2
jb 0x51032d
je 0x51030d
sub eax, 2
je 0x51031d
dec eax
sub eax, 2
jb 0x51032d
jmp 0x510331
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe55]
xor al, 1
mov byte [ebp - 0x25], al
jmp 0x510331
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe56]
xor al, 1
mov byte [ebp - 0x25], al
jmp 0x510331
mov byte [ebp - 0x25], 0
cmp byte [ebp - 0x25], 0
je 0x5106a4
mov dword [ebp - 0xc], 0xfffffffe
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdcd], 0
je 0x5103a3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdcd]
call fcn.0045af3c
test al, al
jne 0x5103a3
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdcd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x510d50
call fcn.00409cb0
mov eax, dword [ebp - 0x2c]
mov cx, word [0x510dc0]
xor edx, edx
call fcn.004b93a4
mov eax, dword [ebp - 4]
add eax, 0xdcd
call fcn.00403d20
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdcc], 0
je 0x51040e
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdcd], 0
jne 0x5103d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xdd1]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00403fe8
jmp 0x51046d
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdcd]
call fcn.0047cc50
push dword [ebp - 0x2c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004091d4
push dword [ebp - 0x38]
mov eax, dword [ebp - 4]
push dword [eax + 0xdd1]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040405c
jmp 0x51046d
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdcd], 0
jne 0x510430
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xdd1]
mov eax, dword [ebp - 8]
call fcn.00409078
jmp 0x51046d
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdcd]
call fcn.0047cc50
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.004091d4
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00403fa4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xdd1]
call fcn.00409078
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdd5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10ec]
cmp byte [edx + 0xcc], 0
je 0x51048d
mov eax, 1
cmp eax, 1
jle 0x5105e4
mov ebx, eax
dec ebx
cmp ebx, 2
jl 0x51057d
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x510dcc
call fcn.00409cb0
mov eax, dword [ebp - 0x20]
call fcn.00408e88
test al, al
je 0x510573
mov eax, dword [0x541aac]
cmp byte [eax], 0
je 0x510528
push 3
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea eax, [ebx + 1]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x510dcc
call fcn.00409cb0
mov eax, dword [ebp - 0x2c]
call fcn.00404160
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404160
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x510573
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xb
lea eax, [ebx + 1]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x510dcc
call fcn.00409cb0
mov eax, dword [ebp - 0x2c]
call fcn.00404160
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404160
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0x20]
call fcn.00408fe0
dec ebx
cmp ebx, 1
jne 0x5104a2
mov eax, dword [ebp - 0x1c]
call fcn.00408e88
test al, al
je 0x5105e4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x510ddc
call fcn.00409cb0
mov eax, dword [0x541aac]
cmp byte [eax], 0
je 0x5105cb
push 3
mov eax, dword [ebp - 0x20]
call fcn.00404160
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404160
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5105e4
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404160
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404160
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x541aac]
cmp byte [eax], 0
je 0x51060b
push 3
mov eax, dword [ebp - 0x1c]
call fcn.00404160
push eax
mov eax, dword [ebp - 8]
call fcn.00404160
push eax
call sub.kernel32.dll_MoveFileExA
mov ebx, eax
jmp 0x510632
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404160
push eax
mov eax, dword [ebp - 8]
call fcn.00404160
push eax
call sub.kernel32.dll_CopyFileA
mov ebx, eax
test ebx, ebx
je 0x510632
mov eax, dword [ebp - 8]
call fcn.00408fe0
test ebx, ebx
jne 0x5106a4
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov byte [ebp - 0x25], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.0040b5d0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x510de8
call fcn.00409cb0
mov eax, dword [ebp - 0x2c]
mov cx, word [0x510e48]
xor edx, edx
call fcn.00446664
cmp eax, 6
je 0x5106a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403818
jmp 0x510ab4
lea eax, [ebp - 0x1c]
call fcn.00403d20
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdcb], 0
je 0x5106bc
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdd9], 0
jne 0x5106c0
xor eax, eax
jmp 0x5106c2
mov al, 1
mov edx, dword [0x541e68]
mov byte [edx], al
mov eax, dword [0x541f2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xdd1]
call fcn.00403d74
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xdcc]
mov edx, dword [0x541b2c]
mov byte [edx], al
mov eax, dword [0x541bd4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xdcd]
call fcn.00403d74
xor edx, edx
push ebp
push 0x510765
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
call fcn.004ce98c
mov ebx, eax
test ebx, ebx
jle 0x51075b
mov esi, 1
mov edx, esi
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc0]
call fcn.004ce5d8
cmp byte [eax + 0x63], 1
jne 0x510757
push 0
mov edx, dword [eax + 0xb4]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00511624
inc esi
dec ebx
jne 0x510728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51076f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov edx, dword [ebp - 8]
call fcn.004d1d30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov edx, dword [ebp - 8]
call fcn.004d0150
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5107c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + 0x138]
mov edx, 6
call fcn.0047b2d8
mov edx, 0x510e54
call fcn.0047a964
jmp 0x5108a6
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x510e6c
call fcn.00409cb0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
mov eax, dword [eax + 0x138]
mov edx, 6
call fcn.0047b2d8
pop edx
call fcn.0047a964
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004091d4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x48]
mov ecx, 1
mov eax, 0x510e94
call fcn.00409cb0
cmp byte [ebp - 0x25], 0
je 0x510870
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.004091d4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x510ee8
call fcn.00409cb0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00403fa4
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdc4], 0
je 0x510893
mov eax, dword [ebp - 4]
mov byte [eax + 0xdc4], 0
lea eax, [ebp - 0x10]
mov edx, 0x510f30
call fcn.00403fa4
push 0
mov cx, word [0x510dc0]
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00446664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510935
xor eax, eax
push ebp
push 0x5109ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdf5], 0
jne 0x5109e0
mov eax, dword [ebp - 4]
lea edx, [eax + 0x1070]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.004b8f64
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10ec]
mov eax, dword [eax + 0xc]
call fcn.0040910c
mov eax, dword [ebp - 0x24]
call fcn.00403f9c
dec eax
jle 0x5109b5
mov eax, dword [ebp - 0x24]
call fcn.00403f9c
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax - 1], 0x5c
jne 0x5109b5
mov eax, dword [ebp - 0x24]
call fcn.00403f9c
mov edx, eax
lea eax, [ebp - 0x24]
mov ecx, 1
call fcn.004041e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
mov edx, dword [ebp - 0x24]
call fcn.00495914
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0xdf5]
xor dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x49c]
call fcn.00495814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510a35
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510a70
mov eax, dword [0x541ef4]
mov eax, dword [eax]
xor edx, edx
call fcn.00434dfc
mov eax, dword [ebp - 4]
mov byte [eax + 0x106c], 0
mov dl, byte [0x51101c]
mov eax, dword [ebp - 4]
call fcn.0050cc6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510aee
lea eax, [ebp - 0x38]
call fcn.00403d20
lea eax, [ebp - 0x2c]
call fcn.00403d20
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00403d44
lea eax, [ebp - 8]
call fcn.00403d20
ret