Function at 0x419dbc
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 [0x4c594c]
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 0x419def
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041fa9d
cmp byte [ebp + 0x18], 0
jne 0x419e0e
cmp dword [esi + 0x10], 1
jbe 0x419e0e
cmp byte [0x4c3fe3], 0
mov byte [ebp - 3], 1
je 0x419e12
mov byte [ebp - 2], 1
jmp 0x419e1c
mov byte [ebp - 3], 0
cmp byte [ebp - 3], 0
mov byte [ebp - 2], 0
je 0x419e29
cmp byte [0x4c3fe4], 0
mov byte [ebp - 1], 1
jne 0x419e2d
mov byte [ebp - 1], 0
cmp byte [ebp - 2], 0
jne 0x419e46
cmp byte [ebp + 8], 0
je 0x419e3f
cmp byte [ebp + 8], 2
jne 0x419e46
mov dword [ebp - 8], 5
cmp byte [ebp - 1], 0
jne 0x419e59
cmp byte [ebp + 8], 1
jne 0x419e59
mov dword [ebp - 8], 6
cmp edi, 0xffffffff
je 0x419e82
mov al, byte [esi + 0x21]
test al, 1
je 0x419e6b
cmp byte [ebp + 0x18], 0
jne 0x419e7b
test bl, bl
je 0x41a08a
test al, 2
jne 0x41a08a
mov ecx, esi
call fcn.0041e8d1
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041e970
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.004439a6
test al, al
jne 0x419ea8
mov ecx, edi
call fcn.0044409a
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00445cd0
mov ecx, dword [esi + 0xc]
cmp ecx, edx
jb 0x419edc
ja 0x419ec0
mov ecx, dword [esi + 8]
cmp ecx, eax
jbe 0x419edc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xdf
test edi, edi
je 0x419ed4
mov ecx, edi
call fcn.004444cc
or eax, 0xffffffff
jmp 0x41a08c
mov ecx, edi
jmp 0x419f2f
test bl, bl
je 0x419f02
mov ecx, dword [ebp - 0xc]
call fcn.004462c7
test al, al
je 0x419f02
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00445486
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f3e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x419f70
cmp dword [0x4c3f6c], 0
je 0x419f70
dec dword [0x4c3f6c]
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00445486
mov edi, eax
cmp edi, 0xffffffff
je 0x419ee0
test bl, bl
je 0x41a01d
cmp byte [ebp + 0x1c], 0
je 0x419fae
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x419fce
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 0x419fc1
cmp byte [ebp + 8], 3
je 0x419f7c
cmp byte [ebp + 0x14], 0
je 0x419f8d
cmp eax, 0x490
je 0x419f9e
cmp eax, 2
je 0x419f9e
cmp eax, 3
je 0x419f9e
push eax
push dword [ebp - 0xc]
push str.Error_opening___s_:__E
call fcn.004890f7
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x419ed4
jmp 0x419ecf
cmp byte [0x4c3fd0], 0
je 0x419fce
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 0x419fda
cmp dword [ebp - 8], 6
jne 0x41a01d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x4c], 0
jne 0x41a01d
cmp byte [0x4c3f9c], 0
mov byte [0x4c3f9f], 1
je 0x41a009
cmp byte [0x4c3fd1], 0
je 0x41a009
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call dword [0x4c3f74]
mov byte [0x4c3f9f], 0
push dword [esi + 0xc]
mov ecx, edi
push dword [esi + 8]
call fcn.0044606d
mov eax, dword [0x4c594c]
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.00445474
test al, al
sete al
xor al, byte [esi + 0x21]
and al, 1
xor byte [esi + 0x21], al
test byte [esi + 0x21], 1
je 0x41a07e
mov esi, dword [esi + 0x10]
cmp esi, 1
ja 0x41a07e
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.004890f7
add esp, 0x20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41a08a
call fcn.004444cc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18