Function at 0x434820
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x8000
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x28]
push eax
push 0
call fcn.004011a0
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.Ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x434c32
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
push 0x80
lea eax, [ebp - 0xc]
push eax
call fcn.0042db30
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xc0000034
jne 0x4348c4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.00434640
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434ad9
cmp dword [ebp - 0x14], 2
jne 0x4348e9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x178]
or edx, 0x20
mov eax, dword [ebp + 8]
mov dword [eax + 0x178], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
push 4
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434957
cmp dword [ebp - 0x2c], 0x28
jb 0x434957
push 8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x118
push ecx
call fcn.004057e0
add esp, 0xc
push 8
mov edx, dword [ebp - 0x10]
add edx, 0x10
push edx
mov eax, dword [ebp + 8]
add eax, 0x120
push eax
call fcn.004057e0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x16c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
push 5
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x43499c
cmp dword [ebp - 0x2c], 0x18
jb 0x43499c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
mov dword [eax + 0x110], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0x114], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
push 0x16
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4349e6
cmp dword [ebp - 0x2c], 0x20
jb 0x4349e6
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x4349e6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
or eax, 2
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x174], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
push 7
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434a38
cmp dword [ebp - 0x2c], 4
jb 0x434a38
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
jbe 0x434a30
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
or eax, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x174], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
and eax, 4
je 0x434ad7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x130]
push edx
push 8
lea eax, [ebp - 0xc]
push eax
call fcn.0042e2c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434ad7
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryEaFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434acd
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x184]
call fcn.00433ed0
movzx ecx, al
test ecx, ecx
je 0x434acd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
and eax, 0xfffffffb
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x174], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
jmp 0x434b0e
cmp dword [ebp - 0x18], 0xc0000022
jne 0x434af9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x178]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x178], ecx
jmp 0x434b0e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x170]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x170], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x130]
push ecx
push 0x100001
lea edx, [ebp - 0xc]
push edx
call fcn.0042e2c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x434c1a
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0x40
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.Ntdll.dll_NtReadFile]
cmp dword [ebp - 0x2c], 0x40
jne 0x434c10
movzx edx, word [ebp - 0x180]
cmp edx, 0x5a4d
je 0x434b90
movzx eax, word [ebp - 0x180]
cmp eax, 0x584d
jne 0x434c10
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x38], ecx
push 0
lea edx, [ebp - 0x38]
push edx
push 0x100
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtReadFile]
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov ecx, dword [ebp - 0x184]
call fcn.004339c0
movzx eax, word [ebp - 0x180]
cmp eax, 0x584d
je 0x434bf9
movzx ecx, word [ebp - 0x166]
cmp ecx, 0x584d
jne 0x434c10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x174]
or eax, 0x100
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x174], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x1c]
push eax
push 0
call fcn.004011a0
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret 4