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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x78], ecx
lea eax, [ebp + 4]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x88], ebx
mov ebx, 0xfffffff
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], edi
mov esi, dword [0x1116588]
mov edi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
shr eax, 2
and eax, ebx
lea ecx, [esi + eax - 1]
mov eax, ecx
xor edx, edx
div esi
mov eax, dword [0x1116588]
sub ecx, edx
mov dword [ebp - 0x48], ecx
mov eax, dword [0x1011bb0]
mov dword [ebp - 0x44], eax
mov eax, dword [0x1116588]
mov eax, dword [0x1011bb0]
test eax, eax
je 0x124f1be
and dword [ebp - 0x2c], 0
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov edx, ecx
je 0x124f176
mov esi, dword [0x12d47a4]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x12d47a4], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x124f14f
xor edx, edx
div ecx
cmp dword [ebp - 0x44], 0
jbe 0x124f1b8
lea esi, [edx*4 + 0x12d4c14]
mov eax, 0xcb65
inc dword [ebp - 0x2c]
mov ecx, 0xffff349a
lock cmpxchg dword [esi], ecx
cmp eax, 0xcb65
je 0x124f374
lea eax, [edx + 1]
mov ecx, dword [0x1011bb0]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jb 0x124f180
xor esi, esi
test esi, esi
jne 0x124f237
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [ebp - 0x28], eax
inc esi
push 0x40
push 0x1000
push dword [ebp - 0x48]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x124f388
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x124f1c9
xor esi, esi
cmp dword [0x12ef80c], esi
ja 0x124f202
test esi, 3
je 0x124f216
test esi, esi
je 0x124f214
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x124f120
mov ecx, dword [ebp - 0x48]
test ecx, ecx
mov eax, esi
je 0x124f237
mov byte [eax], 0
inc eax
dec ecx
jne 0x124f230
mov eax, 0x6827603d
mov eax, dword [edi + 4]
and eax, 7
lea eax, [edi + eax + 8]
mov ecx, dword [edi]
mov dword [ebp - 0x3c], eax
shr ecx, 2
and ecx, ebx
lea edi, [eax + ecx]
mov dword [ebp - 0x48], eax
mov ebx, 0x1000000
mov eax, dword [0x1116588]
sub eax, ecx
sub dword [ebp - 0x3c], ebx
lea edx, [eax + 1]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], edi
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
je 0x124f2a4
mov edx, dword [0x12d47a4]
shr dword [ebp - 0x2c], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x12d47a4], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x2c], 0
jne 0x124f27a
xor edx, edx
div dword [ebp - 0x28]
lea eax, [edx + esi]
push eax
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, 0x68b5a300
mov esi, dword [edi]
mov edi, dword [edi + 4]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0xd], 0
mov eax, 0xb7e17e71
mov eax, 0xfffffff
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
and edi, eax
and esi, eax
add esi, ebx
mov eax, dword [0x11e47bc]
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ebx
mov edi, esi
jne 0x124f38f
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jbe 0x124f602
mov ecx, 0x7fffffff
mov esi, 0x2becbda7
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
mov eax, edx
imul eax, eax, 0x70ec
rol eax, 7
ror edx, 7
xor 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
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 - 0x20], eax
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x124f311
jmp 0x124f602
mov esi, dword [0x1116588]
imul esi, edx
lea esi, [esi + section..data]
jmp 0x124f1ba
mov esi, eax
jmp 0x124f1f2
mov ecx, edi
mov ebx, 0xfffff000
mov esi, 0x1000000
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x34], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x28], edx
add eax, esi
sub ecx, esi
mov edx, ecx
mov esi, ecx
and esi, ebx
sub edx, esi
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x14]
add ecx, edx
mov edx, ecx
and edx, ebx
sub ecx, edx
mov ebx, eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x60], edx
add ecx, eax
mov dword [ebp - 0x58], ecx
cmp eax, ecx
je 0x124f3f0
cmp dword [ebx], esi
jae 0x124f3f0
add ebx, dword [ebx + 4]
cmp ebx, ecx
jne 0x124f3e5
and dword [ebp - 0x50], 0
cmp ebx, ecx
je 0x124f420
cmp dword [ebx], esi
jne 0x124f420
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
je 0x124f420
lea esi, [ebx + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x40]
jae 0x124f420
inc dword [ebp - 0x50]
inc esi
inc esi
cmp dword [ebp - 0x50], ecx
jne 0x124f409
mov ecx, 0x7fffffff
mov esi, 0x2becbda7
jmp 0x124f42f
mov edx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x58]
je 0x124f598
cmp dword [ebx], edx
ja 0x124f598
mov eax, dword [ebx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x50], eax
jne 0x124f46a
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x58]
je 0x124f598
mov eax, dword [ebp - 0x60]
cmp dword [ebx], eax
ja 0x124f598
and dword [ebp - 0x50], 0
jmp 0x124f440
mov eax, dword [ebp - 0x60]
cmp dword [ebx], eax
jne 0x124f487
mov eax, dword [ebp - 0x50]
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x5c]
jae 0x124f598
mov edx, dword [ebp - 0x50]
mov eax, 0xf000
inc dword [ebp - 0x50]
test word [ebx + edx*2 + 8], ax
je 0x124f42c
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 - 0x30], eax
sub dword [ebp - 0x30], edi
mov dword [ebp - 0x38], eax
je 0x124f524
mov eax, dword [ebp - 0x14]
movzx edx, byte [edi + eax]
add edx, esi
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
mov eax, edx
imul eax, eax, 0x70ec
rol eax, 7
ror edx, 7
xor 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
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 - 0x20], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x30]
jb 0x124f4bb
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
sub eax, dword [ebp - 0x24]
xor edi, edi
mov dword [ebp - 0x68], eax
movzx edx, byte [ebp + edi - 0x68]
add edx, esi
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
mov eax, edx
imul eax, eax, 0x70ec
rol eax, 7
ror edx, 7
xor 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
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 - 0x20], eax
mov dword [ebp - 0x1c], eax
inc edi
cmp edi, 4
jb 0x124f52e
mov edi, dword [ebp - 0x38]
add edi, 4
jmp 0x124f42c
xor ebx, ebx
mov eax, dword [ebp - 0x34]
sub eax, edi
mov dword [ebp - 0x28], eax
je 0x124f602
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
mov eax, edx
imul eax, eax, 0x70ec
rol eax, 7
ror edx, 7
xor 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
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 - 0x20], eax
inc ebx
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ebp - 0x28]
jb 0x124f5a4
xor ebx, ebx
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x20]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x124f606
mov eax, 0x4095b7ed
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x30], eax
je 0x124f7db
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
not edi
mov dword [ebp - 0x38], ebx
cmp eax, ebx
mov dword [ebp - 0x18], ebx
jle 0x124f671
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x18], 4
jge 0x124f65e
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x38], ebx
jmp 0x124f665
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x14], ebx
inc esi
inc dword [ebp - 0x18]
sub edx, 8
cmp dword [ebp - 0x18], eax
jl 0x124f64b
movzx edx, word [ebp - 0xa]
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
movzx ebx, word [ebp - 8]
sub ecx, eax
xor edi, ecx
mov ecx, edx
mov eax, edi
xor ecx, edi
rol ecx, 6
imul ebx, ecx
ror eax, 0xc
xor eax, ebx
xor eax, dword [ebp - 0x3c]
mov ecx, eax
sub ecx, dword [ebp - 8]
mov ebx, eax
ror ecx, 6
imul edx, ecx
rol ebx, 0xf
mov ecx, dword [ebp - 8]
xor ebx, edx
xor edi, ebx
movzx edx, word [ebp - 0xc]
sub ecx, edi
mov dword [ebp - 0x24], edx
mov ebx, edi
ror ecx, 7
imul edx, ecx
movzx ecx, word [ebp - 6]
ror ebx, 1
sub edx, ebx
xor eax, edx
movzx edx, word [ebp - 8]
mov ebx, eax
mov dword [ebp - 0x18], ecx
sub ebx, edx
imul ebx, ecx
mov ecx, eax
shr ecx, 5
sub ebx, ecx
mov ecx, dword [ebp - 0x18]
xor edi, ebx
xor ecx, edi
mov ebx, edi
rol ecx, 4
imul edx, ecx
ror ebx, 4
mov ecx, dword [ebp - 8]
sub edx, ebx
xor eax, edx
mov ebx, eax
xor ecx, eax
movzx edx, word [ebp - 0xa]
rol ecx, 4
imul edx, ecx
movzx ecx, word [ebp - 8]
ror ebx, 0xd
sub edx, ebx
xor edi, edx
xor ecx, edi
mov edx, edi
imul ecx, dword [ebp - 0x24]
ror edx, 1
sub ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov edx, dword [ebp - 0x18]
ror ecx, 3
mov ebx, eax
imul edx, ecx
movzx ecx, word [ebp - 8]
ror ebx, 4
add ebx, edx
xor edi, ebx
mov edx, edi
mov ebx, dword [ebp - 0x30]
ror edx, 0xe
sub edx, ecx
imul edx, dword [ebp - 0x24]
movzx ecx, word [ebp - 0xa]
xor eax, edx
mov edx, dword [ebp - 0x24]
and dword [ebp - 0x18], 0
xor edx, eax
imul edx, ecx
mov ecx, eax
shr ecx, 6
xor edx, ecx
xor edi, edx
mov ecx, edi
sub ecx, dword [ebp - 0x24]
xor edi, dword [ebp - 0x14]
sub ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0x38]
xor eax, ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
mov ecx, edi
jle 0x124f7b1
cmp dword [ebp - 0x18], 4
jge 0x124f798
rol dword [ebp - 0x24], 8
mov dl, byte [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x124f7a6
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x18], ebx
jl 0x124f77e
add ebx, 0xfffffffc
test ebx, ebx
jle 0x124f7c8
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x124f7ea
xor edx, edx
test ebx, ebx
jge 0x124f7ea
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x124f7ea
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
not eax
mov dword [ebp - 0x14], eax
xor edx, edx
xor eax, eax
mov ecx, dword [ebp - 0x44]
shr ecx, 3
test ecx, ecx
jbe 0x124f9b5
movzx edi, word [ebp - 6]
mov dword [ebp - 0x18], edi
movzx edi, word [ebp - 8]
mov dword [ebp - 0x40], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], ecx
movzx ebx, byte [esi + 5]
movzx edi, byte [esi + 1]
movzx ecx, byte [esi]
shl ecx, 8
or ecx, edi
movzx edi, byte [esi + 2]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi + 3]
or ecx, edi
movzx edi, byte [esi + 4]
shl edi, 8
or edi, ebx
movzx ebx, byte [esi + 6]
shl edi, 8
or edi, ebx
movzx ebx, byte [esi + 7]
xor eax, ecx
shl edi, 8
or edi, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
xor ecx, eax
sub ebx, ecx
mov ecx, dword [ebp - 0x30]
xor ebx, edi
xor edx, ebx
mov ebx, dword [ebp - 0x40]
xor ecx, edx
mov dword [ebp - 0x6c], edi
add esi, 8
mov edi, edx
rol ecx, 6
imul ebx, ecx
ror edi, 0xc
xor edi, ebx
mov ebx, dword [ebp - 0x30]
xor eax, edi
mov edi, eax
mov ecx, eax
sub ecx, dword [ebp - 8]
ror ecx, 6
imul ebx, ecx
rol edi, 0xf
mov ecx, dword [ebp - 8]
xor edi, ebx
xor edx, edi
mov ebx, edx
sub ecx, edx
movzx edi, word [ebp - 0xc]
ror ecx, 7
imul edi, ecx
ror ebx, 1
sub edi, ebx
xor eax, edi
movzx edi, word [ebp - 8]
mov ecx, eax
mov ebx, eax
sub ecx, edi
imul ecx, dword [ebp - 0x18]
shr ebx, 5
sub ecx, ebx
xor edx, ecx
mov ebx, edx
mov ecx, dword [ebp - 0x18]
xor ecx, edx
rol ecx, 4
imul edi, ecx
mov ecx, dword [ebp - 8]
ror ebx, 4
sub edi, ebx
xor eax, edi
xor ecx, eax
mov edi, eax
mov ebx, dword [ebp - 0x30]
rol ecx, 4
imul ebx, ecx
movzx ecx, word [ebp - 8]
ror edi, 0xd
sub ebx, edi
xor edx, ebx
mov edi, edx
mov ebx, ecx
xor ebx, edx
movzx ecx, word [ebp - 0xc]
imul ebx, ecx
mov ecx, dword [ebp - 0xc]
ror edi, 1
sub ebx, edi
xor eax, ebx
sub ecx, eax
mov ebx, dword [ebp - 0x18]
ror ecx, 3
mov edi, eax
imul ebx, ecx
ror edi, 4
add edi, ebx
xor edx, edi
mov edi, edx
movzx ecx, word [ebp - 8]
mov dword [ebp - 0x40], ecx
ror edi, 0xe
sub edi, ecx
movzx ecx, word [ebp - 0xc]
imul edi, ecx
xor eax, edi
mov edi, ecx
mov ebx, eax
xor edi, eax
imul edi, dword [ebp - 0x30]
shr ebx, 6
xor edi, ebx
xor edx, edi
mov edi, edx
xor edx, dword [ebp - 0x14]
sub edi, ecx
mov cl, byte [ebp - 0xd]
sub edi, dword [ebp - 8]
xor edi, dword [ebp - 0x38]
xor eax, edi
mov edi, dword [ebp - 0x34]
mov byte [edi + 3], al
xor cl, al
mov byte [edi + 7], dl
xor cl, dl
ror eax, 8
mov byte [edi + 2], al
xor cl, al
ror edx, 8
mov byte [edi + 6], dl
xor cl, dl
ror eax, 8
mov byte [edi + 1], al
xor cl, al
ror edx, 8
mov byte [edi + 5], dl
xor cl, 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 - 0x24]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x6c]
dec dword [ebp - 0x28]
ror eax, 8
mov dword [ebp - 0x14], ecx
ror edx, 8
mov dword [ebp - 0x34], edi
jne 0x124f810
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 8]
movzx ecx, byte [ebp - 0xd]
sub ecx, eax
je 0x124fa4d
call fcn.01244f80
mov edi, eax
mov edx, 0xfffff000
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0x10d8814
and ecx, 0xfffffffc
and edi, edx
lea esi, [ecx + 0xfff]
and esi, edx
xor eax, eax
mov edx, 0xffff
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 0x124f9f5
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x80], edi
inc edx
mov dword [ebp - 0x78], edx
mov eax, ecx
mov dword [ebp - 0x4c], 0
cmp ecx, esi
jae 0x124fa43
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x124fa37
mov eax, 0x10d8814
jmp 0x124fb1e
mov eax, dword [ebp - 0x48]
mov edx, dword [0x11e47bc]
sub eax, dword [ebp - 0x2c]
mov ecx, 0x1000000
mov dword [ebp - 0x40], eax
sub ecx, edx
mov dword [ebp - 0x28], ecx
jne 0x124fa70
test eax, eax
je 0x124fb11
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x11efd70]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x4c], eax
xor edi, edi
dec ecx
js 0x124fab3
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x124faaa
lea ecx, [eax - 1]
jmp 0x124faaf
jbe 0x124fab7
lea edi, [eax + 1]
cmp ecx, edi
jge 0x124fa8c
mov ebx, edi
jmp 0x124fb09
mov ebx, eax
jmp 0x124fb09
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x4c]
jae 0x124fb11
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 0x124fafc
dec ecx
je 0x124faf7
dec ecx
jne 0x124fb02
mov edx, dword [ebp - 0x28]
jmp 0x124fb02
mov edx, dword [ebp - 0x40]
jmp 0x124fb02
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x40]
dec eax
dec eax
jne 0x124fb08
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x124fabb
mov eax, dword [0x1116588]
mov eax, 0x6e2ee23a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
mov esp, ebp
pop ebp
popfd
ret