Function at 0x1003af50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x101ae960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x101b0b88
mov dword [ebp - 0x278], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x101b3130]
mov eax, dword [0x101b313c]
mov dword [ebp - 0x294], edx
add edx, 0xfffffff3
mov dword [ebp - 0x288], eax
mov ax, word [0x101b3144]
mov dword [ebp - 0x274], 0
mov byte [ebp - 0x26d], 0
mov word [ebp - 0x280], ax
cmp edx, 5
ja case.default.0x1003afb7
jmp dword [edx*4 + 0x1003b2f4]
push str._ivb_gen7
jmp 0x1003afed
push str._hsw_gen75
jmp 0x1003afed
push str._vlv_gen7
jmp 0x1003afed
push str._bdw_gen8
jmp 0x1003afed
push str._chv_gen8
jmp 0x1003afed
push str._skl_gen9
jmp 0x1003afed
push str._unknown
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10073d16
movdqu xmm0, xmmword [ebp - 0x294]
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x20
push eax
mov eax, dword [ebp - 0x27c]
sub esp, 0x1c
mov ecx, esp
movdqu xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x284]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
call fcn.10039a40
push 0x10091c10
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10073d6b
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.10073d6b
add esp, 0x18
test edi, edi
je 0x1003b2d5
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1003b2d5
cmp dword [edi], 0x464c457f
jne 0x1003b090
mov eax, dword [0x101b0ba8]
mov esi, 0x20
push eax
inc eax
mov byte [ebp - 0x26d], 1
mov dword [0x101b0ba8], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.elf
jmp 0x1003b1ac
push str.IGHAL_pc_win32
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b192
push str.target_triple___GHAL3D
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b192
push str.target_triple___IGIL
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b192
push str.target_triple___igil
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b192
push str.VERSION_2_
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b176
push str.VERSION_3_
push edi
call fcn.10073230
add esp, 8
test eax, eax
jne 0x1003b176
cmp dword [edi], 0x494e5443
jne 0x1003b15a
lea esi, [eax + 8]
mov eax, dword [0x101b0bb4]
push eax
inc eax
mov dword [0x101b0bb4], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.bin
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10074a45
mov eax, dword [ebp - 0x278]
add esp, 0x14
cmp byte [eax + 1], 0
je 0x1003b1ba
test byte [0x101b0c3c], 0x10
je 0x1003b1ba
push ebx
push edi
mov ecx, eax
call fcn.1003b310
jmp 0x1003b1ba
mov eax, dword [0x101b0ba4]
mov esi, 1
push eax
inc eax
mov dword [0x101b0ba4], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.cl
jmp 0x1003b1ac
mov eax, dword [0x101b0bb0]
mov esi, 4
push eax
inc eax
mov dword [0x101b0bb0], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.ghal3d
jmp 0x1003b1ac
mov eax, dword [0x101b0bac]
mov esi, 2
push eax
inc eax
mov dword [0x101b0bac], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.ll
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10074a45
add esp, 0x14
test dword [0x101b0c3c], esi
je 0x1003b2d5
push 0x103
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1003b2d5
lea eax, [ebp - 0x26c]
push 0x5c
push eax
call fcn.10075980
mov esi, eax
add esp, 8
test esi, esi
je 0x1003b1fc
inc esi
jmp 0x1003b202
lea esi, [ebp - 0x26c]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b207
sub ecx, edx
lea eax, [ecx - 4]
push eax
push esi
lea eax, [ebp - 0x168]
push 0x104
push eax
call fcn.10073e16
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003b230
sub esi, ecx
lea eax, [ebp - 0x44]
push eax
push 0x20
lea esi, [ebp + esi - 0x16c]
push esi
call fcn.10074a45
push 0x10091c54
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.100748aa
mov eax, dword [ebp - 0x274]
add esp, 0x18
test eax, eax
je 0x1003b28c
push eax
lea eax, [ebx - 1]
push eax
push 1
push edi
call fcn.1007576b
push dword [ebp - 0x274]
call fcn.1007440a
add esp, 0x14
cmp byte [ebp - 0x26d], 0
je 0x1003b2d5
test byte [0x101b0c3c], 0x20
je 0x1003b2d5
lea eax, [ebp - 0x24]
push eax
push str._s_elf.txt
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.10074a45
lea eax, [ebp - 0x44]
push eax
push 0x20
push esi
call fcn.10074a45
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x168]
add esp, 0x1c
push eax
push ebx
push edi
call fcn.1003b8b0
push 0x101b0b88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10072374
mov esp, ebp
pop ebp
ret 0xc