Function at 0x476ac1
Capabilities:
Accept command line arguments
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x186c
call fcn.004081c0
mov eax, dword [0x47d004]
xor eax, esp
mov dword [esp + 0x1868], eax
push ebx
push esi
xor esi, esi
push edi
xor eax, eax
cmp eax, 0x18a
jne 0x476aff
mov ecx, dword [0x47e7b0]
add ecx, 0x9e49
mov dword [0x48d3ac], ecx
cmp dword [0x48d3ac], 0x141
jne 0x476b1c
or dword [0x47f6c4], 0xffffffff
mov dword [0x47f6c0], 0xec58acac
inc eax
cmp eax, 0x1237750
jl 0x476ae6
xor edi, edi
cmp edi, 0x565415
jne 0x476b38
mov eax, dword [0x47dfe8]
mov dword [0x48d4dc], eax
cmp dword [0x48d3ac], 0x3c
jne 0x476b56
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
inc edi
cmp edi, 0x5f1e54
jl 0x476b26
cmp dword [0x48d3ac], 0x7c
jne 0x476c23
push esi
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
lea eax, [esp + 0x1074]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
lea eax, [esp + 0xc74]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
lea eax, [esp + 0x20]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
cmp dword [0x48d3ac], 0x54
jne 0x476c15
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call edi
push str.emuritowuwep
call edi
push esi
call fcn.00401302
push esi
call fcn.00401318
pop ecx
pop ecx
xor edi, edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCommMask]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetSystemTimes
cmp edi, 0x25932
jg 0x476c5a
inc edi
cmp edi, 0xead1d
jl 0x476c25
jmp 0x476c6e
cmp dword [0x48d3ac], 0xa
jne 0x476c6e
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
cmp dword [0x48d3ac], 0x2a
jne 0x476d23
push esi
push esi
push esi
mov dword [0x48d3a0], esi
mov dword [0x48d3a4], esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
lea eax, [esp + 0x1078]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
fld qword [0x47b580]
push 0x50
push ecx
push ecx
fstp qword [esp]
push 0x47b54c
push str._s__f__c
call fcn.00401427
push esi
call fcn.004011ca
mov ebx, 0x47b55c
push ebx
push str.0__f
mov edi, 0x47f638
push edi
call fcn.00401093
push esi
call fcn.004010ad
push esi
push esi
call fcn.0040113b
push ebx
push str._s__c
push edi
call fcn.00401427
push esi
call fcn.0040a774
add esp, 0x40
push esi
push esi
call fcn.0040113b
push esi
push esi
call fcn.00401294
push esi
push esi
call fcn.0040113b
push esi
call fcn.00401323
add esp, 0x1c
push dword [0x48d3ac]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x48d3ac]
xor edi, edi
mov dword [0x48d1f4], eax
cmp ecx, esi
jbe 0x476d68
mov edx, dword [0x48d4dc]
mov dl, byte [edx + edi + 0x9e49]
mov byte [eax + edi], dl
cmp ecx, 0x5ab
jne 0x476d63
mov dword [0x48d1f8], 0x19b0
inc edi
cmp edi, ecx
jb 0x476d41
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.004767a7
call fcn.00476789
call fcn.00476a2c
xor eax, eax
cmp eax, 0xd606b
jne 0x476d90
call fcn.0047677e
inc eax
cmp eax, 0x24e87d
jl 0x476d84
mov dword [0x48d1fc], 0x8e46a6f0
cmp esi, 0x408e
jle 0x476db4
cmp dword [esp + 0x50], 0xf5bed7
jne 0x476dbd
inc esi
cmp esi, 0x687ed2
jl 0x476da2
mov ecx, dword [esp + 0x1874]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401006
mov esp, ebp
pop ebp
ret