Function at 0x10046a9e
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, 0x10065628
call fcn.10064358
sub esp, 0xe8
mov dword [ebp - 0x18], 0xb0f73838
mov eax, 0x3aa9ac70
mov dword [ebp - 0x5c], eax
push ebx
mov dword [ebp - 0x58], eax
xor ebx, ebx
mov dword [ebp - 0x54], eax
push esi
mov dword [ebp - 0x50], eax
mov esi, ecx
push edi
mov dword [ebp - 0x28], 5
mov edi, edx
mov dword [ebp - 0x34], 0xc995f762
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x1c], ebx
jmp 0x10046afc
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xcc], 0xfffffff7
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10046aeb
cmp dword [ebp - 0x18], ebx
je 0x10046b1f
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], bl
je 0x10046c2b
push ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x10046c2b
mov dword [ebp - 0x24], 0xecf7921e
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x34], 0x5de1fc65
push 1
call fcn.1001aa9f
push 1
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], ebx
call fcn.1001aa9f
xor edx, edx
inc edx
mov byte [ebp - 4], dl
mov dword [ebp - 0x18], ebx
jmp 0x10046b68
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xa4]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10046b55
mov dword [ebp - 0x18], ebx
jmp 0x10046b81
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], edx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edx
jl 0x10046b72
mov dword [ebp - 0x18], 3
cmp dword [ebp - 0x18], ebx
jl 0x10046c01
mov dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0xc0]
push 3
call fcn.1001aa9f
mov dword [ebp - 0x1c], ebx
jmp 0x10046bbb
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc0]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10046bab
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp + eax*4 - 0x5c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x5c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x28], 0xffffffff
inc dword [eax]
call fcn.1001ab21
dec dword [ebp - 0x18]
jns 0x10046b92
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x10046c11
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x8c]
call fcn.1001ab21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.1001ab21
mov dword [ebp - 0x18], 0xb
jmp 0x10046c4b
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x10046c48
push 0xd8c
call dword [sym.imp.USER32.dll_SetCapture]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1b
jl 0x10046c34
mov dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x40], 0x414b58e1
push 2
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x34], edi
pop edi
mov dword [ebp - 0x40], 0x85e0710
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x40], 0xf4f23013
push edi
mov dword [ebp - 0x48], esi
call fcn.1001aa9f
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x4c], 0x2811ffbe
inc edx
mov dword [ebp - 0x1c], 0x905f
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], ebx
jmp 0x10046cb7
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x80], 0x8bbca631
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10046ca9
mov dword [ebp - 0x18], ebx
jmp 0x10046ccd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x78]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x10046cc1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], ebx
jl 0x10046d8d
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x38], 0x7ee39f3f
mov dword [ebp - 0x28], 0x9a130dfd
mov dword [ebp - 0x2c], 0x7790
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], ebx
jl 0x10046d81
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], 0xffffffff
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
cmp eax, ecx
jne 0x10046d45
mov ecx, dword [ebp - 0x24]
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp ecx, 0xfffffffb
setne al
cmp dword [ebp - 0x1c], eax
jl 0x10046d45
mov edx, ebx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 1
mov esi, dword [ebp + eax*4 - 0x80]
mov eax, dword [ebp - 0x38]
cmp edx, eax
sete cl
xor edx, edx
cmp esi, ecx
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x64]
setle dl
add ecx, edx
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x28]
sete dl
xor ecx, ecx
cmp edx, eax
pop edx
setle cl
mov dword [ebp - 0x28], ecx
dec dword [ebp - 0x1c]
jns 0x10046d05
dec dword [ebp - 0x18]
jns 0x10046cde
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x4c]
neg ecx
sbb ecx, ecx
xor eax, eax
neg ecx
cmp ecx, 0x99ff
setg al
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
mov eax, dword [ebp - 0x78]
setns cl
cmp ecx, dword [eax + 4]
je 0x10046ddb
cmp dword [ebp - 0x40], ebx
je 0x10046ddb
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x34], 0x54eb856a
mov dword [ebp - 0x28], 0x20a048c8
dec dword [ebp - 0x28]
jmp 0x10046edc
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], edx
jg 0x10046ed9
mov dword [ebp - 0x24], 0x9f6
cmp dword [ebp - 0x24], 0xbac
jle 0x10046e57
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], 0x53ca
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x28], 0x84d
mov ebx, dword [ebp - 0x2c]
mov ecx, esi
mov eax, ebx
sar eax, cl
mov ecx, 0x1060def8
cdq
push edx
push eax
call fcn.1001a86e
add esi, edi
dec dword [ebp - 0x28]
jne 0x10046e14
inc edi
push 0
pop ebx
cmp edi, 0x2d1d
jl 0x10046e08
dec dword [ebp - 0x2c]
dec dword [ebp - 0x38]
jne 0x10046e06
mov esi, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, 0x4782
jl 0x10046dfc
xor edx, edx
push 2
inc edx
pop edi
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], ebx
jl 0x10046e7b
mov dword [ebp - 0x30], ebx
jmp 0x10046e71
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x78]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], edx
jle 0x10046e64
dec dword [ebp - 0x18]
jns 0x10046e5f
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0x703
jge 0x10046ec7
mov edx, 0x1000b728
mov ecx, 0x1060def8
call fcn.1001cd79
jmp 0x10046ec4
xor edx, edx
inc edx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x80]
inc dword [ebp - 0x1c]
jmp 0x10046dde
mov esi, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.1001ab21
mov dword [esi], ebx
cmp dword [esi], 4
jge 0x10047162
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], 0xc0e3e763
mov dword [ebp - 0x24], 0x4e58
cmp dword [ebp - 0x24], 0x5175
jle 0x10046f90
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov eax, esi
cdq
idiv dword [ebp - 0x2c]
mov eax, ecx
add edx, edi
mov ecx, edx
shl eax, cl
lea ecx, [ebp - 0xf0]
cdq
push edx
push eax
call fcn.1000d25a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10046f46
mov eax, dword [eax]
push eax
call fcn.1004f3d6
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xf0]
call fcn.1001aeef
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x35b7
jl 0x10046f20
inc esi
cmp esi, 0x1ca4
jl 0x10046f1d
inc edi
cmp edi, 0x68a1
jl 0x10046f1b
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x6aa0
jl 0x10046f19
mov esi, dword [ebp - 0x3c]
push 2
pop edi
push 3
lea ecx, [ebp - 0x98]
call fcn.1001aa9f
cmp dword [ebp - 0x24], 0x4d8c
jge 0x10046fb1
push 0x1000b7b8
call fcn.1004f3d6
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x377d6446
mov dword [ebp - 0x24], 0x7504ed09
mov dword [ebp - 0x34], 0x76c56d20
mov dword [ebp - 0x24], 0xa5659cde
mov dword [ebp - 0x24], 0xd786ff52
mov dword [ebp - 0x38], 0x60a2fc53
mov dword [ebp - 0x24], 0x65e1
mov dword [ebp - 0x1c], ebx
jmp 0x10046ffe
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], 0x28ca
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10046feb
mov eax, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x18]
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setne dl
sub eax, edx
xor edx, edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setle dl
xor ecx, ecx
cmp edx, eax
setge cl
xor edx, edx
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
imul ecx, ecx, 0x661f
cmp eax, ecx
mov eax, 0x9fa8bc07
setl dl
cmp eax, edx
sbb eax, eax
inc eax
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x18]
jge 0x10047072
mov byte [ebp - 0x1d], bl
cmp byte [ebp - 0x1d], 0
je 0x100470d3
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x100470d3
mov dword [ebp - 0x34], 1
mov eax, 0x62a4b15
mov dword [ebp - 0x34], 0x78d7cbae
mov dword [ebp - 0x34], 0xfffffffa
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x1c], ebx
jl 0x100470d3
mov dword [ebp - 0x30], ebx
jmp 0x100470c2
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xd8], 0x4f77722a
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 3
jl 0x100470b1
dec dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
dec dword [ebp - 0x1c]
jns 0x100470ac
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x38], ebx
je 0x10047128
mov dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 0x2c]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x28]
setl dl
sub edx, 9
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
sete cl
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 8]
sub ecx, eax
je 0x10047128
xor eax, eax
inc eax
jmp 0x1004712a
mov eax, ebx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.1001ab21
mov eax, dword [ebp - 0x44]
mov ecx, dword [esi]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xe64f
inc dword [esi]
jmp 0x10046eea
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret