Function at 0x410040
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
call fcn.00408560
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
xor edi, edi
push 0x47a95c
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00408580
test eax, eax
jne 0x4100ea
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
cmp eax, ecx
je 0x41009d
test al, 0x10
je 0x4100c7
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x24], 1
call fcn.00408570
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x24], edi
call fcn.00408570
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4804ec]
mov dword [ebp - 0x1c], eax
mov ebx, 1
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408630
test eax, eax
je 0x4102b3
lea ecx, [ebp + 8]
inc edi
call fcn.00430700
lea ecx, [ebp + 8]
call fcn.00430630
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x41022e
mov dl, byte [ecx]
cmp dl, 0x2a
je 0x41022e
cmp dl, 0x5b
jne 0x410166
cmp eax, 3
jl 0x41025d
cmp byte [eax + ecx - 1], 0x5d
jne 0x410269
lea edx, [ebp + 8]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00436a80
jmp 0x41022e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x410271
push 0x3d
lea ecx, [ebp + 8]
call fcn.00436f50
mov esi, eax
test esi, esi
jl 0x41029f
mov ecx, dword [ebp + 8]
cmp esi, dword [ecx - 8]
jge 0x41029f
lea edx, [ebp - 0x14]
push esi
push edx
lea ecx, [ebp + 8]
call fcn.0042ffe0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00430630
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41027d
mov ecx, dword [0x4804ec]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 4
mov eax, dword [edx - 8]
dec eax
cmp esi, eax
jge 0x4101fa
inc esi
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.0042fe40
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00436a80
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004368f0
lea ecx, [ebp - 0x18]
call fcn.00430700
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push eax
call fcn.00410690
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004368f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004368f0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004368f0
mov ecx, dword [0x4804ec]
mov dword [ebp + 8], ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 2
call fcn.00408630
test eax, eax
jne 0x410112
jmp 0x4102b3
mov eax, dword [ebp + 0xc]
push edi
push str.Wrong_format__line__d_:_section_name_is_too_short
push eax
jmp 0x4102a9
push edi
push str.Wrong_format__line__d_:_section_name_without_closing_bracket
jmp 0x4102a5
mov edx, dword [ebp + 0xc]
push edi
push str.Wrong_format__line__d_:_value_definition_is_before_section_definition
push edx
jmp 0x4102a9
mov eax, dword [ebp + 0xc]
push edi
push str.Wrong_format__line__d_:_value_name_is_empty
push eax
call fcn.004305b0
add esp, 0xc
lea ecx, [ebp - 0x14]
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.004368f0
jmp 0x4102b3
push edi
push str.Wrong_format__line__d_:_there_is_no__symbol
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004305b0
add esp, 0xc
xor ebx, ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004368f0
mov eax, dword [ebp - 0x20]
xor edx, edx
test ebx, ebx
setne dl
add edx, 2
lea ecx, [ebp - 0x1c]
mov dword [eax + 0x24], edx
mov byte [ebp - 4], 0
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00408570
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8