Function at 0x20058ee
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0x4a
xor eax, eax
test ebx, ebx
pop ecx
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x150], 0x128
je 0x2005a90
cmp dword [ebp + 0x10], eax
je 0x2005a90
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x200592b
sub eax, edx
mov dword [ebp - 4], eax
je 0x2005a90
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsA]
test eax, eax
je 0x2005a8a
lea eax, [ebp - 0x12c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2005961
sub eax, edx
mov dword [ebp - 4], eax
je 0x2005a8a
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
je 0x200599e
lea eax, [ebp - 0x12c]
push 0x5c
push eax
call fcn.02006370
test eax, eax
pop ecx
pop ecx
je 0x200599e
and byte [eax], 0
mov edx, ebx
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x12c]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x20059ae
push 0x5c
push ebx
call fcn.0200558d
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x20059c5
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x20059d3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.02005569
test eax, eax
jne 0x2005c10
and byte [ebp - 0x560], al
push 0x40
pop ecx
lea edi, [ebp - 0x55f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
and byte [ebp - 0x254], 0
mov esi, 0x20021b4
lea edi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
and byte [ebp - 0x358], 0
xor eax, eax
push 0x38
pop ecx
lea edi, [ebp - 0x439]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
push 0x40
pop ecx
lea edi, [ebp - 0x253]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
test byte [0x200a1e6], 0x80
pop ecx
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0x104
stosb byte es:[edi], al
jne 0x2005a90
push 0x20019
push 2
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x2005a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
push 0x20021b0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.02004b65
test eax, eax
jne 0x2005ae3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x560]
push eax
push esi
push 0x20021a8
lea eax, [ebp - 0x1c]
push eax
call fcn.02004bb3
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x2005ad6
xor esi, esi
inc esi
jmp 0x2005ad8
call ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.02004a70
jmp 0x2005aeb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
lea eax, [ebp - 0x28]
push eax
call fcn.02004a70
test esi, esi
je 0x2005a90
lea eax, [ebp - 0x560]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2005b00
lea edi, [ebp - 0x45c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2005b10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x45c]
push eax
push 0x80000002
lea eax, [ebp - 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.02004b65
test eax, eax
jne 0x2005b7a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0x200219c
lea eax, [ebp - 0x10]
mov edi, 0x104
push eax
mov dword [ebp - 4], edi
call fcn.02004bb3
mov esi, eax
neg esi
lea eax, [ebp - 0x10]
sbb esi, esi
push eax
inc esi
call fcn.02004a70
test esi, esi
jne 0x2005b81
call ebx
jmp 0x2005a90
lea eax, [ebp - 0x254]
push 0x5c
push eax
call fcn.02006370
test eax, eax
pop ecx
pop ecx
je 0x2005b98
inc eax
jmp 0x2005b9e
lea eax, [ebp - 0x254]
push edi
lea ecx, [ebp - 0x358]
push ecx
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.02005665
test eax, eax
je 0x2005a90
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x358]
lea eax, [ebp - 0x358]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x2005bcc
mov eax, dword [ebp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2005bdb
mov edi, dword [ebp + 0x14]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x2005be8
push dword [ebp + 0x14]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.02005569
test eax, eax
je 0x2005a90
xor eax, eax
inc eax
jmp 0x2005a92