Function at 0x1003ab90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10174348
mov dword [ebp - 0x278], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x101768e4]
mov eax, dword [0x101768f0]
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x288], eax
mov ax, word [0x101768f8]
add edx, 0xfffffff3
mov dword [ebp - 0x274], 0
mov byte [ebp - 0x26d], 0
mov word [ebp - 0x280], ax
cmp edx, 5
ja case.default.0x1003abf7
jmp dword [edx*4 + 0x1003af44]
push str._ivb_gen7
jmp 0x1003ac2d
push str._hsw_gen75
jmp 0x1003ac2d
push str._vlv_gen7
jmp 0x1003ac2d
push str._bdw_gen8
jmp 0x1003ac2d
push str._chv_gen8
jmp 0x1003ac2d
push str._skl_gen9
jmp 0x1003ac2d
push str._unknown
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.100735d5
movq xmm0, qword [ebp - 0x294]
add esp, 0xc
lea eax, [ebp - 0x64]
push 0x20
push eax
mov eax, dword [ebp - 0x27c]
sub esp, 0x1c
mov ecx, esp
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x28c]
movq qword [ecx + 8], xmm0
movq xmm0, qword [ebp - 0x284]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
call fcn.10039690
push 0x10090c80
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.1007362a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.1007362a
add esp, 0x18
test edi, edi
je 0x1003af25
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1003af25
cmp dword [edi], 0x464c457f
jne 0x1003acdd
mov eax, dword [0x10174368]
push eax
inc eax
mov dword [0x10174368], eax
lea eax, [ebp - 0x24]
push eax
mov esi, 0x20
mov byte [ebp - 0x26d], 1
push str._s__d.elf
jmp 0x1003adf9
push str.IGHAL_pc_win32
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003addf
push str.target_triple___GHAL3D
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003addf
push str.target_triple___IGIL
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003addf
push str.target_triple___igil
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003addf
push str.VERSION_2_
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003adc3
push str.VERSION_3_
push edi
call fcn.10072a90
add esp, 8
test eax, eax
jne 0x1003adc3
cmp dword [edi], 0x494e5443
jne 0x1003ada7
lea esi, [eax + 8]
mov eax, dword [0x10174374]
push eax
inc eax
mov dword [0x10174374], eax
lea eax, [ebp - 0x24]
push eax
push str._s__d.bin
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.100742f9
mov eax, dword [ebp - 0x278]
add esp, 0x14
cmp byte [eax + 1], 0
je 0x1003ae07
test byte [0x101743fc], 0x10
je 0x1003ae07
push ebx
push edi
mov ecx, eax
call fcn.1003af60
jmp 0x1003ae07
mov eax, dword [0x10174364]
push eax
inc eax
mov dword [0x10174364], eax
lea eax, [ebp - 0x24]
push eax
mov esi, 1
push str._s__d.cl
jmp 0x1003adf9
mov eax, dword [0x10174370]
push eax
inc eax
mov dword [0x10174370], eax
lea eax, [ebp - 0x24]
push eax
mov esi, 4
push str._s__d.ghal3d
jmp 0x1003adf9
mov eax, dword [0x1017436c]
push eax
inc eax
mov dword [0x1017436c], eax
lea eax, [ebp - 0x24]
push eax
mov esi, 2
push str._s__d.ll
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.100742f9
add esp, 0x14
test dword [0x101743fc], esi
je 0x1003af25
push 0x103
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1003af25
lea eax, [ebp - 0x26c]
push 0x5c
push eax
call fcn.100751f0
mov esi, eax
add esp, 8
test esi, esi
je 0x1003ae49
inc esi
jmp 0x1003ae4f
lea esi, [ebp - 0x26c]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ae54
sub ecx, edx
lea eax, [ecx - 4]
push eax
push esi
lea eax, [ebp - 0x168]
push 0x104
push eax
call fcn.100736d6
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003ae80
lea eax, [ebp - 0x44]
sub esi, ecx
push eax
lea esi, [ebp + esi - 0x16c]
push 0x20
push esi
call fcn.100742f9
push 0x10090cc4
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.1007415e
mov eax, dword [ebp - 0x274]
add esp, 0x18
test eax, eax
je 0x1003aedc
push eax
lea eax, [ebx - 1]
push eax
push 1
push edi
call fcn.10074fd8
push dword [ebp - 0x274]
call fcn.10073cc2
add esp, 0x14
cmp byte [ebp - 0x26d], 0
je 0x1003af25
test byte [0x101743fc], 0x20
je 0x1003af25
lea eax, [ebp - 0x24]
push eax
push str._s_elf.txt
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.100742f9
lea eax, [ebp - 0x44]
push eax
push 0x20
push esi
call fcn.100742f9
mov ecx, dword [ebp - 0x278]
add esp, 0x1c
lea eax, [ebp - 0x168]
push eax
push ebx
push edi
call fcn.1003b500
push 0x10174348
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071c54
mov esp, ebp
pop ebp
ret 0xc