Function at 0x408760
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42e290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 1
call fcn.0041ea04
mov eax, dword [esi + 0x9f4]
xor edi, edi
test eax, eax
mov ebx, 2
jle 0x408811
lea ebp, [esi + 0x9ec]
mov eax, dword [0x43ab24]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
push edi
push ecx
mov ecx, ebp
mov byte [esp + 0x3c], bl
call fcn.00401720
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.0041e61b
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], bl
call fcn.0041e52e
lea ecx, [esp + 0x10]
call fcn.0041ea04
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call fcn.0041b7f3
cmp eax, 0xffffffff
mov byte [esp + 0x34], 1
lea ecx, [esp + 0x10]
jne 0x408837
call fcn.0041e52e
mov eax, dword [esi + 0x9f4]
inc edi
cmp edi, eax
jl 0x4087a6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0041e52e
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041e52e
mov eax, ebx
jmp 0x4089ec
call fcn.0041e52e
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x408877
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x40]
push eax
call fcn.0041e912
mov edx, dword [esi + 0x9e0]
lea ecx, [esi + 0x9d8]
push eax
push edx
call fcn.0041c400
jmp 0x408955
lea ecx, [esp + 0x14]
call fcn.0040a6b0
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x3c], 4
call fcn.0041e2a3
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.0040a6f0
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x3c], 5
call fcn.0041e2a3
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
call fcn.0040a6f0
push ecx
lea edx, [esp + 0x1c]
mov bl, 6
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x3c], bl
call fcn.0041e2a3
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x40], 7
call fcn.0041e2a3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040ab60
cmp eax, 1
jne 0x408977
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x40]
push eax
call fcn.0041e912
mov edx, dword [esi + 0x9e0]
lea ecx, [esi + 0x9d8]
push eax
push edx
call fcn.0041c400
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.0040a6e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0041e52e
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebp
call fcn.0041e52e
mov eax, 1
jmp 0x4089ec
cmp eax, ebp
jne 0x40897f
mov edi, ebp
jmp 0x4089a5
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
xor edi, edi
mov eax, dword [edx - 8]
push eax
call fcn.0041e912
mov edx, dword [esi + 0x9e0]
lea ecx, [esi + 0x9d8]
push eax
push edx
call fcn.0041c400
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0041e52e
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.0040a6e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0041e52e
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebp
call fcn.0041e52e
mov eax, edi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 8