Function at 0x413640
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569a40
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5d4050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
push 0x5afb08
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402bf0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp + 0x24]
lea ecx, [ebp - 0x40]
call fcn.00414990
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4136e7
cmp dword [ebp - 0x14], 0x10
jb 0x4136cc
push dword [ebp - 0x28]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004028b0
cmp dword [ebp - 0x2c], 0x10
jb 0x4136f8
push dword [ebp - 0x40]
call fcn.00421c08
add esp, 4
push 1
push ecx
push 0x5b0ba8
lea ecx, [ebp + 0xc]
call fcn.00402e20
cmp eax, 0xffffffff
je 0x4137ca
sub esp, 0x18
lea esi, [eax + 1]
mov ecx, esp
lea eax, [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402ac0
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.00417df0
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x413750
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00417af0
push eax
lea edx, [ebp + 0x24]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00414c30
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4137a2
cmp dword [ebp - 0x14], 0x10
jb 0x413787
push dword [ebp - 0x28]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004028b0
cmp dword [ebp - 0x5c], 0x10
jb 0x4137b3
push dword [ebp - 0x70]
call fcn.00421c08
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jmp 0x41388f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4138c3
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x58]
call fcn.00410ff0
mov esi, eax
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x413824
cmp dword [ebp + 0x20], 0x10
jb 0x413809
push dword [ebp + 0xc]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
call fcn.004028b0
cmp dword [ebp - 0x44], 0x10
jb 0x413835
push dword [ebp - 0x58]
call fcn.00421c08
add esp, 4
lea eax, [ebp + 0xc]
push eax
lea edx, [ebp + 0x24]
lea ecx, [ebp - 0x58]
call fcn.00414990
push str.AsusSetup.ini
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00403ac0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x41388f
cmp dword [ebp - 0x14], 0x10
jb 0x413874
push dword [ebp - 0x28]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004028b0
cmp dword [ebp - 0x2c], 0x10
jb 0x4138a0
push dword [ebp - 0x40]
call fcn.00421c08
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
jb 0x4138c3
push dword [ebp - 0x58]
call fcn.00421c08
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402480
cmp dword [ebp - 0x14], 0x10
jb 0x4138df
push dword [ebp - 0x28]
call fcn.00421c08
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x413902
push dword [ebp + 0xc]
call fcn.00421c08
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
jb 0x413925
push dword [ebp + 0x24]
call fcn.00421c08
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret 0x34