Function at 0x40a3b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x22c
mov dword [ebp - 0x238], edx
mov edi, ecx
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
call fcn.0040c661
add esp, 4
mov esi, eax
lea eax, [eax + 2]
push 0x208
push 0
push eax
call fcn.0040ebd0
add esp, 0xc
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], 0
mov word [esi], 0
mov ecx, ebx
push dword [edi + 4]
call fcn.0040c510
call fcn.00412d7e
mov dword [eax], 0
push ebx
call fcn.0040c570
add esp, 4
test eax, eax
je 0x40a675
mov esi, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], edi
jmp 0x40a470
cmp dword [ebp - 0x22c], 0
mov edx, dword [ebp - 0x238]
js 0x40a542
mov dword [ebp - 0x22c], eax
jmp 0x40a542
push 0x42bff0
push esi
call fcn.00415740
add esp, 8
test eax, eax
je 0x40a660
push 0x42bfee
push esi
call fcn.00415740
add esp, 8
test eax, eax
je 0x40a660
push esi
push dword [edi + 4]
push 0x42bb56
push 0x105
lea eax, [ebp - 0x228]
push eax
call fcn.0040a730
add esp, 0x14
cmp dword [ebp - 0x228], 0
je 0x40a55f
push 0
mov eax, dword [ebp + 8]
push dword [eax + 0x74]
push 0
push 0
push 4
push 1
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ebx, eax
test eax, eax
jle 0x40a4f1
movzx ebx, bx
or ebx, 0x80070000
cmp dword [ebp - 0x22c], 0
js 0x40a500
mov dword [ebp - 0x22c], ebx
push esi
push dword [edi + 4]
push 0x42bb56
push 0x105
lea eax, [ebp - 0x228]
push eax
call fcn.0040a730
add esp, 0x14
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x40a57b
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test eax, 0x400
jne 0x40a590
mov edx, dword [ebp - 0x238]
mov eax, esi
and eax, 0x10
test ebx, ebx
js 0x40a5b4
cmp esi, 0xffffffff
je 0x40a5b4
test eax, eax
je 0x40a5b4
mov edi, dword [ebp - 0x230]
jmp 0x40a612
cmp dword [ebp - 0x22c], 0
js 0x40a660
mov dword [ebp - 0x22c], 0x8007006f
jmp 0x40a660
cmp dword [ebp - 0x22c], 0
js 0x40a5a3
mov dword [ebp - 0x22c], 0x8007006f
jmp 0x40a5a3
lea ecx, [ebp - 0x228]
call fcn.0040a7d0
test eax, eax
js 0x40a445
mov edi, dword [ebp - 0x230]
lea ebx, [ebp - 0x220]
jmp 0x40a660
mov ecx, edx
mov ebx, edx
lea edx, [ebp - 0x228]
mov dword [ebp - 0x234], eax
call fcn.0040a8a0
test al, al
je 0x40a604
mov eax, dword [ebx + 4]
movzx eax, word [eax + edi*2]
cmp eax, 0x5c
je 0x40a5de
test ax, ax
jne 0x40a604
lea ecx, [ebp - 0x228]
call fcn.0040a290
test eax, eax
jns 0x40a5a3
cmp dword [ebp - 0x22c], 0
js 0x40a5fc
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x238]
jmp 0x40a606
mov edx, ebx
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
lea ebx, [ebp - 0x220]
test esi, 0x400
jne 0x40a649
cmp esi, 0xffffffff
je 0x40a649
test eax, eax
je 0x40a649
lea ecx, [ebp - 0x228]
push dword [ebp + 8]
call fcn.0040a3b0
add esp, 4
cmp dword [ebp - 0x22c], 0
js 0x40a649
mov dword [ebp - 0x22c], eax
call fcn.00412d7e
mov dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
call fcn.0040c570
add esp, 4
mov esi, eax
test eax, eax
jne 0x40a470
jmp 0x40a67f
mov dword [ebp - 0x22c], 0
call fcn.00412d7e
cmp dword [eax], 0
mov eax, dword [ebp - 0x22c]
mov esi, 0x80004005
cmove esi, eax
test eax, eax
cmovs esi, eax
mov eax, dword [ebp - 0x220]
cmp eax, 0xffffffff
je 0x40a6ac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x224], 0
test eax, eax
jne 0x40a6d7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ce4a
mov eax, esi
add esp, 0x22c
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.0040c66a
add esp, 4
jmp 0x40a6c0