Function at 0x419dd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 8], 1
push ebx
push esi
mov esi, eax
mov eax, dword [0x4c492c]
mov dword [esi + 0x14], eax
movzx eax, byte [ebp + 8]
sete bl
cmp dword [esi + 0x10], 1
push edi
mov edi, dword [esi + 0x30]
mov dword [ebp - 8], eax
ja 0x419e03
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041fa75
cmp byte [ebp + 0x18], 0
jne 0x419e22
cmp dword [esi + 0x10], 1
jbe 0x419e22
cmp byte [0x4c2fc3], 0
mov byte [ebp - 3], 1
je 0x419e26
mov byte [ebp - 2], 1
jmp 0x419e30
mov byte [ebp - 3], 0
cmp byte [ebp - 3], 0
mov byte [ebp - 2], 0
je 0x419e3d
cmp byte [0x4c2fc4], 0
mov byte [ebp - 1], 1
jne 0x419e41
mov byte [ebp - 1], 0
cmp byte [ebp - 2], 0
jne 0x419e5a
cmp byte [ebp + 8], 0
je 0x419e53
cmp byte [ebp + 8], 2
jne 0x419e5a
mov dword [ebp - 8], 5
cmp byte [ebp - 1], 0
jne 0x419e6d
cmp byte [ebp + 8], 1
jne 0x419e6d
mov dword [ebp - 8], 6
cmp edi, 0xffffffff
je 0x419e96
mov al, byte [esi + 0x21]
test al, 1
je 0x419e7f
cmp byte [ebp + 0x18], 0
jne 0x419e8f
test bl, bl
je 0x41a09e
test al, 2
jne 0x41a09e
mov ecx, esi
call fcn.0041e8a9
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041e948
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.004439fb
test al, al
jne 0x419ebc
mov ecx, edi
call fcn.004440ef
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00445d25
mov ecx, dword [esi + 0xc]
cmp ecx, edx
jb 0x419ef0
ja 0x419ed4
mov ecx, dword [esi + 8]
cmp ecx, eax
jbe 0x419ef0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xdf
test edi, edi
je 0x419ee8
mov ecx, edi
call fcn.00444521
or eax, 0xffffffff
jmp 0x41a0a0
mov ecx, edi
jmp 0x419f43
test bl, bl
je 0x419f16
mov ecx, dword [ebp - 0xc]
call fcn.0044631c
test al, al
je 0x419f16
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004454db
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f52
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x419f84
cmp dword [0x4c2f4c], 0
je 0x419f84
dec dword [0x4c2f4c]
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004454db
mov edi, eax
cmp edi, 0xffffffff
je 0x419ef4
test bl, bl
je 0x41a031
cmp byte [ebp + 0x1c], 0
je 0x419fc2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x419fe2
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
push ecx
push eax
push eax
mov byte [ebp + 0xb], 0
push 1
lea eax, [ebp + 0xb]
jmp 0x419fd5
cmp byte [ebp + 8], 3
je 0x419f90
cmp byte [ebp + 0x14], 0
je 0x419fa1
cmp eax, 0x490
je 0x419fb2
cmp eax, 2
je 0x419fb2
cmp eax, 3
je 0x419fb2
push eax
push dword [ebp - 0xc]
push str.Error_opening___s_:__E
call fcn.00488f98
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x419ee8
jmp 0x419ee3
cmp byte [0x4c2fb0], 0
je 0x419fe2
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
push ecx
push eax
push eax
push eax
push eax
push 0x900c4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp dword [ebp - 8], 1
je 0x419fee
cmp dword [ebp - 8], 6
jne 0x41a031
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x4c], 0
jne 0x41a031
cmp byte [0x4c2f7c], 0
mov byte [0x4c2f7f], 1
je 0x41a01d
cmp byte [0x4c2fb1], 0
je 0x41a01d
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call dword [0x4c2f54]
mov byte [0x4c2f7f], 0
push dword [esi + 0xc]
mov ecx, edi
push dword [esi + 8]
call fcn.004460c2
mov eax, dword [0x4c492c]
mov ecx, dword [ebp - 8]
add bl, bl
xor bl, byte [esi + 0x21]
mov dword [esi + 0x14], eax
and bl, 2
xor byte [esi + 0x21], bl
mov dword [esi + 0x30], edi
call fcn.004454c9
test al, al
sete al
xor al, byte [esi + 0x21]
and al, 1
xor byte [esi + 0x21], al
test byte [esi + 0x21], 1
je 0x41a092
mov esi, dword [esi + 0x10]
cmp esi, 1
ja 0x41a092
movzx eax, byte [ebp - 1]
push eax
movzx eax, byte [ebp - 2]
push eax
movzx eax, byte [ebp - 3]
push eax
movzx eax, byte [ebp + 0x18]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.Incorrect_alignment_on_mode_set____s__mode:_d_alignment:_u_force_buffered:_d_file_bufferless:_d_unbuffered_read:_d_unbuffered_write:_d
call fcn.00488f98
add esp, 0x20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41a09e
call fcn.00444521
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18