Function at 0x40209a
Capabilities:
Copy file
Get disk information

Disassembly:
push 0xac
mov eax, 0x5184eb
call fcn.004f7cab
mov esi, edx
add dword [esi], 0xffffff9b
lea eax, [ebp - 0x84]
mov edi, ecx
push eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xffffffffffffffeb
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea eax, [ebp - 0x74]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
or dword [ebp - 4], 0xffffffff
push dword [esi]
call fcn.004036f3
mov dword [ebp - 0xb4], eax
pop ecx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0xfffffffffffffff0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
push 0x33
push 0x4f
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 1
push str.._Y
push 0x5448d0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [esi]
mov eax, dword [edi]
mov esi, dword [ebp - 0xb4]
add eax, 0x65
push eax
push esi
call fcn.004fb600
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push dword [edi]
call fcn.004036fe
pop ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x102d
push 0x6b
call ebx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x210
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [edi], esi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [edi]
and dword [ebp - 0x38], 0
push 0xc
add ecx, 0x250
pop eax
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00401092
lea eax, [ebp - 0x74]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [ebp - 4], 0xa
mov ecx, dword [edi]
and dword [ebp - 0x54], 0
push 0x20
pop eax
lea ecx, [ecx + 0x3903]
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00401092
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov edi, esi
mov dword [ebp - 4], 0xd
call fcn.004013f4
pop ecx
pop ecx
xor esi, esi
push esi
push 0x35
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x94]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push 0x135f
call ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xac]
cmp dword [ecx], esi
jbe 0x4022f9
cmp esi, 0x250
jb 0x4022c3
cmp esi, 0x25c
jb 0x4022f4
cmp esi, 0x3903
jb 0x4022d3
cmp esi, 0x3923
jb 0x4022f4
cmp dword [ebp - 0x18], 0x10
mov ebx, dword [ebp - 0x2c]
jae 0x4022df
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0xb0]
mov edi, dword [eax]
xor edx, edx
mov eax, esi
div dword [ebp - 0x1c]
mov al, byte [edx + ebx]
xor byte [edi + esi], al
inc esi
cmp esi, dword [ecx]
jb 0x4022b3
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.004010fb
push 1
lea esi, [ebp - 0x64]
call fcn.004010fb
push 1
lea esi, [ebp - 0x48]
call fcn.004010fb
call fcn.004f7d2e
ret