Function at 0x406e90
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x419056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
call fcn.00416770
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], ebp
call fcn.00416770
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.00416770
mov eax, dword [esp + 0x74]
mov byte [esp + 0x6c], 2
mov ecx, dword [eax]
cmp byte [ecx], 0x2f
je 0x406f23
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004167e0
mov eax, 0x196
jmp 0x40744f
mov esi, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x2c]
mov edx, dword [esi]
mov dword [esp + 0x20], edx
call fcn.00416cf0
lea ecx, [esp + 0x28]
call fcn.00416d40
push 1
lea ecx, [esp + 0x2c]
call fcn.004171d0
mov edi, dword [esp + 0x78]
mov dword [esp + 0x24], eax
cmp edi, ebp
jne 0x406f61
lea eax, [esp + 0x40]
mov dword [esp + 0x78], eax
mov edi, eax
push 0x114
mov ecx, edi
call fcn.00416830
mov ecx, dword [edi]
mov byte [ecx], 0
mov edx, dword [ebx + 0x2dc]
mov ecx, dword [esp + 0x28]
mov dword [esi], edx
mov eax, dword [ebx + 0x2dc]
mov dword [esp + 0x18], eax
mov byte [ecx], 0x2f
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x406f98
mov eax, 0x41eae8
lea ebp, [eax + 1]
mov al, byte [eax + 1]
test al, al
jne 0x407042
push 0x41d4e8
mov ecx, edi
call fcn.00416c90
mov esi, dword [esi]
mov eax, dword [esp + 0x1c]
mov edx, esi
and edx, eax
test edx, 0x10e00
jne 0x406fed
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], 0xffffffff
jmp 0x407374
not esi
and esi, eax
mov byte [esp + 0x6c], 1
test esi, 0x1f7
lea ecx, [esp + 0x34]
je 0x407022
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], 0xffffffff
jmp 0x40741d
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], 0xffffffff
jmp 0x407444
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x407272
jmp 0x40705c
mov ebx, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0x28]
xor esi, esi
mov dword [esp + 0x74], edi
mov byte [ebp - 1], 0
call fcn.00416c50
test eax, eax
je 0x407098
push 0x41d4e8
lea ecx, [esp + 0x50]
call fcn.00416780
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x6c], 3
jmp 0x40709c
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00406cf0
mov ebx, eax
mov al, byte [esp + 0x10]
test al, 1
mov dword [esp + 0x6c], 2
je 0x4070c9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.004167e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40713a
lea ecx, [esp + 0x28]
call fcn.00416c50
test eax, eax
je 0x407104
push 0x41d4e8
lea ecx, [esp + 0x5c]
call fcn.00416780
mov eax, dword [esp + 0x10]
or al, 2
mov dword [esp + 0x10], eax
lea eax, [esp + 0x58]
mov byte [esp + 0x6c], 4
jmp 0x407108
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.00406cf0
mov edi, eax
mov al, byte [esp + 0x10]
test al, 2
mov dword [esp + 0x6c], 2
je 0x40713a
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x58]
and al, 0xfd
mov dword [esp + 0x10], eax
call fcn.004167e0
test ebx, ebx
mov byte [ebp - 1], 0x2f
jne 0x407148
test edi, edi
je 0x407192
mov ebx, edi
push ebp
lea ecx, [esp + 0x38]
call fcn.00416bd0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.00406a10
test eax, eax
jne 0x407196
test edi, edi
je 0x407196
cmp ebx, edi
je 0x407196
push ebp
lea ecx, [esp + 0x38]
call fcn.00416bd0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, dword [ecx + 0x14]
call fcn.00406a10
mov dword [esp + 0x74], eax
mov esi, 1
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov ebx, edx
and ebx, 0x400
je 0x4071ae
test eax, eax
je 0x406fc4
jmp 0x4071b2
test eax, eax
je 0x4071c8
mov ecx, dword [eax]
mov edi, dword [esp + 0x7c]
neg esi
sbb esi, esi
and esi, 0x8000
or esi, ecx
mov dword [edi], esi
jmp 0x4071d4
mov ecx, dword [esp + 0x7c]
mov edi, ecx
mov dword [ecx], 0x1200
mov ecx, dword [edi]
test ch, 6
je 0x4071e4
test dh, 1
je 0x406fc4
mov edx, ecx
and edx, 0x2000
jne 0x4071f6
test ebx, ebx
jne 0x406fc4
test ch, 0x40
jne 0x406fc4
test edx, edx
je 0x407216
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x78]
lea eax, [edx + eax + 0xd]
push eax
call fcn.00416c90
jmp 0x407222
mov ecx, dword [esp + 0x78]
push ebp
push 0
call fcn.00416dc0
mov eax, dword [edi]
test ah, 0x10
je 0x40723b
mov ebx, dword [esp + 0x18]
mov ecx, eax
xor ecx, ebx
and ecx, 0x1f7
xor ecx, eax
mov dword [edi], ecx
mov edx, dword [edi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], edx
not ecx
dec ecx
inc eax
mov dword [esp + 0x20], eax
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov byte [ebp - 1], 0x2f
jl 0x407058
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov eax, dword [esi]
test ah, 4
jne 0x407328
test eax, 0x100000
je 0x40728b
mov ecx, edi
call fcn.00416d70
mov eax, dword [edi]
test eax, eax
jne 0x407296
mov eax, 0x41eae8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x1c]
test edx, 0x40000
je 0x4072f1
or ebx, 0xffffffff
cmp eax, ebx
je 0x4072e3
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], ebx
call fcn.004167e0
mov eax, 0x19d
jmp 0x40744f
mov eax, dword [esi]
and eax, 0xfffefbff
or ah, 0xa
mov dword [esi], eax
jmp 0x407334
or ebx, 0xffffffff
cmp eax, ebx
je 0x407354
test al, 6
je 0x407304
test dword [esi], 0x100000
je 0x407354
mov ebp, dword [esi]
and ebp, 0xfffef1ff
test al, 0x10
mov dword [esi], ebp
mov ecx, ebp
je 0x40731e
or ch, 2
or ebx, 0xffffffff
mov dword [esi], ecx
jmp 0x407334
or ch, 8
or ebx, 0xffffffff
mov dword [esi], ecx
jmp 0x407334
mov edx, dword [esp + 0x1c]
or ah, 2
mov dword [esi], eax
or ebx, 0xffffffff
test dl, 0xb5
je 0x407340
mov eax, dword [esi]
test ah, 4
jne 0x407394
test edx, 0x10e00
je 0x407387
mov ecx, dword [esi]
and ecx, edx
test ecx, 0x10e00
jne 0x407387
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x40]
call fcn.004167e0
mov eax, 0x191
jmp 0x40744f
mov eax, dword [esi]
not eax
and eax, edx
test eax, 0x1f7
je 0x4073c7
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], ebx
call fcn.004167e0
mov eax, 0x190
jmp 0x40744f
mov ecx, edi
call fcn.00416d10
mov eax, dword [edi]
test eax, eax
mov edx, eax
jne 0x4073db
mov edx, 0x41eae8
mov edi, 0x41ec00
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41ec00
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
mov byte [esp + 0x6c], 1
test eax, eax
lea ecx, [esp + 0x34]
jne 0x40742d
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x40]
call fcn.004167e0
mov eax, 0x190
jmp 0x40744f
call fcn.004167e0
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call fcn.004167e0
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x40]
call fcn.004167e0
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc