Function at 0x4049c0
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40], ax
mov dword [ebp - 0x68], 0x7cd
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dl, byte [ebp + 8]
mov byte [ebp - 0x1d], dl
lea eax, [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov cl, byte [section..data]
mov byte [ebp - 0x61], cl
mov dword [ebp - 0x9c], 0x67f4
movzx edx, word [ebp + 0xc]
add edx, 0x3be
movzx eax, word [ebp - 0x40]
cmp edx, eax
jg 0x404a88
mov ecx, dword [ebp - 0x9c]
sub ecx, 0x55ee
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x44]
push edx
call sub.WINSPOOL.DRV_FindClosePrinterChangeNotification
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x68]
and eax, 0x3201
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
movzx edx, word [ebp + 0x14]
push edx
movzx eax, byte [ebp - 0x61]
push eax
movzx ecx, word [ebp - 0x40]
push ecx
movzx edx, byte [ebp - 0x1d]
push edx
call fcn.004049c0
add esp, 0x10
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
movzx edx, byte [ebp - 0x61]
push edx
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call fcn.004051f0
mov ecx, dword [ebp - 0x68]
shl ecx, 0x11
mov edx, dword [ebp - 0x48]
mov dword [edx], ecx
lea eax, [ebp - 0x61]
mov dword [ebp - 0x60], eax
movzx ecx, word [ebp - 0x40]
or ecx, 0xd66
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jne 0x404afd
movzx eax, byte [ebp + 8]
sar eax, 6
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x60]
movsx edx, byte [ecx]
movsx eax, byte [section..data]
sub edx, eax
mov byte [ebp - 0x61], dl
mov ecx, dword [ebp - 0x68]
add ecx, 0x4bfc
mov edx, dword [ebp - 0x48]
cmp ecx, dword [edx]
jae 0x404aeb
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
movzx eax, word [ebp - 0x40]
push eax
movzx ecx, byte [ebp - 0x61]
push ecx
call fcn.00405680
add esp, 0x10
jmp 0x404afb
movsx edx, byte [section..data]
movsx eax, byte [ebp + 0x10]
and edx, eax
mov byte [ebp - 0x61], dl
jmp 0x404b5f
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
sub eax, 0x8e9c
cmp eax, dword [ebp - 0x68]
jb 0x404b51
mov cl, byte [ebp - 0x1d]
mov byte [ebp - 0x2a], cl
mov dx, word [ebp + 0x14]
mov word [ebp - 0x4c], dx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov dword [ebp - 0xa8], edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x54], eax
jmp 0x404b5f
mov eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
movzx edx, word [ebp - 0x40]
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
je 0x404b8f
cmp dword [ebp - 0xac], 0x5d
je 0x404b80
jmp 0x404e13
movzx eax, byte [ebp - 0x61]
push eax
call fcn.00404e30
jmp 0x404e13
mov eax, dword [ebp - 0x9c]
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x60]
mov dl, byte [ecx]
mov byte [ebp - 0xb0], dl
cmp byte [ebp - 0xb0], 0xe4
je 0x404bb8
jmp 0x404d66
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x61]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x50], edx
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x9d], al
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x9c]
add ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov cl, byte [ebp + 8]
mov byte [ebp - 0x29], cl
lea edx, [ebp - 0x40]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
imul ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
and edx, dword [ebp - 0xa8]
cmp ecx, edx
jb 0x404cfb
lea eax, [ebp - 0x29]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x61]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x2a]
xor eax, ecx
movzx edx, byte [ebp + 8]
movzx ecx, byte [ebp - 0x9d]
or edx, ecx
cmp eax, edx
jl 0x404c75
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 8], ax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
and edx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edx
jmp 0x404c8d
movzx eax, word [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x5c]
movzx edx, byte [ecx]
push edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
push ecx
call fcn.00404060
movsx edx, word [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax]
add edx, ecx
movsx eax, word [ebp - 8]
movsx ecx, word [ebp + 0x14]
sub eax, ecx
cmp edx, eax
jne 0x404ce9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x58], eax
mov dx, word [ebp + 0xc]
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x5c]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 0x29]
sub ecx, edx
mov byte [ebp - 0x9d], cl
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xa4]
imul edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], edx
jmp 0x404cfb
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov cl, byte [ebp - 0x61]
mov byte [ebp + 0x10], cl
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx]
movzx eax, word [ebp + 0xc]
sub edx, eax
mov ecx, dword [ebp - 0x50]
mov word [ecx], dx
mov dl, byte [ebp - 0x2a]
mov byte [ebp + 8], dl
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0x884
je 0x404d4a
jmp 0x404d5a
movzx ecx, word [ebp - 0x40]
movzx edx, word [ebp + 0xc]
add ecx, edx
mov eax, dword [ebp - 0x50]
mov word [eax], cx
movzx ecx, byte [ebp + 0x10]
push ecx
call fcn.00404e30
jmp 0x404da7
movsx edx, byte [ebp - 0x61]
movsx eax, byte [section..data]
add edx, eax
mov ecx, dword [ebp - 0x60]
mov byte [ecx], dl
movzx edx, word [ebp + 0xc]
sub edx, 0xd50
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x404da7
movzx ecx, byte [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
push eax
movzx ecx, word [ebp - 0x40]
push ecx
movzx edx, byte [ebp - 0x61]
push edx
call fcn.00405680
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x68]
xor ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0xb8], edx
cmp dword [ebp - 0xb8], 0xf1b0
je 0x404dcc
jmp 0x404ddb
movzx eax, word [ebp + 0xc]
or eax, 0xda8
mov word [ebp - 0x40], ax
jmp 0x404e02
movzx edx, byte [ebp - 0x2a]
movzx ecx, byte [ebp + 8]
sar edx, cl
mov byte [ebp - 0x1d], dl
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xa8]
and ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x74]
push edx
call sub.WINSPOOL.DRV_AbortPrinter
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
movsx edx, byte [eax]
movsx ecx, byte [ebp - 0x61]
shl edx, cl
mov eax, dword [ebp - 0x60]
mov byte [eax], dl
movzx ecx, byte [ebp - 0x1d]
movzx edx, byte [ebp + 8]
sub ecx, edx
mov byte [ebp - 0x2a], cl
movsx eax, byte [section..data]
mov esp, ebp
pop ebp
ret