Function at 0x419e10
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 [0x4c592c]
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 0x419e43
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041fa79
cmp byte [ebp + 0x18], 0
jne 0x419e62
cmp dword [esi + 0x10], 1
jbe 0x419e62
cmp byte [0x4c3fc3], 0
mov byte [ebp - 3], 1
je 0x419e66
mov byte [ebp - 2], 1
jmp 0x419e70
mov byte [ebp - 3], 0
cmp byte [ebp - 3], 0
mov byte [ebp - 2], 0
je 0x419e7d
cmp byte [0x4c3fc4], 0
mov byte [ebp - 1], 1
jne 0x419e81
mov byte [ebp - 1], 0
cmp byte [ebp - 2], 0
jne 0x419e9a
cmp byte [ebp + 8], 0
je 0x419e93
cmp byte [ebp + 8], 2
jne 0x419e9a
mov dword [ebp - 8], 5
cmp byte [ebp - 1], 0
jne 0x419ead
cmp byte [ebp + 8], 1
jne 0x419ead
mov dword [ebp - 8], 6
cmp edi, 0xffffffff
je 0x419ed6
mov al, byte [esi + 0x21]
test al, 1
je 0x419ebf
cmp byte [ebp + 0x18], 0
jne 0x419ecf
test bl, bl
je 0x41a0de
test al, 2
jne 0x41a0de
mov ecx, esi
call fcn.0041e8ad
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041e94c
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.004439d8
test al, al
jne 0x419efc
mov ecx, edi
call fcn.004440cc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00445d02
mov ecx, dword [esi + 0xc]
cmp ecx, edx
jb 0x419f30
ja 0x419f14
mov ecx, dword [esi + 8]
cmp ecx, eax
jbe 0x419f30
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xdf
test edi, edi
je 0x419f28
mov ecx, edi
call fcn.004444fe
or eax, 0xffffffff
jmp 0x41a0e0
mov ecx, edi
jmp 0x419f83
test bl, bl
je 0x419f56
mov ecx, dword [ebp - 0xc]
call fcn.004462f9
test al, al
je 0x419f56
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004454b8
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f92
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x419fc4
cmp dword [0x4c3f4c], 0
je 0x419fc4
dec dword [0x4c3f4c]
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004454b8
mov edi, eax
cmp edi, 0xffffffff
je 0x419f34
test bl, bl
je 0x41a071
cmp byte [ebp + 0x1c], 0
je 0x41a002
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x41a022
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 0x41a015
cmp byte [ebp + 8], 3
je 0x419fd0
cmp byte [ebp + 0x14], 0
je 0x419fe1
cmp eax, 0x490
je 0x419ff2
cmp eax, 2
je 0x419ff2
cmp eax, 3
je 0x419ff2
push eax
push dword [ebp - 0xc]
push str.Error_opening___s_:__E
call fcn.004891ee
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x419f28
jmp 0x419f23
cmp byte [0x4c3fb0], 0
je 0x41a022
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 0x41a02e
cmp dword [ebp - 8], 6
jne 0x41a071
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x4c], 0
jne 0x41a071
cmp byte [0x4c3f7c], 0
mov byte [0x4c3f7f], 1
je 0x41a05d
cmp byte [0x4c3fb1], 0
je 0x41a05d
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call dword [0x4c3f54]
mov byte [0x4c3f7f], 0
push dword [esi + 0xc]
mov ecx, edi
push dword [esi + 8]
call fcn.0044609f
mov eax, dword [0x4c592c]
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.004454a6
test al, al
sete al
xor al, byte [esi + 0x21]
and al, 1
xor byte [esi + 0x21], al
test byte [esi + 0x21], 1
je 0x41a0d2
mov esi, dword [esi + 0x10]
cmp esi, 1
ja 0x41a0d2
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.004891ee
add esp, 0x20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41a0de
call fcn.004444fe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18