Function at 0x41930b
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 [0x4c280c]
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 0x41933e
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041ed27
cmp byte [ebp + 0x18], 0
jne 0x41935d
cmp dword [esi + 0x10], 1
jbe 0x41935d
cmp byte [0x4c0eab], 0
mov byte [ebp - 3], 1
je 0x419361
mov byte [ebp - 2], 1
jmp 0x41936b
mov byte [ebp - 3], 0
cmp byte [ebp - 3], 0
mov byte [ebp - 2], 0
je 0x419378
cmp byte [0x4c0eac], 0
mov byte [ebp - 1], 1
jne 0x41937c
mov byte [ebp - 1], 0
cmp byte [ebp - 2], 0
jne 0x419395
cmp byte [ebp + 8], 0
je 0x41938e
cmp byte [ebp + 8], 2
jne 0x419395
mov dword [ebp - 8], 5
cmp byte [ebp - 1], 0
jne 0x4193a8
cmp byte [ebp + 8], 1
jne 0x4193a8
mov dword [ebp - 8], 6
cmp edi, 0xffffffff
je 0x4193d1
mov al, byte [esi + 0x21]
test al, 1
je 0x4193ba
cmp byte [ebp + 0x18], 0
jne 0x4193ca
test bl, bl
je 0x4195d9
test al, 2
jne 0x4195d9
mov ecx, esi
call fcn.0041dd80
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0041de1f
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.00442885
test al, al
jne 0x4193f7
mov ecx, edi
call fcn.00442f79
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00444bc0
mov ecx, dword [esi + 0xc]
cmp ecx, edx
jb 0x41942b
ja 0x41940f
mov ecx, dword [esi + 8]
cmp ecx, eax
jbe 0x41942b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xdf
test edi, edi
je 0x419423
mov ecx, edi
call fcn.004433ab
or eax, 0xffffffff
jmp 0x4195db
mov ecx, edi
jmp 0x41947e
test bl, bl
je 0x419451
mov ecx, dword [ebp - 0xc]
call fcn.004451ba
test al, al
je 0x419451
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00444392
mov edi, eax
cmp edi, 0xffffffff
jne 0x41948d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x4194bf
cmp dword [0x4c0e34], 0
je 0x4194bf
dec dword [0x4c0e34]
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00444392
mov edi, eax
cmp edi, 0xffffffff
je 0x41942f
test bl, bl
je 0x41956c
cmp byte [ebp + 0x1c], 0
je 0x4194fd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x41951d
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 0x419510
cmp byte [ebp + 8], 3
je 0x4194cb
cmp byte [ebp + 0x14], 0
je 0x4194dc
cmp eax, 0x490
je 0x4194ed
cmp eax, 2
je 0x4194ed
cmp eax, 3
je 0x4194ed
push eax
push dword [ebp - 0xc]
push str.Error_opening___s_:__E
call fcn.004875bd
add esp, 0xc
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x419423
jmp 0x41941e
cmp byte [0x4c0e98], 0
je 0x41951d
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 0x419529
cmp dword [ebp - 8], 6
jne 0x41956c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x4c], 0
jne 0x41956c
cmp byte [0x4c0e64], 0
mov byte [0x4c0e67], 1
je 0x419558
cmp byte [0x4c0e99], 0
je 0x419558
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call dword [0x4c0e3c]
mov byte [0x4c0e67], 0
push dword [esi + 0xc]
mov ecx, edi
push dword [esi + 8]
call fcn.00444f5d
mov eax, dword [0x4c280c]
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.00444380
test al, al
sete al
xor al, byte [esi + 0x21]
and al, 1
xor byte [esi + 0x21], al
test byte [esi + 0x21], 1
je 0x4195cd
mov esi, dword [esi + 0x10]
cmp esi, 1
ja 0x4195cd
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.004875bd
add esp, 0x20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4195d9
call fcn.004433ab
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18