Function at 0x10012980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb94
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov eax, esi
imul eax, eax, 0x7f8
push edi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x258], eax
cmp esi, eax
ja 0x10012ee5
mov ebx, dword [ebp - 0x258]
mov edx, ecx
jmp 0x100129d7
mov edx, dword [ebp - 0x238]
cmp esi, 0x649c
ja 0x10012dd7
je 0x10012d6b
cmp esi, 0x22c9
ja 0x10012a59
je 0x10012cf4
mov eax, esi
sub eax, 0x41
je 0x10013001
sub eax, 0xf
je 0x10012a1b
sub eax, 0x6c
jne 0x10013001
mov dword [ebp - 0x240], eax
jmp 0x10013001
push 2
lea edx, [ebp - 0xc]
push 0x10036e04
push edx
call fcn.10026900
push 2
lea eax, [ebp - 0xb]
push 0x10034aec
push eax
call fcn.10026900
lea edi, [ebp - 0xc]
add esp, 0x18
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10012a42
mov cx, word [0x10034738]
mov word [edi], cx
jmp 0x10013001
cmp esi, 0x2ad0
je 0x10012d14
cmp esi, 0x4551
je 0x10012a9f
cmp esi, 0x5550
jne 0x10013001
push 0x67
push 0
push 0
push 0
push 0
call fcn.1000b660
lea edx, [ebp - 0x2c]
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10012a90
jmp 0x10013001
mov dword [ebp - 0x250], 0x83
lea esp, [esp]
mov eax, dword [ebp - 0x250]
sub eax, 0x83
je 0x10012ad9
sub eax, 0x1f
jne 0x10012cd4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x268], edi
cmp edi, 0xffffffff
je 0x10012cc0
mov esi, 3
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x24c], 4
mov edi, edi
cmp esi, 3
ja case.default.0x10012b29
jmp dword [esi*4 + 0x10013044]
mov ebx, dword [ebp - 0x238]
push ebx
push 0x3e
lea eax, [ebp - 0xb94]
push 0
push eax
call fcn.10023b10
lea ecx, [ebp - 0xb94]
push ecx
push ebx
push 0xd2
call fcn.10022960
add esp, 0x1c
mov ebx, eax
jmp case.default.0x10012b29
push 0x103
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0xb8c]
push eax
mov dword [ebp - 0xb90], 3
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp case.default.0x10012b29
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 4
mov dword [ebp - 0xb94], eax
jmp case.default.0x10012b29
mov eax, dword [ebp - 0xb90]
test ebx, ebx
jne 0x10012c89
test eax, eax
jne 0x10012c89
mov edi, dword [ebp - 0x238]
mov esi, 0xc7
jmp 0x10012bd0
mov eax, esi
sub eax, 0xc7
je 0x10012c53
dec eax
jne 0x10012c6e
lea edx, [ebp - 0xb94]
push edx
push edi
push 0xd2
call fcn.10022960
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10012c42
mov esi, dword [ebp - 0x268]
mov eax, dword [ebp - 0xb94]
test eax, eax
je 0x10012c42
push 0
lea ecx, [ebp - 0x270]
push ecx
push eax
lea edx, [ebp - 0xb90]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xb94]
push eax
push edi
push 0xd2
call fcn.10022960
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10012c05
mov esi, 0xc8
mov dword [ebp - 0x244], 0x4551
jmp 0x10012c6e
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x234]
push edx
push str.BFD_RELOC_OR1K_TLS_LDM_LO16
call fcn.10026fc6
add esp, 0xc
inc esi
cmp esi, 0xc9
jb 0x10012bd0
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
jmp 0x10012ca4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x234]
push eax
push str.llvm.x86.mic.mask.sub.pq
call fcn.10002df0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
dec dword [ebp - 0x24c]
mov dword [ebp - 0x264], esi
jne 0x10012b20
jmp 0x10012cd4
lea ecx, [ebp - 0x130]
push ecx
push str.oclProgramDebug_
call fcn.10002df0
add esp, 8
mov eax, dword [ebp - 0x250]
add eax, 0x1f
mov dword [ebp - 0x250], eax
cmp eax, 0xc1
jb 0x10012ab0
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x254]
push 0x9e
lea edx, [ebp - 0x234]
push edx
push eax
call fcn.10006880
add esp, 0xc
jmp 0x10013001
lea edi, [ebp - 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10012d18
mov cx, word [0x10034738]
push 0
push 0
push 0x60
push 0
push 0
mov word [edi], cx
call fcn.10024330
mov edx, dword [ebp - 0x238]
mov ecx, dword [edx]
push eax
lea edx, [ebp - 0x24c]
push edx
push 0
push 0xc9
mov dword [ebp - 0x24c], ecx
call fcn.10025e80
add esp, 0x24
test al, al
je 0x10012ede
jmp 0x10013001
test edx, edx
jne 0x10012d76
push str.e.stopPropag_
jmp 0x10012d87
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
test ecx, ecx
jne 0x10012db6
push str.getBooleanVolatile
push 0x1003455f
push 0
push 0x1003455f
push 0x1003455c
push 2
call fcn.100021f0
add esp, 0x18
mov dword [ebp - 0x240], 2
mov esi, 0x649c
jmp 0x10013001
mov eax, dword [edx + 0x80]
test eax, eax
je 0x10012dcd
push ecx
push edx
call eax
add esp, 8
mov dword [ebp - 0x240], eax
mov esi, 0x649c
jmp 0x10013001
cmp esi, 0xd4d0
ja 0x10012efc
je 0x10012e90
cmp esi, 0x7fd0
je 0x10012e51
cmp esi, 0xaa50
je 0x10012e1c
cmp esi, 0xc87c
jne 0x10013001
mov eax, dword [ebp - 0x240]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x23c]
push 0x4f
push edx
call fcn.10010360
add esp, 0xc
test al, al
je 0x10012ede
mov eax, dword [ebp - 0x23c]
push eax
call dword [0x10040180]
mov dword [ebp - 0x260], eax
jmp 0x10013001
lea eax, [ebp - 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10012e56
lea edi, [ebp - 0x2c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10012e63
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x23c], 0
jmp 0x10013001
cmp dword [ebp - 0x260], 0
je 0x10013035
push 0
push 0xb5
push 0
mov dword [ebp - 0x248], 0
call fcn.1001c470
push eax
lea ecx, [ebp - 0x248]
push 0x4f
push ecx
call fcn.10010360
add esp, 0x18
test al, al
jne 0x10013001
mov edx, dword [ebp - 0x23c]
push edx
call fcn.10027d1a
add esp, 4
mov byte [ebp - 0x238], 0
mov eax, dword [ebp - 0x238]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
cmp esi, 0xff50
je 0x10012f8d
cmp esi, 0x129d0
je 0x10012f43
cmp esi, 0x15450
jne 0x10013001
cmp dword [ebp - 0x25c], 0
pop edi
setne al
mov byte [ebp - 0x238], al
mov eax, dword [ebp - 0x238]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x26c]
push 1
push edi
call dword [0x10040184]
mov ecx, dword [ebp - 0x25c]
test ecx, ecx
je 0x10012f70
mov edx, dword [ebp - 0x238]
push eax
mov eax, dword [edx]
mov edx, dword [0x10040158]
push edi
push eax
push edx
call ecx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.10027d1a
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.10027d1a
add esp, 8
jmp 0x10013001
mov edx, dword [ebp - 0x248]
push edx
call dword [0x10040180]
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x10012fe1
mov edi, 0x30
lea esp, [esp]
mov eax, edi
sub eax, 0x30
je 0x10012fc0
dec eax
je 0x10012ede
jmp 0x10012fdb
mov eax, dword [ebp - 0x23c]
push eax
call fcn.10027d1a
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.10027d1a
add esp, 8
inc edi
cmp edi, 0x32
jb 0x10012fb0
push 0
push 0x25
call fcn.1000ee30
mov edx, dword [ebp - 0x260]
add esp, 8
push eax
push edx
call dword [0x10040184]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x88
add esi, eax
mov dword [ebp - 0x244], esi
cmp esi, dword [ebp - 0x258]
jbe 0x100129d1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x23c]
push ecx
jmp 0x10012ed6