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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x90], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x8c], ebx
mov ebx, 0xfffffff
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], edi
mov edi, dword [0x1116588]
mov esi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0x50], eax
mov eax, dword [esi]
shr eax, 3
and eax, ebx
xor edx, edx
lea ecx, [edi + eax - 1]
mov eax, ecx
div edi
sub ecx, edx
mov eax, dword [0x1116588]
mov dword [ebp - 0x40], ecx
mov eax, dword [0x1011bb0]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1116588]
mov eax, dword [0x1011bb0]
test eax, eax
je 0x1222789
and dword [ebp - 0x30], 0
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x1222741
mov edi, dword [0x12d47a4]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x12d47a4], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x122271a
xor edx, edx
div ecx
cmp dword [ebp - 0x48], 0
jbe 0x1222783
inc dword [ebp - 0x30]
mov eax, 0xcb65
mov ecx, 0xffff349a
lea edi, [edx*4 + 0x12d4c14]
lock cmpxchg dword [edi], ecx
cmp eax, 0xcb65
je 0x1222926
lea eax, [edx + 1]
mov ecx, dword [0x1011bb0]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
jb 0x122274b
xor edi, edi
test edi, edi
jne 0x1222802
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 0x20], eax
inc edi
push 0x40
push 0x1000
push dword [ebp - 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x122293a
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x11
jb 0x1222794
xor edi, edi
cmp dword [0x12ef80c], edi
ja 0x12227cd
test edi, 3
je 0x12227e1
test edi, edi
je 0x12227df
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x12226eb
mov eax, edi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x1222802
mov byte [eax], 0
inc eax
dec ecx
jne 0x12227fb
mov eax, 0xa65e48e0
mov eax, dword [esi]
mov ecx, eax
and ecx, 7
lea ecx, [esi + ecx + 8]
mov esi, 0x1000000
shr eax, 3
and eax, ebx
lea ebx, [ecx + eax]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [0x1116588]
sub ecx, eax
sub dword [ebp - 0x44], esi
inc ecx
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x122286a
mov edx, dword [0x12d47a4]
shr dword [ebp - 0x30], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x12d47a4], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x30], 0
jne 0x1222840
xor edx, edx
div ecx
lea eax, [edx + edi]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x44]
mov eax, 0x4568ec3b
lea eax, [ebp - 0x78]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0xd], 0
mov eax, 0x2f149218
mov ecx, dword [0x11e47bc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov eax, 0xfffffff
and edi, eax
and ebx, eax
add edi, esi
add esp, 0x10
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x1c], edi
mov edi, 0xfffff000
mov dword [ebp - 0x38], eax
jne 0x1222941
and dword [ebp - 0x14], 0
test ebx, ebx
jbe 0x1222b4a
mov ecx, 0x7fffffff
mov esi, 0xe7acf032
mov edi, 0x18530fce
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
sub eax, edi
mov edx, esi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
mul edx
add eax, edx
mov edx, esi
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 - 0x28], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], ebx
jb 0x12228e0
jmp 0x1222b4a
mov edi, dword [0x1116588]
imul edi, edx
lea edi, [edi + section..data]
jmp 0x1222785
mov edi, eax
jmp 0x12227bd
mov edx, dword [0x100003c]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ebx]
sub ecx, esi
lea edx, [edx + 0x10000a0]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
add eax, esi
mov dword [ebp - 0x20], edx
mov edx, ecx
mov esi, ecx
add ecx, ebx
mov ebx, eax
and esi, edi
sub edx, esi
mov dword [ebp - 0x14], edx
mov edx, ecx
and edx, edi
sub ecx, edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x64], edx
cmp eax, ecx
mov dword [ebp - 0x5c], ecx
je 0x1222995
cmp dword [ebx], esi
jae 0x1222995
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x5c]
jne 0x1222989
xor eax, eax
cmp ebx, dword [ebp - 0x5c]
je 0x12229c2
cmp dword [ebx], esi
jne 0x12229c2
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
je 0x12229c2
lea esi, [ebx + 8]
movzx edi, word [esi]
and edi, 0xfff
cmp edi, dword [ebp - 0x14]
jae 0x12229c2
inc eax
inc esi
inc esi
cmp eax, ecx
jne 0x12229ad
mov ecx, 0x7fffffff
mov edi, 0x18530fce
mov esi, 0xe7acf032
jmp 0x12229d9
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
cmp ebx, dword [ebp - 0x5c]
je 0x1222b01
cmp dword [ebx], edx
ja 0x1222b01
mov edx, dword [ebx + 4]
add edx, 0xfffffff8
shr edx, 1
cmp eax, edx
jne 0x1222a11
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x5c]
je 0x1222b01
mov eax, dword [ebp - 0x64]
cmp dword [ebx], eax
ja 0x1222b01
xor eax, eax
jmp 0x12229ea
mov edx, dword [ebp - 0x64]
cmp dword [ebx], edx
jne 0x1222a2c
movzx edx, word [ebx + eax*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x60]
jae 0x1222b01
mov edx, eax
inc eax
mov dword [ebp - 0x54], eax
mov eax, 0xf000
test word [ebx + edx*2 + 8], ax
je 0x12229d3
movzx eax, word [ebx + edx*2 + 8]
mov edx, dword [ebx]
and dword [ebp - 0x14], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x34], eax
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
je 0x1222aa4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
mov edx, esi
sub eax, edi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
mul edx
add eax, edx
mov edx, esi
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 - 0x28], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x1222a60
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
sub eax, dword [ebp - 0x38]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [ebp + eax - 0x68]
mov edx, esi
sub eax, edi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
mul edx
add eax, edx
mov edx, esi
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 - 0x28], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
mov dword [ebp - 0x24], eax
jb 0x1222ab3
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x1c], eax
jmp 0x12229d3
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
je 0x1222b4a
mov edx, esi
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + ebx]
sub eax, edi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
mul edx
add eax, edx
mov edx, esi
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 - 0x28], eax
mov dword [ebp - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x1222b0e
xor ebx, ebx
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x28]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x1222b4e
mov eax, 0xfee4f2a6
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
and eax, 7
mov dword [ebp - 0x20], eax
je 0x1222d22
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
cmp eax, ebx
mov dword [ebp - 0x18], ebx
not esi
jle 0x1222bb9
push 0x38
pop edx
movzx ebx, byte [edi]
cmp dword [ebp - 0x18], 4
jge 0x1222ba6
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x38], ebx
jmp 0x1222bad
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x34], ebx
inc edi
inc dword [ebp - 0x18]
sub edx, 8
cmp dword [ebp - 0x18], eax
jl 0x1222b93
movzx ecx, word [ebp - 6]
movzx ebx, word [ebp - 0xc]
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0xc]
xor eax, esi
xor eax, dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x14], ebx
sub edx, ecx
sub edx, dword [ebp - 0xc]
xor esi, edx
xor ebx, esi
mov dword [ebp - 0x3c], ecx
movzx edx, word [ebp - 8]
imul ebx, edx
mov dword [ebp - 0x2c], edx
mov edx, esi
shr edx, 1
add ebx, edx
xor eax, ebx
mov ebx, eax
movzx edx, word [ebp - 0xa]
mov dword [ebp - 0x18], edx
sub ebx, ecx
imul ebx, edx
mov ecx, eax
shr ecx, 2
sub ebx, ecx
xor esi, ebx
mov ecx, esi
xor edx, esi
imul edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x3c]
ror ecx, 0xe
sub edx, ecx
mov ecx, dword [ebp - 0xc]
xor eax, edx
mov edx, eax
sub ecx, eax
rol ecx, 8
imul ebx, ecx
rol edx, 0xa
sub ebx, edx
xor esi, ebx
mov ecx, esi
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
xor edx, esi
imul edx, dword [ebp - 0x2c]
ror ecx, 5
xor ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 8]
mov edx, eax
add ecx, eax
ror ecx, 2
imul ebx, ecx
rol edx, 0xc
mov ecx, dword [ebp - 0xc]
add edx, ebx
xor esi, edx
mov edx, dword [ebp - 8]
xor ecx, esi
sub edx, ecx
mov ecx, dword [ebp - 0x3c]
xor eax, edx
movzx edx, word [ebp - 0xc]
mov ebx, eax
ror ebx, 5
xor ebx, ecx
imul ebx, edx
xor esi, ebx
xor ecx, esi
mov edx, esi
imul ecx, dword [ebp - 0x2c]
shr edx, 0xf
xor ecx, edx
mov edx, dword [ebp - 0x18]
xor eax, ecx
mov ebx, eax
mov ecx, dword [ebp - 8]
add ecx, eax
ror ecx, 0xe
imul edx, ecx
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x18], 0
rol ebx, 0xa
sub edx, ebx
xor esi, edx
mov ebx, esi
movzx edx, word [ebp - 0xc]
xor ecx, esi
imul ecx, edx
xor esi, dword [ebp - 0x34]
ror ebx, 3
add ebx, ecx
xor ebx, dword [ebp - 0x38]
xor eax, ebx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov ecx, esi
mov dword [ebp - 0x2c], eax
jle 0x1222cf8
cmp dword [ebp - 0x18], 4
jge 0x1222cdf
rol dword [ebp - 0x2c], 8
mov dl, byte [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x1222ced
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x18], ebx
jl 0x1222cc5
add ebx, 0xfffffffc
test ebx, ebx
jle 0x1222d0f
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr esi, cl
shl esi, cl
mov edx, esi
jmp 0x1222d31
xor edx, edx
test ebx, ebx
jge 0x1222d31
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1222d31
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
xor edx, edx
not eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov ecx, dword [ebp - 0x40]
shr ecx, 3
test ecx, ecx
jbe 0x1222f03
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x6c], esi
movzx esi, word [ebp - 6]
mov dword [ebp - 0x3c], esi
movzx esi, word [ebp - 0xa]
mov dword [ebp - 0x18], esi
movzx esi, word [ebp - 0xc]
mov dword [ebp - 0x14], esi
movzx esi, byte [edi + 1]
movzx ebx, byte [edi + 5]
movzx ecx, byte [edi]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 2]
shl ecx, 8
or ecx, esi
shl ecx, 8
movzx esi, byte [edi + 3]
or ecx, esi
movzx esi, byte [edi + 4]
shl esi, 8
or esi, ebx
shl esi, 8
movzx ebx, byte [edi + 6]
or esi, ebx
movzx ebx, byte [edi + 7]
shl esi, 8
or esi, ebx
xor edx, esi
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0x6c]
xor esi, ecx
xor esi, edx
xor eax, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp - 0x3c]
mov ecx, eax
sub ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0xc]
add edi, 8
xor edx, ecx
movzx ecx, word [ebp - 8]
xor esi, edx
imul esi, ecx
mov ecx, edx
shr ecx, 1
add esi, ecx
xor eax, esi
mov ecx, eax
sub ecx, dword [ebp - 0x3c]
imul ecx, dword [ebp - 0x18]
mov esi, eax
shr esi, 2
sub ecx, esi
mov esi, dword [ebp - 0x18]
xor edx, ecx
mov ecx, edx
xor esi, edx
imul esi, dword [ebp - 0x14]
ror ecx, 0xe
sub esi, ecx
xor eax, esi
mov ecx, dword [ebp - 0xc]
mov esi, eax
sub ecx, eax
rol ecx, 8
imul ebx, ecx
movzx ecx, word [ebp - 8]
rol esi, 0xa
sub ebx, esi
xor edx, ebx
mov ebx, dword [ebp - 0x18]
mov esi, edx
xor ebx, edx
imul ebx, ecx
ror esi, 5
mov ecx, dword [ebp - 8]
xor esi, ebx
xor eax, esi
add ecx, eax
mov esi, eax
mov ebx, dword [ebp - 0x18]
ror ecx, 2
imul ebx, ecx
rol esi, 0xc
add esi, ebx
mov ecx, dword [ebp - 8]
mov ebx, ecx
xor edx, esi
mov esi, dword [ebp - 0xc]
xor esi, edx
sub ebx, esi
xor eax, ebx
movzx esi, word [ebp - 0xc]
mov ebx, eax
ror ebx, 5
xor ebx, dword [ebp - 0x3c]
imul ebx, esi
xor edx, ebx
mov ebx, dword [ebp - 0x3c]
xor ebx, edx
movzx esi, cx
imul ebx, esi
mov esi, edx
shr esi, 0xf
xor ebx, esi
xor eax, ebx
add ecx, eax
mov esi, eax
mov ebx, dword [ebp - 0x18]
ror ecx, 0xe
imul ebx, ecx
movzx ecx, word [ebp - 8]
rol esi, 0xa
sub ebx, esi
xor edx, ebx
mov ebx, ecx
movzx ecx, word [ebp - 0xc]
mov esi, edx
xor ebx, edx
imul ebx, ecx
xor edx, dword [ebp - 0x34]
ror esi, 3
add esi, ebx
xor esi, dword [ebp - 0x38]
xor eax, esi
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x1c]
mov cl, byte [ebp - 0xd]
xor cl, al
mov byte [esi + 3], al
xor cl, dl
ror eax, 8
mov byte [esi + 7], dl
mov byte [esi + 2], al
xor cl, al
ror edx, 8
mov byte [esi + 6], dl
xor cl, dl
ror eax, 8
xor cl, al
mov byte [esi + 1], al
ror edx, 8
xor cl, dl
mov byte [esi + 5], dl
ror eax, 8
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x2c]
mov byte [esi], al
mov byte [esi + 4], dl
add esi, 8
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x70]
dec dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
ror eax, 8
ror edx, 8
mov dword [ebp - 0x1c], esi
jne 0x1222d60
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [ebp - 0xd]
movzx eax, byte [eax + 8]
sub ecx, eax
je 0x1222f9e
call fcn.01244f80
mov edx, dword [ebp - 0x50]
mov edi, eax
mov eax, 0xfffff000
lea ecx, [edx + 0xc]
mov dword [edx + 8], 0x10d8814
mov edx, 0xffff
and ecx, 0xfffffffc
and edi, eax
lea esi, [ecx + 0xfff]
and esi, eax
xor eax, eax
mov ebx, dword [0x12d47a4]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x12d47a4], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x1222f43
mov ebx, 0xffff
div ebx
inc edx
mov eax, ecx
mov dword [ebp - 0x84], edi
cmp ecx, esi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x4c], 0
jae 0x1222f94
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x1222f88
mov eax, 0x10d8814
jmp 0x122306f
mov eax, dword [ebp - 0x48]
mov ecx, 0x1000000
mov edx, dword [0x11e47bc]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
sub ecx, edx
mov dword [ebp - 0x20], ecx
jne 0x1222fc1
test eax, eax
je 0x1223062
mov ecx, dword [0x11efd70]
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
sub esi, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x4c], eax
xor edi, edi
dec ecx
js 0x1223004
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x1222ffb
lea ecx, [eax - 1]
jmp 0x1223000
jbe 0x1223008
lea edi, [eax + 1]
cmp ecx, edi
jge 0x1222fdd
mov ebx, edi
jmp 0x122305a
mov ebx, eax
jmp 0x122305a
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x4c]
jae 0x1223062
lea edi, [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 0x122304d
dec ecx
je 0x1223048
dec ecx
jne 0x1223053
mov edx, dword [ebp - 0x20]
jmp 0x1223053
mov edx, dword [ebp - 0x14]
jmp 0x1223053
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x14]
dec eax
dec eax
jne 0x1223059
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x122300c
mov eax, dword [0x1116588]
mov eax, 0x8446c21a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov esp, ebp
pop ebp
popfd
ret