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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], esi
lea eax, [ebp + 4]
mov dword [ebp - 0x78], edi
mov edi, dword [eax + 4]
mov ebx, 0xfffffff
sub eax, 4
mov esi, dword [0x10fb370]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 4]
and eax, ebx
xor edx, edx
lea ecx, [esi + eax - 1]
mov eax, ecx
div esi
mov eax, dword [0x10fb370]
sub ecx, edx
mov dword [ebp - 0x44], ecx
mov eax, dword [0x1007420]
mov dword [ebp - 0x40], eax
mov eax, dword [0x10fb370]
mov eax, dword [0x1007420]
test eax, eax
je 0x1002153
and dword [ebp - 0x30], 0
mov eax, dword [0x1007420]
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x100210b
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 0x10020e4
xor edx, edx
div ecx
cmp dword [ebp - 0x40], 0
jbe 0x100214d
lea esi, [edx*4 + 0x1388f9c]
mov ecx, 0xffff10f4
mov eax, 0xef0b
inc dword [ebp - 0x30]
lock cmpxchg dword [esi], ecx
cmp eax, 0xef0b
je 0x10022e3
lea eax, [edx + 1]
xor edx, edx
mov ecx, dword [0x1007420]
div ecx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jb 0x1002115
xor esi, esi
test esi, esi
jne 0x10021cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [ebp - 0x2c], eax
inc esi
push 0x40
push 0x1000
push dword [ebp - 0x44]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10022f7
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x100215e
xor esi, esi
cmp dword [0x138b2f8], esi
ja 0x1002197
test esi, 3
je 0x10021ab
test esi, esi
je 0x10021a9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10020b5
mov eax, esi
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x10021cc
mov byte [eax], 0
inc eax
dec ecx
jne 0x10021c5
mov eax, 0x59bd5628
mov ecx, dword [edi + 4]
mov eax, dword [edi]
shr eax, 2
and eax, 7
and ecx, ebx
mov ebx, 0x1000000
lea eax, [edi + eax + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea edi, [eax + ecx]
mov eax, dword [0x10fb370]
sub eax, ecx
lea edx, [eax + 1]
sub dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x2c], edx
xor eax, eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x1002239
mov edx, dword [0x138b4cc]
shr dword [ebp - 0x30], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x138b4cc], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x30], 0
jne 0x100220f
xor edx, edx
div dword [ebp - 0x2c]
lea eax, [edx + esi]
push eax
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, 0x8c290d9f
mov esi, dword [edi]
mov edi, dword [edi + 4]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], edi
mov byte [ebp - 0xd], 0
mov eax, 0x8d7169af
mov eax, 0xfffffff
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and edi, eax
and esi, eax
add esi, ebx
mov eax, dword [0x102c94c]
add esp, 0x10
mov dword [ebp - 0x14], edi
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov edi, esi
jne 0x10022fe
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jbe 0x100250b
mov ecx, 0x7fffffff
mov esi, 0x72d985af
movzx eax, byte [edi + ebx]
add eax, esi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
mov edx, esi
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 - 0x28], eax
mov dword [ebp - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x10022a2
jmp 0x100250b
mov esi, dword [0x10fb370]
imul esi, edx
lea esi, [esi + section..data]
jmp 0x100214f
mov esi, eax
jmp 0x1002187
mov eax, dword [ebp - 0x14]
add eax, edi
mov ecx, edi
mov esi, 0x1000000
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov ebx, 0xfffff000
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
add eax, esi
sub ecx, esi
mov dword [ebp - 0x2c], edx
mov edx, ecx
mov esi, ecx
and esi, ebx
sub edx, esi
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
add ecx, edx
mov edx, ecx
and edx, ebx
mov ebx, eax
sub ecx, edx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x54], ecx
cmp eax, ecx
je 0x100235f
cmp dword [ebx], esi
jae 0x100235f
add ebx, dword [ebx + 4]
cmp ebx, ecx
jne 0x1002354
and dword [ebp - 0x4c], 0
cmp ebx, ecx
je 0x100238f
cmp dword [ebx], esi
jne 0x100238f
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
je 0x100238f
lea esi, [ebx + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x20]
jae 0x100238f
inc dword [ebp - 0x4c]
inc esi
inc esi
cmp dword [ebp - 0x4c], ecx
jne 0x1002378
mov ecx, 0x7fffffff
mov esi, 0x72d985af
jmp 0x100239e
mov edx, dword [ebp - 0x5c]
cmp ebx, dword [ebp - 0x54]
je 0x10024c3
cmp dword [ebx], edx
ja 0x10024c3
mov eax, dword [ebx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x4c], eax
jne 0x10023d9
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x54]
je 0x10024c3
mov eax, dword [ebp - 0x5c]
cmp dword [ebx], eax
ja 0x10024c3
and dword [ebp - 0x4c], 0
jmp 0x10023af
mov eax, dword [ebp - 0x5c]
cmp dword [ebx], eax
jne 0x10023f6
mov eax, dword [ebp - 0x4c]
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x58]
jae 0x10024c3
mov edx, dword [ebp - 0x4c]
mov eax, 0xf000
inc dword [ebp - 0x4c]
test word [ebx + edx*2 + 8], ax
je 0x100239b
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 dword [ebp - 0x34], edi
mov dword [ebp - 0x20], eax
je 0x1002471
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edi]
mov edx, esi
add eax, esi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
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 - 0x28], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jb 0x100242a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
xor edi, edi
movzx eax, byte [ebp + edi - 0x64]
add eax, esi
add dword [ebp - 0x28], eax
mov edx, esi
add eax, dword [ebp - 0x24]
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 - 0x28], eax
mov dword [ebp - 0x24], eax
inc edi
cmp edi, 4
jb 0x100247b
mov edi, dword [ebp - 0x20]
add edi, 4
jmp 0x100239b
mov eax, dword [ebp - 0x38]
xor ebx, ebx
sub eax, edi
mov dword [ebp - 0x2c], eax
je 0x100250b
movzx eax, byte [edi + ebx]
add eax, esi
add dword [ebp - 0x28], eax
mov edx, esi
add eax, dword [ebp - 0x24]
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 - 0x28], eax
inc ebx
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x2c]
jb 0x10024cf
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 0x100250f
mov eax, 0x880a541d
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
and eax, 7
mov dword [ebp - 0x20], eax
je 0x10026f8
mov edi, dword [ebp - 0x3c]
not edi
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
jle 0x100257a
push 0x38
pop edx
cmp dword [ebp - 0x18], 4
movzx ebx, byte [esi]
jge 0x1002567
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x34], ebx
jmp 0x100256e
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 0x1002554
mov eax, edi
mov edx, dword [ebp - 0xc]
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
sub eax, ecx
mov ecx, dword [ebp - 8]
sub eax, dword [ebp - 8]
xor eax, dword [ebp - 0x3c]
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]
movzx ecx, word [ebp - 6]
xor eax, edx
mov ebx, eax
xor ecx, eax
rol ecx, 7
movzx edx, word [ebp - 0xa]
imul edx, ecx
rol ebx, 0xf
add ebx, edx
mov ecx, dword [ebp - 8]
xor edi, ebx
mov edx, edi
sub ecx, edi
rol ecx, 6
mov ebx, dword [ebp - 0x1c]
imul ebx, ecx
ror edx, 9
sub ebx, edx
xor eax, ebx
mov ebx, eax
movzx edx, word [ebp - 6]
mov ecx, dword [ebp - 0x1c]
xor ecx, eax
rol ecx, 5
imul edx, ecx
ror ebx, 1
sub edx, ebx
movzx ecx, word [ebp - 8]
xor edi, edx
mov ebx, edi
movzx edx, word [ebp - 6]
ror ebx, 2
sub ebx, ecx
imul ebx, edx
xor eax, ebx
mov ebx, dword [ebp - 0x1c]
mov edx, ecx
xor edx, eax
movzx ecx, word [ebp - 0xa]
imul edx, ecx
mov ecx, eax
shr ecx, 0xc
xor edx, ecx
mov ecx, dword [ebp - 8]
xor edi, edx
mov edx, edi
xor ecx, edi
ror ecx, 6
imul ebx, ecx
rol edx, 4
movzx ecx, word [ebp - 6]
add edx, ebx
mov ebx, dword [ebp - 0x1c]
xor eax, edx
mov edx, eax
xor ebx, eax
imul ebx, ecx
ror edx, 3
add edx, ebx
xor edi, edx
movzx edx, word [ebp - 8]
mov ebx, edi
mov ecx, edi
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
movzx ecx, dx
mov ebx, eax
sub ebx, ecx
movzx ecx, word [ebp - 0xa]
imul ebx, ecx
and dword [ebp - 0x18], 0
mov ecx, eax
shr ecx, 0xe
sub ebx, ecx
xor edi, ebx
mov ecx, dword [ebp - 0x1c]
mov ebx, edi
sub edx, edi
ror edx, 0xc
imul ecx, edx
xor edi, dword [ebp - 0x14]
rol ebx, 7
add ebx, ecx
mov ecx, edi
xor ebx, dword [ebp - 0x34]
xor eax, ebx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov dword [ebp - 0x1c], eax
jle 0x10026ce
cmp dword [ebp - 0x18], 4
jge 0x10026b5
rol dword [ebp - 0x1c], 8
mov dl, byte [ebp - 0x1c]
mov ebx, dword [ebp - 0x38]
inc dword [ebp - 0x38]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x10026c3
mov edx, dword [ebp - 0x38]
inc dword [ebp - 0x38]
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 0x100269b
add ebx, 0xfffffffc
test ebx, ebx
jle 0x10026e5
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x1002707
xor edx, edx
test ebx, ebx
jge 0x1002707
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1002707
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x34], eax
not eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x40]
shr ecx, 3
test ecx, ecx
jbe 0x10028d7
movzx edi, word [ebp - 6]
mov dword [ebp - 0x18], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [esi]
movzx edi, byte [esi + 1]
movzx ebx, byte [esi + 5]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi + 2]
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
shl edi, 8
movzx ebx, byte [esi + 6]
or edi, ebx
movzx ebx, byte [esi + 7]
shl edi, 8
or edi, ebx
mov dword [ebp - 0x68], edi
xor edx, edi
movzx edi, word [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ebx, edx
sub ebx, edi
mov edi, dword [ebp - 0xc]
sub ebx, dword [ebp - 8]
xor ebx, ecx
xor eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, eax
sub edi, ecx
mov ebx, dword [ebp - 0x20]
movzx ecx, word [ebp - 8]
xor edx, edi
mov edi, edx
sub edi, ecx
mov ecx, dword [ebp - 0x18]
xor edi, dword [ebp - 0xc]
xor eax, edi
mov edi, eax
xor ecx, eax
add esi, 8
rol ecx, 7
imul ebx, ecx
rol edi, 0xf
mov ecx, dword [ebp - 8]
add edi, ebx
xor edx, edi
mov ebx, edx
sub ecx, edx
rol ecx, 6
movzx edi, word [ebp - 0xc]
imul edi, ecx
movzx ecx, word [ebp - 0xc]
ror ebx, 9
sub edi, ebx
xor eax, edi
mov edi, eax
xor ecx, eax
rol ecx, 5
mov ebx, dword [ebp - 0x18]
imul ebx, ecx
ror edi, 1
movzx ecx, word [ebp - 8]
sub ebx, edi
xor edx, ebx
mov edi, edx
ror edi, 2
sub edi, ecx
imul edi, dword [ebp - 0x18]
xor eax, edi
mov edi, eax
xor ecx, eax
imul ecx, dword [ebp - 0x20]
shr edi, 0xc
xor ecx, edi
xor edx, ecx
mov ecx, dword [ebp - 8]
xor ecx, edx
movzx edi, word [ebp - 0xc]
ror ecx, 6
mov ebx, edx
imul edi, ecx
rol ebx, 4
movzx ecx, word [ebp - 0xc]
add ebx, edi
xor eax, ebx
mov edi, eax
xor ecx, eax
imul ecx, dword [ebp - 0x18]
ror edi, 3
add edi, ecx
xor edx, edi
movzx edi, word [ebp - 8]
mov ecx, edx
mov ebx, 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
imul edi, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 0xe
sub edi, ecx
xor edx, edi
mov ecx, dword [ebp - 8]
sub ecx, edx
mov ebx, edx
movzx edi, word [ebp - 0xc]
ror ecx, 0xc
imul edi, ecx
xor edx, dword [ebp - 0x14]
rol ebx, 7
add ebx, edi
mov cl, byte [ebp - 0xd]
xor ebx, dword [ebp - 0x34]
xor eax, ebx
xor cl, al
mov edi, dword [ebp - 0x38]
mov byte [edi + 3], al
mov byte [edi + 7], dl
xor cl, dl
ror eax, 8
xor cl, al
mov byte [edi + 2], 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 - 0x1c]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x68]
dec dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], edi
ror eax, 8
ror edx, 8
jne 0x1002726
mov eax, dword [ebp - 0x48]
mov al, byte [eax + 8]
xor al, byte [ebp - 0xd]
je 0x100296e
call fcn.010bfbea
mov edx, 0xfffff000
mov edi, eax
mov eax, dword [ebp - 0x60]
mov dword [eax + 8], 0x12e07d9
lea ecx, [eax + 0xc]
and ecx, 0xfffffffc
and edi, edx
lea esi, [ecx + 0xfff]
and esi, 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 0x1002913
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x88], edi
inc edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x48], 0
cmp ecx, esi
mov eax, ecx
jae 0x1002964
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x1002958
mov eax, 0x12e07d9
jmp 0x1002a3f
mov ecx, 0x1000000
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x30]
mov edx, dword [0x102c94c]
mov dword [ebp - 0x20], eax
sub ecx, edx
mov dword [ebp - 0x2c], ecx
jne 0x1002991
test eax, eax
je 0x1002a32
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov ecx, dword [0x1069ab8]
sub esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x3c]
add eax, ebx
xor edi, edi
mov dword [ebp - 0x48], eax
dec ecx
js 0x10029d4
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x10029cb
lea ecx, [eax - 1]
jmp 0x10029d0
jbe 0x10029d8
lea edi, [eax + 1]
cmp ecx, edi
jge 0x10029ad
mov ebx, edi
jmp 0x1002a2a
mov ebx, eax
jmp 0x1002a2a
mov eax, dword [ebx*4 + 0x1069abc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x1002a32
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 0x1002a1d
dec ecx
je 0x1002a18
dec ecx
jne 0x1002a23
mov edx, dword [ebp - 0x2c]
jmp 0x1002a23
mov edx, dword [ebp - 0x20]
jmp 0x1002a23
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x20]
dec eax
dec eax
jne 0x1002a29
add dword [edi], edx
inc ebx
cmp ebx, dword [0x1069ab8]
jb 0x10029dc
mov eax, dword [0x10fb370]
mov eax, 0xf1eecd01
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
popfd
ret