Function at 0x1012e390
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
wait
fnstcw word [ebp - 8]
mov ax, word [ebp - 8]
movzx ecx, ax
and ecx, 1
shl ecx, 4
test al, 4
je 0x1012e38d
or ecx, 8
test al, 8
je 0x1012e394
or ecx, 4
test al, 0x10
je 0x1012e39b
or ecx, 2
test al, 0x20
je 0x1012e3a2
or ecx, 1
test al, 2
je 0x1012e3ac
or ecx, 0x80000
push ebx
push esi
movzx esi, ax
mov ebx, 0xc00
mov edx, esi
push edi
mov edi, 0x200
and edx, ebx
je 0x1012e3e8
cmp edx, 0x400
je 0x1012e3e2
cmp edx, 0x800
je 0x1012e3de
cmp edx, ebx
jne 0x1012e3e8
or ecx, 0x300
jmp 0x1012e3e8
or ecx, edi
jmp 0x1012e3e8
or ecx, 0x100
and esi, 0x300
je 0x1012e3fc
cmp esi, edi
jne 0x1012e402
or ecx, 0x10000
jmp 0x1012e402
or ecx, 0x20000
movzx eax, ax
mov edx, 0x1000
test edx, eax
je 0x1012e414
or ecx, 0x40000
mov edi, dword [ebp + 0xc]
mov esi, edi
mov eax, dword [ebp + 8]
not esi
and esi, ecx
and eax, edi
or esi, eax
cmp esi, ecx
je 0x1012e4d4
push esi
call fcn.1012e66e
pop ecx
mov word [ebp - 4], ax
fldcw word [ebp - 4]
wait
fnstcw word [ebp - 4]
mov ax, word [ebp - 4]
movzx esi, ax
and esi, 1
shl esi, 4
test al, 4
je 0x1012e452
or esi, 8
test al, 8
je 0x1012e459
or esi, 4
test al, 0x10
je 0x1012e460
or esi, 2
test al, 0x20
je 0x1012e467
or esi, 1
test al, 2
je 0x1012e471
or esi, 0x80000
movzx edx, ax
mov ecx, edx
and ecx, ebx
je 0x1012e4a4
cmp ecx, 0x400
je 0x1012e49e
cmp ecx, 0x800
je 0x1012e496
cmp ecx, ebx
jne 0x1012e4a4
or esi, 0x300
jmp 0x1012e4a4
or esi, 0x200
jmp 0x1012e4a4
or esi, 0x100
and edx, 0x300
je 0x1012e4bc
cmp edx, 0x200
jne 0x1012e4c2
or esi, 0x10000
jmp 0x1012e4c2
or esi, 0x20000
movzx eax, ax
mov edx, 0x1000
test edx, eax
je 0x1012e4d4
or esi, 0x40000
cmp dword [0x101b6300], 1
jl 0x1012e667
and edi, 0x308031f
stmxcsr dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 3
and eax, 0x10
test ecx, 0x200
je 0x1012e501
or eax, 8
test ecx, 0x400
je 0x1012e50c
or eax, 4
test ecx, 0x800
je 0x1012e517
or eax, 2
test edx, ecx
je 0x1012e51e
or eax, 1
test ecx, 0x100
je 0x1012e52b
or eax, 0x80000
mov edx, ecx
mov ebx, 0x6000
and edx, ebx
je 0x1012e55d
cmp edx, 0x2000
je 0x1012e558
cmp edx, 0x4000
je 0x1012e551
cmp edx, ebx
jne 0x1012e55d
or eax, 0x300
jmp 0x1012e55d
or eax, 0x200
jmp 0x1012e55d
or eax, 0x100
push pe_nt_image_headers32
and ecx, 0x8040
pop ebx
sub ecx, ebx
je 0x1012e584
sub ecx, 0x7fc0
je 0x1012e57d
sub ecx, ebx
jne 0x1012e589
or eax, 0x1000000
jmp 0x1012e589
or eax, 0x3000000
jmp 0x1012e589
or eax, 0x2000000
mov ecx, edi
and edi, dword [ebp + 8]
not ecx
and ecx, eax
or ecx, edi
cmp ecx, eax
je 0x1012e650
push ecx
call fcn.1012e1e8
push eax
mov dword [ebp - 0xc], eax
call fcn.10124b49
pop ecx
pop ecx
stmxcsr dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 3
and eax, 0x10
test ecx, 0x200
je 0x1012e5c7
or eax, 8
test ecx, 0x400
je 0x1012e5d2
or eax, 4
test ecx, 0x800
je 0x1012e5dd
or eax, 2
test ecx, 0x1000
je 0x1012e5e8
or eax, 1
test ecx, 0x100
je 0x1012e5f5
or eax, 0x80000
mov edx, ecx
mov edi, 0x6000
and edx, edi
je 0x1012e627
cmp edx, 0x2000
je 0x1012e622
cmp edx, 0x4000
je 0x1012e61b
cmp edx, edi
jne 0x1012e627
or eax, 0x300
jmp 0x1012e627
or eax, 0x200
jmp 0x1012e627
or eax, 0x100
and ecx, 0x8040
sub ecx, ebx
je 0x1012e64b
sub ecx, 0x7fc0
je 0x1012e644
sub ecx, ebx
jne 0x1012e650
or eax, 0x1000000
jmp 0x1012e650
or eax, 0x3000000
jmp 0x1012e650
or eax, 0x2000000
mov ecx, eax
xor eax, esi
or ecx, esi
test eax, 0x8031f
je 0x1012e663
or ecx, 0x80000000
mov eax, ecx
jmp 0x1012e669
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret