Function at 0x12fa9e1
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push edi
pushfd
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x88], eax
lea eax, [ebp + 4]
sub eax, 4
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x78], ebx
mov ecx, 0xfffffff
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
lea edi, [eax + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
mov esi, dword [eax]
mov dword [ebp - 0x2c], eax
shr esi, 1
mov eax, dword [eax + 4]
and eax, ecx
and esi, ecx
xor edx, edx
mov ecx, dword [0x10fb370]
mov dword [ebp - 0x38], ecx
lea ecx, [ecx + eax - 1]
mov eax, ecx
div dword [ebp - 0x38]
mov ebx, 0x1000000
add esi, ebx
mov eax, dword [0x10fb370]
sub ecx, edx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x18], ecx
mov eax, dword [0x1007420]
mov dword [ebp - 0x28], eax
mov eax, dword [0x10fb370]
mov eax, dword [0x1007420]
test eax, eax
je 0x12fab04
and dword [ebp - 0x3c], 0
mov eax, dword [0x1007420]
dec eax
lea ecx, [eax + 1]
xor eax, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x12faaad
mov edx, dword [0x138b4cc]
shr dword [ebp - 0x1c], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x138b4cc], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x1c], 0
jne 0x12faa83
xor edx, edx
div ecx
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], edx
jbe 0x12faaf6
mov eax, 0xef0b
inc dword [ebp - 0x3c]
mov ecx, 0xffff10f4
lea edx, [edx*4 + 0x1388f9c]
lock cmpxchg dword [edx], ecx
cmp eax, 0xef0b
je 0x12fac9e
mov ecx, dword [0x1007420]
mov eax, dword [ebp - 0x1c]
inc eax
xor edx, edx
div ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
cmp eax, dword [ebp - 0x28]
jb 0x12faaba
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x12fab8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
inc dword [ebp - 0x1c]
push 0x40
push 0x1000
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x12facb5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 0x11
jb 0x12fab11
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp dword [0x138b2f8], eax
ja 0x12fab4e
test al, 3
je 0x12fab66
test eax, eax
je 0x12fab62
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x14], 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 0
je 0x12faa53
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x12fab8a
mov byte [eax], 0
inc eax
dec ecx
jne 0x12fab83
mov eax, 0xba334826
add dword [edi], 8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
and eax, 0xfffffff
lea ecx, [eax + esi]
mov dword [ebp - 0x38], ecx
mov ecx, dword [0x10fb370]
mov dword [ebp - 0x44], esi
sub ecx, eax
sub dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
inc ecx
xor eax, eax
mov edx, ecx
test ecx, ecx
je 0x12fabe4
mov esi, dword [0x138b4cc]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x138b4cc], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x12fabbd
xor edx, edx
div ecx
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x44]
mov eax, 0x28844d6
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0xd], 0
mov eax, 0x84f19e62
mov eax, 0xfffffff
mov ecx, dword [0x102c94c]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
and esi, eax
and edi, eax
add esi, ebx
mov eax, ebx
add esp, 0x10
sub eax, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], eax
jne 0x12facbd
and dword [ebp - 0x18], 0
test edi, edi
jbe 0x12faed7
mov ecx, 0x7fffffff
mov esi, 0x72d985af
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + edx]
mov edx, esi
add eax, esi
add dword [ebp - 0x34], eax
add eax, dword [ebp - 0x30]
imul eax, eax, 0x72d985af
ror eax, 9
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x34], eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], edi
jb 0x12fac55
jmp 0x12faed7
mov eax, dword [0x10fb370]
imul eax, dword [ebp - 0x1c]
lea eax, [eax + section..data]
mov dword [ebp - 0x14], eax
jmp 0x12faafa
mov dword [ebp - 0x14], eax
jmp 0x12fab3f
mov ecx, esi
lea eax, [edi + ecx]
sub ecx, ebx
mov esi, ecx
mov edx, dword [0x100003c]
mov dword [ebp - 0x24], eax
lea edx, [edx + 0x10000a0]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x2c], edx
mov edx, ecx
add ecx, edi
and esi, 0xfffff000
sub edx, esi
mov dword [ebp - 0x28], edx
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], edx
add eax, ebx
mov edi, eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0x54], ecx
je 0x12fad18
cmp dword [edi], esi
jae 0x12fad18
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x54]
jne 0x12fad0c
and dword [ebp - 0x4c], 0
cmp edi, dword [ebp - 0x54]
je 0x12fad49
cmp dword [edi], esi
jne 0x12fad49
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
je 0x12fad49
lea esi, [edi + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x28]
jae 0x12fad49
inc dword [ebp - 0x4c]
inc esi
inc esi
cmp dword [ebp - 0x4c], ecx
jne 0x12fad32
mov esi, 0x72d985af
mov ecx, 0x7fffffff
jmp 0x12fad58
mov edx, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x54]
je 0x12fae8b
cmp dword [edi], edx
ja 0x12fae8b
mov eax, dword [edi + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x4c], eax
jne 0x12fad93
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x54]
je 0x12fae8b
mov eax, dword [ebp - 0x5c]
cmp dword [edi], eax
ja 0x12fae8b
and dword [ebp - 0x4c], 0
jmp 0x12fad69
mov eax, dword [ebp - 0x5c]
cmp dword [edi], eax
jne 0x12fadb0
mov eax, dword [ebp - 0x4c]
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x58]
jae 0x12fae8b
mov edx, dword [ebp - 0x4c]
mov eax, 0xf000
inc dword [ebp - 0x4c]
test word [edi + edx*2 + 8], ax
je 0x12fad55
movzx eax, word [edi + edx*2 + 8]
mov edx, dword [edi]
and dword [ebp - 0x18], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x28], eax
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
je 0x12fae2b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
mov edx, esi
add eax, esi
add dword [ebp - 0x34], eax
add eax, dword [ebp - 0x30]
imul eax, eax, 0x72d985af
ror eax, 9
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x34], eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
jb 0x12fade4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
sub eax, dword [ebp - 0x40]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x6c], eax
mov edx, esi
mov eax, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x6c]
add eax, esi
add dword [ebp - 0x34], eax
add eax, dword [ebp - 0x30]
imul eax, eax, 0x72d985af
ror eax, 9
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x34], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
mov dword [ebp - 0x30], eax
jb 0x12fae3a
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x12fad55
xor edi, edi
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
je 0x12faed7
mov edx, esi
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + edi]
add eax, esi
add dword [ebp - 0x34], eax
add eax, dword [ebp - 0x30]
imul eax, eax, 0x72d985af
ror eax, 9
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x12fae98
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x34]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x12faed9
mov eax, 0xeaa41377
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
and eax, 7
mov dword [ebp - 0x28], eax
je 0x12fb33d
xor ecx, ecx
cmp eax, ecx
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x14], ecx
not edi
jle 0x12faf46
push 0x38
pop edx
cmp dword [ebp - 0x14], 4
movzx ebx, byte [esi]
jge 0x12faf33
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x40], ebx
jmp 0x12faf3a
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x18], ebx
inc esi
inc dword [ebp - 0x14]
sub edx, 8
cmp dword [ebp - 0x14], eax
jl 0x12faf20
mov edx, dword [ebp - 0xc]
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov eax, edi
sub eax, ecx
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
xor eax, dword [ebp - 0x44]
xor ecx, eax
sub edx, ecx
movzx ecx, word [ebp - 8]
xor edi, edx
mov edx, edi
sub edx, ecx
xor edx, dword [ebp - 0xc]
xor eax, edx
mov ebx, eax
movzx edx, word [ebp - 6]
mov ecx, eax
xor ecx, edx
movzx edx, word [ebp - 0xa]
rol ecx, 7
imul ecx, edx
rol ebx, 0xf
add ebx, ecx
mov ecx, dword [ebp - 8]
xor edi, ebx
mov edx, edi
sub ecx, edi
rol ecx, 6
mov ebx, dword [ebp - 0x24]
imul ebx, ecx
mov ecx, dword [ebp - 0x24]
ror edx, 9
sub ebx, edx
xor eax, ebx
xor ecx, eax
rol ecx, 5
movzx edx, word [ebp - 6]
imul ecx, edx
mov ebx, eax
ror ebx, 1
sub ecx, ebx
xor edi, ecx
mov ebx, edi
movzx ecx, word [ebp - 8]
ror ebx, 2
sub ebx, ecx
imul ebx, edx
xor eax, ebx
mov ebx, dword [ebp - 0x24]
mov edx, ecx
movzx ecx, word [ebp - 0xa]
xor edx, eax
imul edx, ecx
mov ecx, eax
shr ecx, 0xc
xor edx, ecx
xor edi, edx
mov ecx, dword [ebp - 8]
xor ecx, edi
ror ecx, 6
imul ebx, ecx
mov edx, edi
rol edx, 4
add edx, ebx
movzx ecx, word [ebp - 6]
xor eax, edx
mov edx, eax
mov ebx, dword [ebp - 0x24]
xor ebx, eax
imul ebx, ecx
ror edx, 3
add edx, ebx
xor edi, edx
mov ebx, edi
mov ecx, edi
movzx edx, word [ebp - 8]
sub ecx, dword [ebp - 0xc]
rol ecx, 4
ror ebx, 0xc
imul edx, ecx
add ebx, edx
mov edx, dword [ebp - 8]
xor eax, ebx
mov ebx, eax
movzx ecx, dx
sub ebx, ecx
movzx ecx, word [ebp - 0xa]
imul ebx, ecx
mov ecx, eax
and dword [ebp - 0x14], 0
shr ecx, 0xe
sub ebx, ecx
xor edi, ebx
sub edx, edi
ror edx, 0xc
mov ebx, edi
mov ecx, dword [ebp - 0x24]
imul ecx, edx
xor edi, dword [ebp - 0x18]
rol ebx, 7
add ebx, ecx
xor ebx, dword [ebp - 0x40]
xor eax, ebx
mov ecx, edi
mov ebx, dword [ebp - 0x28]
test ebx, ebx
mov dword [ebp - 0x24], eax
jle 0x12fb098
cmp dword [ebp - 0x14], 4
jge 0x12fb07f
rol dword [ebp - 0x24], 8
mov dl, byte [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
inc dword [ebp - 0x20]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x12fb08d
mov edx, dword [ebp - 0x20]
inc dword [ebp - 0x20]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jl 0x12fb065
add ebx, 0xfffffffc
test ebx, ebx
jle 0x12fb323
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
mov ebx, 0x1000000
mov ecx, dword [ebp - 0x3c]
shr ecx, 3
test ecx, ecx
jbe 0x12fb287
movzx edi, word [ebp - 6]
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [esi]
movzx edi, byte [esi + 1]
shl ecx, 8
movzx ebx, byte [esi + 5]
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
shl edi, 8
movzx ecx, byte [esi + 3]
or edi, ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 6]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 7]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov ebx, edx
mov dword [ebp - 0x68], ecx
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0x24], edi
sub ebx, ecx
mov ecx, dword [ebp - 8]
sub ebx, dword [ebp - 8]
xor ebx, edi
xor eax, ebx
mov edi, dword [ebp - 0xc]
xor ecx, eax
sub edi, ecx
movzx ecx, word [ebp - 8]
xor edx, edi
mov edi, edx
sub edi, ecx
xor edi, dword [ebp - 0xc]
add esi, 8
xor eax, edi
mov ecx, eax
xor ecx, dword [ebp - 0x14]
mov edi, eax
rol ecx, 7
imul ecx, dword [ebp - 0x28]
rol edi, 0xf
add edi, ecx
mov ecx, dword [ebp - 8]
xor edx, edi
mov ebx, edx
movzx edi, word [ebp - 0xc]
sub ecx, edx
rol ecx, 6
imul edi, ecx
movzx ecx, word [ebp - 0xc]
ror ebx, 9
sub edi, ebx
xor eax, edi
xor ecx, eax
mov edi, eax
rol ecx, 5
imul ecx, dword [ebp - 0x14]
ror edi, 1
sub ecx, edi
xor edx, ecx
mov edi, edx
ror edi, 2
movzx ecx, word [ebp - 8]
sub edi, ecx
imul edi, dword [ebp - 0x14]
xor eax, edi
xor ecx, eax
mov edi, eax
imul ecx, dword [ebp - 0x28]
shr edi, 0xc
xor ecx, edi
movzx edi, word [ebp - 0xc]
xor edx, ecx
mov ebx, edx
mov ecx, dword [ebp - 8]
xor ecx, edx
ror ecx, 6
imul edi, ecx
movzx ecx, word [ebp - 0xc]
rol ebx, 4
add ebx, edi
xor eax, ebx
xor ecx, eax
mov edi, eax
imul ecx, dword [ebp - 0x14]
ror edi, 3
add edi, ecx
xor edx, edi
movzx edi, word [ebp - 8]
mov ebx, edx
mov ecx, edx
sub ecx, dword [ebp - 0xc]
rol ecx, 4
imul edi, ecx
movzx ecx, word [ebp - 8]
ror ebx, 0xc
add ebx, edi
xor eax, ebx
mov edi, eax
sub edi, ecx
mov ecx, eax
imul edi, dword [ebp - 0x28]
shr ecx, 0xe
sub edi, ecx
xor edx, edi
movzx edi, word [ebp - 0xc]
mov ebx, edx
mov ecx, dword [ebp - 8]
sub ecx, edx
ror ecx, 0xc
imul edi, ecx
xor edx, dword [ebp - 0x18]
rol ebx, 7
add ebx, edi
mov edi, dword [ebp - 0x20]
xor ebx, dword [ebp - 0x40]
xor eax, ebx
mov cl, byte [ebp - 0xd]
xor cl, al
xor cl, dl
mov byte [edi + 3], al
ror eax, 8
mov byte [edi + 7], dl
mov byte [edi + 2], al
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 6], dl
ror eax, 8
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 1], al
ror eax, 8
mov byte [edi + 5], dl
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x24]
mov byte [edi], al
mov byte [edi + 4], dl
mov dword [ebp - 0x40], ecx
add edi, 8
mov ecx, dword [ebp - 0x68]
dec dword [ebp - 0x2c]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edi
jne 0x12fb0d5
mov ebx, 0x1000000
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 8]
xor al, byte [ebp - 0xd]
je 0x12fb351
call fcn.010bfbea
mov edx, 0xfffff000
mov esi, eax
mov eax, dword [ebp - 0x48]
and eax, 0xfffffffc
mov edi, eax
and esi, edx
mov eax, dword [ebp - 0x64]
lea ecx, [edi + 0xfff]
mov dword [eax + 8], 0x12e07d9
and ecx, edx
mov edx, 0xffff
xor eax, eax
mov ebx, dword [0x138b4cc]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x138b4cc], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x12fb2c5
mov ebx, 0xffff
div ebx
mov eax, edi
inc edx
mov dword [ebp - 0x8c], esi
cmp edi, ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x48], 0
jae 0x12fb319
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x12fb30d
mov eax, 0x12e07d9
jmp 0x12fb41d
xor edx, edx
test ebx, ebx
jge 0x12fb0b1
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x12fb0b1
xor edx, edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
not eax
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x12fb0b6
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x102c94c]
sub eax, dword [ebp - 0x1c]
sub ebx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ebx
jne 0x12fb36f
test eax, eax
je 0x12fb410
mov ecx, dword [0x1069ab8]
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
add eax, edi
xor ebx, ebx
dec ecx
mov dword [ebp - 0x48], eax
js 0x12fb3b2
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp edi, edx
jae 0x12fb3a9
lea ecx, [eax - 1]
jmp 0x12fb3ae
jbe 0x12fb3b6
lea ebx, [eax + 1]
cmp ecx, ebx
jge 0x12fb38b
mov edi, ebx
jmp 0x12fb408
mov edi, eax
jmp 0x12fb408
mov eax, dword [edi*4 + 0x1069abc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x12fb410
lea ebx, [ecx + esi + 0x1000000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
dec ecx
je 0x12fb3fb
dec ecx
je 0x12fb3f6
dec ecx
jne 0x12fb401
mov edx, dword [ebp - 0x38]
jmp 0x12fb401
mov edx, dword [ebp - 0x2c]
jmp 0x12fb401
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
dec eax
dec eax
jne 0x12fb407
add dword [ebx], edx
inc edi
cmp edi, dword [0x1069ab8]
jb 0x12fb3ba
mov eax, dword [0x10fb370]
mov eax, 0x938a2536
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x84]
mov esp, ebp
pop ebp
popfd
ret