Function at 0x4367eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x12
xor ebx, ebx
mov dword [ebp - 0x15c], ecx
push ebx
push ebx
push 0x4b6030
or edi, 0xffffffff
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
mov dword [ebp - 0x14c], esi
cmp esi, edi
jne 0x43684a
call fcn.0042fc51
push eax
push str.SetupDiGetClassDevs__Interface__failed:__s
call fcn.0042ed57
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x1c
push eax
push ebx
push esi
mov dword [ebp - 0x158], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x436839
mov ebx, 0x104
push ebx
push 0
push 0x51fa20
call fcn.00478bc0
add esp, 0xc
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
push eax
push ecx
push 0x51fa20
lea eax, [ebp - 0x160]
push eax
push ecx
mov ecx, esi
call fcn.0043607d
add esp, 0x14
test eax, eax
jne 0x436916
call fcn.0042fc51
push eax
push str.SetupDiGetDeviceRegistryProperty__Friendly_Name__failed:__s
call fcn.0042ed57
push str.Generic_Optical_Drive
call fcn.004816f0
add esp, 0xc
inc eax
cmp eax, ebx
jae 0x4368db
push str.Generic_Optical_Drive
call fcn.004816f0
pop ecx
inc eax
jmp 0x4368dd
mov eax, ebx
push eax
push str.Generic_Optical_Drive
push 0x51fa20
call fcn.00476fc0
push str.Generic_Optical_Drive
call fcn.004816f0
add esp, 0x10
inc eax
cmp eax, ebx
jae 0x43690d
push str.Generic_Optical_Drive
call fcn.004816f0
pop ecx
inc eax
jmp 0x43690f
mov eax, ebx
mov byte [eax + 0x51fa1f], 0
push 0x51fa20
push str.Found__s_optical_device
call fcn.0042ed57
xor eax, eax
mov dword [ebp - 0x140], 0x1c
and dword [ebp - 0x150], eax
pop ecx
pop ecx
mov dword [ebp - 0x148], eax
cmp edi, 0xffffffff
je 0x436958
test edi, edi
je 0x436958
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x148]
or edi, 0xffffffff
push eax
call fcn.004812c6
and dword [ebp - 0x148], 0
push 0
call fcn.004812c6
pop ecx
pop ecx
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x150]
lea eax, [ebp - 0x124]
push 0x4b6030
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x436ad1
xor ecx, ecx
lea eax, [ebp - 0x144]
push ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x436ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x436ab1
push dword [ebp - 0x144]
push 1
call fcn.0047b53f
mov dword [ebp - 0x148], eax
pop ecx
pop ecx
test eax, eax
jne 0x4369f0
push str.Unable_to_allocate_data_for_SP_DEVICE_INTERFACE_DETAIL_DATA
call fcn.0042ed57
pop ecx
jmp 0x436aa0
push 0
lea ecx, [ebp - 0x144]
mov dword [eax], 5
push ecx
push dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x436a28
call fcn.0042fc51
push eax
push str.SetupDiGetDeviceInterfaceDetail__actual__failed:__s
jmp 0x436abc
mov esi, dword [ebp - 0x148]
push 0
push 0x8000000
push 3
push 0
push 1
push SHChangeNotifyRegister
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x154], edi
cmp edi, 0xffffffff
je 0x436a9a
xor ecx, ecx
lea eax, [ebp - 0x144]
push ecx
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x436a9a
cmp dword [ebp - 0xec], 0
jg 0x436b19
jl 0x436a9a
cmp dword [ebp - 0xf0], 0x1000
ja 0x436b19
mov esi, dword [ebp - 0x14c]
inc dword [ebp - 0x150]
mov eax, dword [ebp - 0x148]
jmp 0x43693f
call fcn.0042fc51
push eax
push str.SetupDiGetDeviceInterfaceDetail__dummy__failed:__s
call fcn.0042ed57
pop ecx
jmp 0x4369ea
push str.SetupDiGetDeviceInterfaceDetail__dummy____no_data_was_allocated
jmp 0x4369e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x436af0
call fcn.0042fc51
push eax
push str.SetupDiEnumDeviceInterfaces_failed:__s
call fcn.0042ed57
pop ecx
pop ecx
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x124]
inc eax
push ecx
push eax
push esi
mov dword [ebp - 0x158], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x436872
jmp 0x436839
push 0x800
call fcn.004812e1
mov edi, eax
pop ecx
test edi, edi
je 0x436bc4
xor eax, eax
push eax
push eax
push eax
push 0x8000
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x436bc4
push 0
lea eax, [ebp - 0x144]
push eax
push 0x800
push edi
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436bc4
cmp dword [ebp - 0x144], 0x800
jne 0x436bc4
push 0x20
lea eax, [edi + 0x28]
push eax
push 0x51f9f8
call fcn.00476fc0
push 0x51f9f8
mov byte [0x51fa18], 0
call fcn.004816f0
add esp, 0x10
jmp 0x436bb2
cmp byte [eax + 0x51f9f8], 0x20
jne 0x436bb7
cmp eax, 0x21
jae 0x436c63
mov byte [eax + 0x51f9f8], 0
sub eax, 1
jns 0x436b99
mov eax, dword [ebp - 0x15c]
mov dword [eax + 0x20], 0x51f9f8
test esi, esi
jne 0x436bcc
xor eax, eax
jmp 0x436bdf
push esi
call fcn.004816f0
inc eax
pop ecx
cmp eax, ebx
jae 0x436be2
push esi
call fcn.004816f0
pop ecx
inc eax
jmp 0x436be4
mov eax, ebx
push eax
push esi
push 0x51fa20
call fcn.00476fc0
add esp, 0xc
test esi, esi
jne 0x436bfb
xor eax, eax
jmp 0x436c0e
push esi
call fcn.004816f0
inc eax
pop ecx
cmp eax, ebx
jae 0x436c11
push esi
call fcn.004816f0
pop ecx
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xec]
mov byte [ebx + 0x51fa1f], 0
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x154]
mov dword [edx + 0x18], 0x51fa20
mov dword [edx + 0x14], ecx
test eax, eax
je 0x436c48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x148]
call fcn.004812c6
push edi
call fcn.004812c6
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x43683b
call fcn.00475db1
int3