Function at 0x566d70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x5c8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
call fcn.00408c00
mov eax, dword [ebp - 8]
call fcn.00408c00
mov eax, dword [ebp - 0xc]
call fcn.00408c00
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0
xor eax, eax
push fcn.00566cb0
push ebp
push 0x414e60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x59c460], 0
jne 0x566e58
mov byte [0x59c460], 1
jmp 0x567a88
mov byte [0x59c1e0], 0
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x10], 0
cmp byte [0x59c2c0], 0
je 0x567a88
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x378], 0
xor eax, eax
push 0x5672eb
push ebp
push 0x415230
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040f360
movzx eax, ax
mov dword [ebp - 0x36c], eax
push 0
lea eax, [ebp - 0x3b0]
call fcn.00403cd0
push 0
movzx ecx, word [0x603ca0]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
xor eax, eax
push eax
push ecx
lea edx, [ebp - 0x4b4]
mov ecx, 0xff
mov eax, 0xffffffff
call fcn.00405150
lea ecx, [ebp - 0x3b4]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b4]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b4]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b0]
call fcn.00408d20
mov eax, dword [ebp - 0x3b0]
lea ecx, [ebp - 0x3ac]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x3ac]
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cb0]
push 0xff
lea ecx, [ebp - 0x4b4]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x4b8]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cc0]
push 0xff
lea ecx, [ebp - 0x4b4]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x4bc]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x3a0], eax
lea edx, [ebp - 0x3a8]
lea eax, [ebp - 0x38c]
mov ecx, 2
call fcn.00409020
push 0
mov ecx, str.logs_
mov edx, dword [0x59bf10]
lea eax, [ebp - 0x394]
call fcn.00408d20
mov eax, dword [ebp - 0x394]
mov dl, 1
call fcn.00446850
test al, al
jne 0x5670cc
mov eax, dword [ebp - 0x394]
call fcn.00446560
mov eax, dword [ebp - 0x394]
mov dl, 1
call fcn.00446850
test al, al
jne 0x5670cc
mov edx, dword [0x59bf10]
lea eax, [ebp - 0x394]
call fcn.00408c30
push 0
mov eax, dword [ebp - 0x394]
mov dword [ebp - 0x3c8], eax
mov eax, dword [str.lcds]
mov dword [ebp - 0x3c4], eax
mov eax, 0x5f7800
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x3bc], eax
mov eax, str..log
mov dword [ebp - 0x3b8], eax
lea edx, [ebp - 0x3c8]
mov eax, 0x603be0
mov ecx, 4
call fcn.00409020
mov eax, dword [0x603be0]
call fcn.00566c10
mov byte [ebp - 0x384], al
mov edx, dword [0x603be0]
lea eax, [ebp - 0x368]
call fcn.004155a0
cmp byte [ebp - 0x384], 0
jne 0x567160
lea eax, [ebp - 0x368]
call fcn.00412760
call fcn.0040f320
jmp 0x567170
lea eax, [ebp - 0x368]
call fcn.004127e0
call fcn.0040f320
call fcn.0040f360
movzx eax, ax
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x370], eax
push 0
mov ecx, 0x5f7824
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x388]
call fcn.00408d20
push 0
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x3cc], eax
mov eax, 0x5f7834
mov dword [ebp - 0x3c8], eax
mov eax, dword [0x59c1d0]
mov dword [ebp - 0x3c4], eax
mov eax, 0x5f7844
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3bc], eax
mov eax, 0x5f7854
mov dword [ebp - 0x3b8], eax
lea edx, [ebp - 0x3cc]
lea eax, [ebp - 0x388]
mov ecx, 5
call fcn.00409020
push 0
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x3cc], eax
lea eax, [ebp - 0x4bc]
call fcn.00566570
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x3c8], eax
mov eax, 0x5f7864
mov dword [ebp - 0x3c4], eax
push 0xff
lea ecx, [ebp - 0x5bc]
mov edx, 0xffffffff
mov eax, dword [ebp + 8]
call fcn.00405070
lea ecx, [ebp - 0x4b8]
lea eax, [ebp - 0x5bc]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x4b8]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x3c0], eax
mov eax, 0x5f7874
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3b8], eax
lea edx, [ebp - 0x3cc]
lea eax, [ebp - 0x388]
mov ecx, 5
call fcn.00409020
mov ecx, dword [ebp - 0x388]
lea edx, [ebp - 0x368]
xor eax, eax
call fcn.00412c30
call fcn.0040f320
lea eax, [ebp - 0x368]
call fcn.00412aa0
call fcn.0040f320
lea eax, [ebp - 0x368]
call fcn.004155b0
call fcn.0040f320
call fcn.0040f360
movzx eax, ax
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x374], eax
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x5672fa
cmp byte [0x59c390], 0
jne 0x567a4f
cmp dword [ebp - 0x370], 0
setne al
cmp dword [ebp - 0x374], 0
setne dl
or al, dl
cmp dword [ebp - 0x378], 0
setne dl
or al, dl
je 0x567a4f
mov edx, str.Erro_de_LOG:
lea eax, [ebp - 0x390]
call fcn.00408c30
push 0
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x3a8], eax
mov eax, 0x5f6ad0
mov dword [ebp - 0x3a4], eax
mov eax, dword [0x603be0]
mov dword [ebp - 0x3a0], eax
lea edx, [ebp - 0x3a8]
lea eax, [ebp - 0x390]
mov ecx, 2
call fcn.00409020
cmp dword [ebp - 0x370], 0
je 0x56740b
push 0
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x4cc], eax
mov eax, str._rFalha
mov dword [ebp - 0x4c8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov edx, 0xffffffff
mov eax, dword [ebp - 0x370]
call fcn.00405070
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x4bc]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c4], eax
mov eax, str._em_Rewrite_ou_Append
mov dword [ebp - 0x4c0], eax
lea edx, [ebp - 0x4cc]
lea eax, [ebp - 0x390]
mov ecx, 3
call fcn.00409020
cmp dword [ebp - 0x374], 0
je 0x56749d
push 0
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x4cc], eax
mov eax, str._rFalha
mov dword [ebp - 0x4c8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov edx, 0xffffffff
mov eax, dword [ebp - 0x374]
call fcn.00405070
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x4bc]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c4], eax
mov eax, str._em_WriteLn_ou_Close
mov dword [ebp - 0x4c0], eax
lea edx, [ebp - 0x4cc]
lea eax, [ebp - 0x390]
mov ecx, 3
call fcn.00409020
cmp dword [ebp - 0x378], 0
je 0x5674be
push 0
mov ecx, str._rFalha_em_Exception
mov edx, dword [ebp - 0x390]
lea eax, [ebp - 0x390]
call fcn.00408d20
xor eax, eax
push 0x56757e
push ebp
push 0x415230
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x603be0]
test eax, eax
jne 0x5674df
mov eax, 0x5ff2f0
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0x7fffffff
jbe 0x5674f3
call fcn.0040f2e0
mov dword [ebp - 0x37c], ebx
push 0
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x3a8], eax
mov eax, str._rAtributos:
mov dword [ebp - 0x3a4], eax
push 0xff
lea ecx, [ebp - 0x5bc]
mov edx, 0xffffffff
mov eax, dword [ebp - 0x37c]
call fcn.00405070
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x5bc]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x4bc]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x3a0], eax
lea edx, [ebp - 0x3a8]
lea eax, [ebp - 0x390]
mov ecx, 2
call fcn.00409020
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x5675d2
mov eax, dword [ebp - 0x390]
call fcn.00565390
mov eax, str.Deseja_que_o_MK_tente_consertar_o_acesso_
call fcn.00565520
test al, al
je 0x567a3a
lea eax, [ebp - 0x3b4]
call fcn.00566570
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx ecx, word [0x603ca0]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
mov dword [ebp - 0x3a8], ecx
mov dword [ebp - 0x3a4], 0
push dword [ebp - 0x3a4]
push dword [ebp - 0x3a8]
lea edx, [ebp - 0x4b4]
mov ecx, 0xff
mov eax, 0xffffffff
call fcn.00405150
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x4bc]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x4bc]
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cb0]
mov dword [ebp - 0x4d8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov eax, dword [ebp - 0x4d8]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x4b8]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cc0]
mov dword [ebp - 0x4d8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov eax, dword [ebp - 0x4d8]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x3ac]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x3ac]
mov dword [ebp - 0x4cc], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cd0]
mov dword [ebp - 0x4d8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov eax, dword [ebp - 0x4d8]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x5c0]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x5c0]
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603ce0]
mov dword [ebp - 0x4d8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov eax, dword [ebp - 0x4d8]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x5c4]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x5c4]
mov dword [ebp - 0x4c4], eax
lea eax, [ebp - 0x3b4]
call fcn.00403cd0
push 0
movzx eax, word [0x603cf0]
mov dword [ebp - 0x4d8], eax
push 0xff
lea ecx, [ebp - 0x4b4]
mov eax, dword [ebp - 0x4d8]
mov edx, 0xffffffff
call fcn.00405070
lea ecx, [ebp - 0x3b0]
lea eax, [ebp - 0x4b4]
xor dx, dx
call fcn.00409540
lea eax, [ebp - 0x3b0]
xor cl, cl
xor dx, dx
call fcn.0040a380
mov ecx, dword [ebp - 0x3b0]
mov edx, 0x5f6b40
lea eax, [ebp - 0x3b4]
call fcn.00408d20
mov eax, dword [ebp - 0x3b4]
lea ecx, [ebp - 0x5c8]
mov edx, 2
call fcn.00566400
mov eax, dword [ebp - 0x5c8]
mov dword [ebp - 0x4c0], eax
lea edx, [ebp - 0x4d4]
lea eax, [ebp - 0x39c]
mov ecx, 5
call fcn.00409020
push 0
mov eax, dword [ebp - 0x394]
mov dword [ebp - 0x4d0], eax
mov eax, dword [str.lcds]
mov dword [ebp - 0x4cc], eax
mov eax, 0x5f7800
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x4c4], eax
mov eax, str..log
mov dword [ebp - 0x4c0], eax
lea edx, [ebp - 0x4d0]
lea eax, [ebp - 0x398]
mov ecx, 4
call fcn.00409020
xor eax, eax
push 0x567a2b
push ebp
push 0x415230
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x398]
mov eax, dword [0x603be0]
call fcn.00446920
mov eax, str.Arquivo_LOG_com_problema_foi_renomeado._rSe_a_falha_repetir_se_insistentemente__r_veja_se
call fcn.00565390
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x567a3a
mov eax, str.Deseja_encerrar_o_programa_
call fcn.00565520
test al, al
je 0x567a4f
xor eax, eax
call fcn.0040f660
cmp dword [ebp - 0x370], 0
je 0x567a5f
or dword [ebp - 0x380], 1
cmp dword [ebp - 0x374], 0
je 0x567a6f
or dword [ebp - 0x380], 2
cmp dword [ebp - 0x378], 0
je 0x567a7f
or dword [ebp - 0x380], 4
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00566cb0
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4