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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f49b
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x16c]
mov eax, dword [ebx + 0xc]
push edi
push eax
call fcn.00419c10
mov esi, eax
xor ebp, ebp
add esp, 8
cmp esi, ebp
je 0x409fb2
mov ecx, dword [esi]
test byte [ecx], 2
je 0x409c12
mov eax, 1
jmp 0x409fb4
push 0x80
mov dword [esp + 0x14], 0x421578
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x164], ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
test eax, eax
jl 0x409c86
push esi
lea ecx, [esp + 0x14]
call fcn.0040a1a0
mov edx, dword [esp + 0x18]
lea eax, [edx - 1]
test eax, eax
jle 0x409c7f
mov ecx, dword [esp + 0x14]
dec eax
test eax, eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 + 4], edx
jg 0x409c6f
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], esi
mov edx, dword [ebx + 0xc]
push edi
push 3
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
je 0x409cad
mov eax, dword [ebx + 0xc]
push edi
push eax
call fcn.00419c10
mov esi, eax
add esp, 8
test esi, esi
jne 0x409c50
mov cl, byte [0x426fec]
xor eax, eax
mov byte [esp + 0x58], cl
mov ecx, 0x40
lea edi, [esp + 0x59]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
stosw word es:[edi], ax
test ecx, ecx
stosb byte es:[edi], al
jle 0x409db0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp ebx, ecx
jge 0x409cec
test ebx, ebx
jl 0x409cec
mov edx, dword [esp + 0x14]
mov esi, dword [edx + ebx*4]
jmp 0x409cee
xor esi, esi
test byte [esi], 2
je 0x409d6d
mov eax, dword [esi + 0x70]
cmp eax, 0x16
je 0x409e1a
cmp eax, 0x15
je 0x409e6a
cmp eax, 0x14
jl 0x409da7
push 0
push 0
push 0
lea eax, [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x44]
lea edi, [esi + 0x3c]
push 0x28
push ecx
push edi
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x409eba
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x74]
cmp edx, eax
jne 0x409f0b
add esi, 0x5c
lea eax, [esp + 0x30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409f59
lea ecx, [esp + 0x58]
push edi
push ecx
jmp 0x409da1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x58]
push edx
call edi
test eax, eax
je 0x409d98
lea eax, [esp + 0x58]
push eax
call edi
cmp byte [esp + eax + 0x57], 0x5c
je 0x409d98
lea ecx, [esp + 0x58]
push 0x426068
push ecx
call ebp
add esi, 0x14
lea edx, [esp + 0x58]
push esi
push edx
call ebp
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, ecx
jl 0x409cdf
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
cmp eax, ecx
mov dword [esp + 0x164], ecx
je 0x409fa9
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x421578
test eax, eax
je 0x409e03
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x409e03
push esi
lea ecx, [esp + 0x14]
call fcn.0040a180
push eax
call fcn.0041e706
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x409de7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041e706
add esp, 4
mov eax, 1
jmp 0x409fb4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x421578
test eax, eax
je 0x409e55
xor esi, esi
test ecx, ecx
jle 0x409e55
cmp esi, ecx
jge 0x409e41
test esi, esi
jl 0x409e41
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x409e43
xor eax, eax
push eax
call fcn.0041e706
mov ecx, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, ecx
jl 0x409e34
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041e706
add esp, 4
or eax, 0xffffffff
jmp 0x409fb4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x421578
test eax, eax
je 0x409ea5
xor esi, esi
test ecx, ecx
jle 0x409ea5
cmp esi, ecx
jge 0x409e91
test esi, esi
jl 0x409e91
mov edx, dword [esp + 0x14]
mov eax, dword [edx + esi*4]
jmp 0x409e93
xor eax, eax
push eax
call fcn.0041e706
mov ecx, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, ecx
jl 0x409e84
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e706
add esp, 4
or eax, 0xffffffff
jmp 0x409fb4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x421578
test eax, eax
je 0x409ef9
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x409ef9
cmp esi, eax
jge 0x409ee5
test esi, esi
jl 0x409ee5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
jmp 0x409ee7
xor eax, eax
push eax
call fcn.0041e706
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x409ed8
mov edx, dword [esp + 0x14]
push edx
call fcn.0041e706
add esp, 4
jmp 0x409fb2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x421578
test eax, eax
je 0x409f4a
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x409f4a
cmp esi, eax
jge 0x409f36
test esi, esi
jl 0x409f36
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
jmp 0x409f38
xor eax, eax
push eax
call fcn.0041e706
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x409f29
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041e706
add esp, 4
jmp 0x409fb2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x164], 0xffffffff
test eax, eax
mov dword [esp + 0x10], 0x421578
je 0x409f9a
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x409f9a
push esi
lea ecx, [esp + 0x14]
call fcn.0040a180
push eax
call fcn.0041e706
mov eax, dword [esp + 0x1c]
add esp, 4
inc esi
cmp esi, eax
jl 0x409f7e
mov edx, dword [esp + 0x14]
push edx
call fcn.0041e706
add esp, 4
jmp 0x409fb2
lea ecx, [esp + 0x10]
call fcn.00414e80
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 4