Function at 0x421610
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496406
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4b3d28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
call fcn.00421ba0
push 0x1bbc
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42166e
mov ecx, eax
call fcn.004341c0
jmp 0x421670
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bbc], eax
call fcn.00434ce0
push 0x22ec
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4216aa
mov ecx, eax
call fcn.00449d40
jmp 0x4216ac
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bec], eax
call fcn.0044ab20
push 0x2b4
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4216e6
mov ecx, eax
call fcn.0040a670
jmp 0x4216e8
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4be0], eax
call fcn.0040ab00
push 0x258
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x421722
mov ecx, eax
call fcn.00412760
jmp 0x421724
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bd4], eax
call fcn.00412bc0
push 1
mov ecx, esi
call fcn.00421ba0
push 0x38c
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x421767
mov ecx, eax
call fcn.00448d70
jmp 0x421769
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bd0], eax
call fcn.00448f80
push 0x448
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4217a3
mov ecx, eax
call fcn.0042c560
jmp 0x4217a5
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bc0], eax
call fcn.0042ca30
push 0x2e4
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4217df
mov ecx, eax
call fcn.0040c1f0
jmp 0x4217e1
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4be8], eax
call fcn.0040c620
push 0x284
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x42181b
mov ecx, eax
call fcn.0040dfc0
jmp 0x42181d
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bcc], eax
call fcn.0040eed0
push 0x1344
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x421857
mov ecx, eax
call fcn.00414600
jmp 0x421859
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bb8], eax
call fcn.00414740
push 0x6b4
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x421893
mov ecx, eax
call fcn.00405970
jmp 0x421895
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4cf8], eax
call fcn.004087b0
push 0x6c4
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4218cf
mov ecx, eax
call fcn.00436660
jmp 0x4218d1
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4be4], eax
call fcn.00437980
push 1
mov ecx, esi
call fcn.00421ba0
push 0x2ac
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x421914
mov ecx, eax
call fcn.0040d630
jmp 0x421916
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bd8], eax
call fcn.0040d7f0
push 0x62bd0
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x421950
mov ecx, eax
call fcn.00440ee0
jmp 0x421952
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bc4], eax
call fcn.00441990
push 0x16b74
call fcn.0044f998
add esp, 4
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x42198c
mov ecx, eax
call fcn.004247f0
jmp 0x42198e
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b4bdc], eax
call fcn.00428290
push 0x4994c0
push 0
push 0
push 0
push 0
push 0x81
push 0
push 0
push 0
push 0x320
push 0
push 0
push 0
push 0x19
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x20], eax
or ebx, 0xffffffff
xor eax, eax
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe4], eax
xor esi, esi
mov eax, dword [sym.imp.KERNEL32.dll_OpenFile]
nop word [eax + eax]
mov byte [ebp - 0xdc], 0x88
lea ecx, [ebp - 0xdc]
push 0
push ecx
test esi, esi
jne 0x421a0b
push str.CodeDSv_01.sv
jmp 0x421a10
push str.CodeDSv_02.sv
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x421a9d
lea eax, [ebp - 0xec]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x42]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x3e]
push edi
add ecx, eax
movzx eax, word [ebp - 0x3c]
imul ecx, ecx, 0x64
add ecx, eax
movzx eax, word [ebp - 0x3a]
imul ecx, ecx, 0x64
add ecx, eax
movzx eax, word [ebp - 0x38]
imul ebx, ecx, 0x64
add ebx, eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp ebx, dword [ebp - 0xe4]
jle 0x421a97
mov dword [ebp - 0xe4], ebx
mov ebx, esi
mov dword [ebp - 0xe0], ebx
jmp 0x421a9d
mov ebx, dword [ebp - 0xe0]
mov eax, dword [sym.imp.KERNEL32.dll_OpenFile]
inc esi
cmp esi, 2
jl 0x4219f0
test ebx, ebx
js 0x421ad8
mov ecx, dword [0x4b4bbc]
push ebx
call fcn.00434e60
test al, al
jne 0x421ae5
mov ecx, dword [0x4b4bbc]
test ebx, ebx
jne 0x421acd
push ebx
jmp 0x421acf
push 1
call fcn.00434e60
test al, al
jne 0x421ae5
mov ecx, dword [0x4b4bbc]
push 0x64
call fcn.00436590
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor esi, esi
mov dword [ebp - 0x34], 0x4994e8
mov dword [ebp - 0x30], 0x4994ec
mov dword [ebp - 0x2c], 0x4994f0
mov dword [ebp - 0x28], 0x4994f4
mov dword [ebp - 0x24], 0x4994f8
mov dword [ebp - 0x20], 0x4994fc
mov dword [ebp - 0x1c], 0x499500
mov dword [ebp - 0x18], 0x499504
mov dword [ebp - 0x14], 0x499508
nop dword [eax]
push dword [ebp + esi*4 - 0x34]
call edi
inc esi
cmp esi, 9
jl 0x421b30
mov ecx, dword [0x4b4bcc]
call fcn.0040f170
mov ecx, dword [0x4b4bbc]
call fcn.00435400
mov ecx, dword [0x4b4bbc]
call fcn.00434350
push dword [0x4b6104]
call fcn.0045ab4a
add esp, 4
push 0
push 0
push 0x411
push dword [0x4b60d4]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f9e2
mov esp, ebp
pop ebp
ret