Function at 0x1003b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x10090cc4
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0
call fcn.1007415e
add esp, 0xc
test esi, esi
je 0x1003b779
cmp dword [ebp - 0x210], 0
je 0x1003b779
push edi
push esi
call fcn.10070fc0
mov edi, eax
test edi, edi
je 0x1003b76b
push edi
call fcn.10071020
test eax, eax
je 0x1003b76b
movzx esi, word [eax + 0x10]
push ebx
movzx ebx, word [eax + 0x3c]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10073220
add esi, 0xffff00ff
add esp, 0xc
cmp esi, 3
ja case.default.0x1003b59b
jmp dword [esi*4 + 0x1003b78c]
push str.OpenCL_Source__CL_Source_Headers_
jmp 0x1003b5c3
push str.OpenCL_Objects__LLVM_binaries_archives_
jmp 0x1003b5c3
push str.OpenCL_Library
jmp 0x1003b5c3
push str.OpenCL_Executable
jmp 0x1003b5c3
push str.Unexpected_ELF_Type
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.100735d5
add esp, 0xc
push str._TEXT_REPRESENTATION_OF_ELF_BINARY__n
push dword [ebp - 0x210]
call fcn.100742b5
lea eax, [ebp - 0x20c]
push eax
push str.ELF_Header_Type:__s_n
push dword [ebp - 0x210]
call fcn.100742b5
push ebx
push str.Number_of_sections:__d_n
push dword [ebp - 0x210]
call fcn.100742b5
add esp, 0x20
xor esi, esi
test ebx, ebx
je 0x1003b76a
lea esp, [esp]
push esi
push edi
call fcn.10071080
test eax, eax
je 0x1003b74e
mov eax, dword [eax + 4]
cmp eax, 3
ja 0x1003b64b
je 0x1003b644
test eax, eax
jne case.0x1003b655.16777214
push str.Empty
jmp 0x1003b684
push str.String_Table
jmp 0x1003b684
add eax, 0x1000000
cmp eax, 5
ja case.0x1003b655.16777214
jmp dword [eax*4 + 0x1003b79c]
push str.OpenCL_Text___Source
jmp 0x1003b684
push str.OpenCL_Text___Header
jmp 0x1003b684
push str.LLVM_Archive
jmp 0x1003b684
push str.LLVM_Binary
jmp 0x1003b684
push str.Gen_Device_Binary
jmp 0x1003b684
push str.Unexpected_Section_Type
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.100735d5
add esp, 0xc
push str._n_________________________________________n
push dword [ebp - 0x210]
call fcn.100742b5
add esp, 8
push esi
push edi
call fcn.100710b0
push eax
push str.Section_Name:__s_n
push dword [ebp - 0x210]
call fcn.100742b5
lea eax, [ebp - 0x108]
push eax
push str.Section_Type:__s_n
push dword [ebp - 0x210]
call fcn.100742b5
push str.Section_Data:_n
push dword [ebp - 0x210]
call fcn.100742b5
add esp, 0x20
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call fcn.10071030
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x1003b761
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1003b761
push dword [ebp - 0x210]
push eax
push 1
push ecx
call fcn.10074fd8
push str._n________________________________________n
push dword [ebp - 0x210]
call fcn.100742b5
add esp, 0x18
jmp 0x1003b761
push str.ERROR:_Cannot_read_section_header__n
push dword [ebp - 0x210]
call fcn.100742b5
add esp, 8
inc esi
cmp esi, ebx
jb 0x1003b620
pop ebx
push dword [ebp - 0x210]
call fcn.10073cc2
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10071c54
mov esp, ebp
pop ebp
ret 0xc