Function at 0x1062554
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
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x84], edx
lea eax, [ebp + 4]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], edi
mov esi, dword [eax + 4]
sub eax, 4
mov ebx, 0xfffffff
mov edi, dword [0x1116588]
mov dword [ebp - 0x64], eax
mov eax, dword [esi]
shr eax, 3
and eax, ebx
lea ecx, [edi + eax - 1]
mov eax, ecx
xor edx, edx
div edi
sub ecx, edx
mov eax, dword [0x1116588]
mov dword [ebp - 0x18], ecx
mov eax, dword [0x1011bb0]
mov dword [ebp - 0x44], eax
mov eax, dword [0x1116588]
mov eax, dword [0x1011bb0]
test eax, eax
je 0x106264b
and dword [ebp - 0x30], 0
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
test ecx, ecx
je 0x1062603
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 0x10625dc
xor edx, edx
div ecx
cmp dword [ebp - 0x44], 0
jbe 0x1062645
inc dword [ebp - 0x30]
mov ecx, 0xffff349a
mov eax, 0xcb65
lea edi, [edx*4 + 0x12d4c14]
lock cmpxchg dword [edi], ecx
cmp eax, 0xcb65
je 0x1062801
mov ecx, dword [0x1011bb0]
lea eax, [edx + 1]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x44]
jb 0x106260d
xor edi, edi
test edi, edi
jne 0x10626c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
xor edi, edi
push 0x40
push 0x1000
inc edi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1062815
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x11
jb 0x1062656
xor edi, edi
cmp dword [0x12ef80c], edi
ja 0x106268f
test edi, 3
je 0x10626a3
test edi, edi
je 0x10626a1
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 0x10625ad
mov eax, edi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10626c4
mov byte [eax], 0
inc eax
dec ecx
jne 0x10626bd
mov eax, 0x4a95bfa7
mov eax, dword [esi]
mov ecx, eax
and ecx, 7
lea ecx, [esi + ecx + 8]
mov esi, 0x1000000
shr eax, 3
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
and eax, ebx
lea ebx, [ecx + eax]
mov ecx, dword [0x1116588]
sub ecx, eax
sub dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], eax
inc ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ecx
xor eax, eax
test ecx, ecx
je 0x106272c
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 0x1062702
xor edx, edx
div ecx
lea eax, [edx + edi]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x40]
mov eax, 0x8ed12fc4
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, 0x275481bf
mov eax, 0xfffffff
mov ecx, dword [0x11e47bc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and edi, eax
and ebx, eax
add esp, 0x10
mov eax, esi
add edi, esi
sub eax, ecx
mov dword [ebp - 0x2c], eax
jne 0x106281c
and dword [ebp - 0x1c], 0
test ebx, ebx
jbe 0x1062a8a
mov ecx, 0x7fffffff
mov esi, 0x6b615f7d
mov eax, dword [ebp - 0x1c]
movzx edx, byte [edi + eax]
add edx, esi
add dword [ebp - 0x28], edx
add edx, dword [ebp - 0x24]
mov eax, edx
imul eax, eax, 0xfc05
rol eax, 0xd
ror edx, 0xd
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 - 0x28], eax
inc dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], ebx
jb 0x1062799
jmp 0x1062a8a
mov edi, dword [0x1116588]
imul edi, edx
lea edi, [edi + section..data]
jmp 0x1062647
mov edi, eax
jmp 0x106267f
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov ecx, edi
lea eax, [edi + ebx]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
add eax, esi
sub ecx, esi
mov edx, dword [edx + 4]
mov esi, ecx
mov dword [ebp - 0x20], edx
mov edx, ecx
add ecx, ebx
mov ebx, eax
and esi, 0xfffff000
sub edx, esi
mov dword [ebp - 0x18], edx
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x20]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
je 0x1062877
cmp dword [ebx], esi
jae 0x1062877
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x58]
jne 0x106286b
and dword [ebp - 0x50], 0
cmp ebx, dword [ebp - 0x58]
je 0x10628a8
cmp dword [ebx], esi
jne 0x10628a8
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
je 0x10628a8
lea esi, [ebx + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x18]
jae 0x10628a8
inc dword [ebp - 0x50]
inc esi
inc esi
cmp dword [ebp - 0x50], ecx
jne 0x1062891
mov esi, 0x6b615f7d
mov ecx, 0x7fffffff
jmp 0x10628b7
mov edx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x58]
je 0x1062a20
cmp dword [ebx], edx
ja 0x1062a20
mov eax, dword [ebx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x50], eax
jne 0x10628f2
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x58]
je 0x1062a20
mov eax, dword [ebp - 0x60]
cmp dword [ebx], eax
ja 0x1062a20
and dword [ebp - 0x50], 0
jmp 0x10628c8
mov eax, dword [ebp - 0x60]
cmp dword [ebx], eax
jne 0x106290f
mov eax, dword [ebp - 0x50]
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x5c]
jae 0x1062a20
mov eax, 0xf000
mov edx, dword [ebp - 0x50]
inc dword [ebp - 0x50]
test word [ebx + edx*2 + 8], ax
je 0x10628b4
movzx eax, word [ebx + edx*2 + 8]
mov edx, dword [ebx]
and dword [ebp - 0x1c], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x34], eax
sub dword [ebp - 0x34], edi
mov dword [ebp - 0x18], eax
je 0x10629ac
mov eax, dword [ebp - 0x1c]
movzx edx, byte [edi + eax]
add edx, esi
add dword [ebp - 0x28], edx
add edx, dword [ebp - 0x24]
mov eax, edx
imul eax, eax, 0xfc05
rol eax, 0xd
ror edx, 0xd
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 - 0x28], eax
inc dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jb 0x1062943
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [ebp - 0x70], eax
movzx edx, byte [ebp + edi - 0x70]
add edx, esi
add dword [ebp - 0x28], edx
add edx, dword [ebp - 0x24]
mov eax, edx
imul eax, eax, 0xfc05
rol eax, 0xd
ror edx, 0xd
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 - 0x28], eax
inc edi
mov dword [ebp - 0x24], eax
cmp edi, 4
jb 0x10629b6
mov edi, dword [ebp - 0x18]
add edi, 4
jmp 0x10628b4
xor ebx, ebx
mov eax, dword [ebp - 0x3c]
sub eax, edi
mov dword [ebp - 0x20], eax
je 0x1062a8a
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x28], edx
add edx, dword [ebp - 0x24]
mov eax, edx
imul eax, eax, 0xfc05
rol eax, 0xd
ror edx, 0xd
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 - 0x28], eax
inc ebx
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x20]
jb 0x1062a2c
xor esi, esi
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 0x1062a8e
mov eax, 0xdd7a0c03
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
and eax, 7
mov dword [ebp - 0x20], eax
je 0x1062c69
mov edx, dword [ebp - 0x40]
cmp eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], esi
not edx
jle 0x1062af9
push 0x38
pop esi
movzx ebx, byte [edi]
cmp dword [ebp - 0x14], 4
jge 0x1062ae6
lea ecx, [esi - 0x20]
shl ebx, cl
or dword [ebp - 0x34], ebx
jmp 0x1062aed
mov ecx, esi
shl ebx, cl
or dword [ebp - 0x1c], ebx
inc edi
inc dword [ebp - 0x14]
sub esi, 8
cmp dword [ebp - 0x14], eax
jl 0x1062ad3
mov esi, dword [ebp - 0xc]
xor esi, dword [ebp - 8]
xor esi, edx
xor esi, dword [ebp - 0x40]
mov eax, esi
movzx edx, word [ebp - 0xa]
movzx ecx, word [ebp - 8]
sub eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], edx
xor eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x40]
mov ebx, eax
mov ecx, eax
sub ecx, dword [ebp - 8]
ror ecx, 0xc
imul edx, ecx
movzx ecx, word [ebp - 0xc]
ror ebx, 0xb
sub edx, ebx
xor esi, edx
movzx edx, word [ebp - 6]
mov ebx, esi
mov dword [ebp - 0x3c], edx
xor edx, esi
imul edx, ecx
ror ebx, 6
xor ebx, edx
xor eax, ebx
mov ebx, eax
mov edx, dword [ebp - 0x2c]
xor edx, eax
imul edx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
shr ebx, 0xb
xor edx, ebx
xor esi, edx
mov ebx, dword [ebp - 0x2c]
xor ecx, esi
mov edx, esi
rol ecx, 6
imul ebx, ecx
mov ecx, dword [ebp - 8]
rol edx, 8
sub ebx, edx
xor eax, ebx
mov edx, eax
xor ecx, eax
rol ecx, 2
mov ebx, dword [ebp - 0x14]
imul ebx, ecx
ror edx, 6
xor edx, ebx
xor esi, edx
mov ecx, esi
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
xor edx, esi
imul edx, dword [ebp - 0x18]
ror ecx, 0xe
add ecx, edx
mov edx, dword [ebp - 0x3c]
xor eax, ecx
mov ecx, eax
sub ecx, ebx
rol ecx, 7
imul edx, ecx
mov ecx, eax
shr ecx, 5
xor edx, ecx
mov ecx, dword [ebp - 0xc]
xor esi, edx
mov edx, dword [ebp - 0x2c]
xor ecx, esi
rol ecx, 3
imul edx, ecx
mov ecx, esi
shr ecx, 8
sub edx, ecx
xor eax, edx
mov ecx, dword [ebp - 8]
sub ecx, eax
mov edx, eax
ror ecx, 0xc
imul ebx, ecx
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x14], 0
rol edx, 8
add edx, ebx
xor esi, edx
mov ebx, esi
mov edx, dword [ebp - 8]
xor edx, esi
rol edx, 4
imul ecx, edx
xor esi, dword [ebp - 0x1c]
ror ebx, 0xa
sub ecx, ebx
mov ebx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x34]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov ecx, esi
test ebx, ebx
jle 0x1062c3f
cmp dword [ebp - 0x14], 4
jge 0x1062c26
rol dword [ebp - 0x2c], 8
mov ebx, dword [ebp - 0x38]
mov dl, byte [ebp - 0x2c]
inc dword [ebp - 0x38]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x1062c34
mov edx, dword [ebp - 0x38]
inc dword [ebp - 0x38]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
jl 0x1062c0c
add ebx, 0xfffffffc
test ebx, ebx
jle 0x1062c56
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr esi, cl
shl esi, cl
mov edx, esi
jmp 0x1062c78
xor edx, edx
test ebx, ebx
jge 0x1062c78
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1062c78
xor edx, edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
not eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov esi, dword [ebp - 0x4c]
shr esi, 3
test esi, esi
jbe 0x1062e51
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x6c], ecx
movzx ecx, word [ebp - 0xa]
mov dword [ebp - 0x18], ecx
neg dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
movzx ecx, word [ebp - 6]
mov dword [ebp - 0x3c], ecx
movzx ecx, byte [edi]
movzx ebx, byte [edi + 5]
shl ecx, 8
movzx esi, byte [edi + 1]
or ecx, esi
shl ecx, 8
movzx esi, byte [edi + 2]
or ecx, esi
movzx esi, byte [edi + 3]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 4]
shl esi, 8
or esi, ebx
movzx ebx, byte [edi + 6]
shl esi, 8
or esi, ebx
movzx ebx, byte [edi + 7]
xor eax, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x6c]
shl esi, 8
or esi, ebx
mov ebx, dword [ebp - 0x14]
xor ecx, esi
xor ecx, edx
xor ecx, eax
mov edx, ecx
movzx ecx, word [ebp - 8]
mov dword [ebp - 0x68], esi
mov esi, edx
sub esi, ecx
xor esi, dword [ebp - 0xc]
add edi, 8
xor eax, esi
mov esi, eax
mov ecx, eax
sub ecx, dword [ebp - 8]
ror ecx, 0xc
imul ebx, ecx
movzx ecx, word [ebp - 0xc]
ror esi, 0xb
sub ebx, esi
xor edx, ebx
mov esi, edx
mov ebx, dword [ebp - 0x3c]
xor ebx, edx
imul ebx, ecx
ror esi, 6
xor esi, ebx
xor eax, esi
mov ebx, eax
movzx esi, word [ebp - 8]
mov ecx, esi
xor ecx, eax
imul ecx, dword [ebp - 0x3c]
shr ebx, 0xb
xor ecx, ebx
xor edx, ecx
mov ebx, edx
movzx ecx, word [ebp - 0xc]
xor ecx, edx
rol ecx, 6
imul esi, ecx
mov ecx, dword [ebp - 8]
rol ebx, 8
sub esi, ebx
xor eax, esi
xor ecx, eax
rol ecx, 2
mov ebx, dword [ebp - 0x14]
mov esi, eax
imul ebx, ecx
ror esi, 6
movzx ecx, word [ebp - 0xc]
xor esi, ebx
mov ebx, dword [ebp - 0x14]
xor edx, esi
mov esi, edx
ror esi, 0xe
xor ebx, edx
imul ebx, ecx
mov ecx, dword [ebp - 0x18]
add esi, ebx
mov ebx, dword [ebp - 0x14]
xor eax, esi
mov esi, dword [ebp - 0x3c]
add ecx, eax
rol ecx, 7
imul esi, ecx
mov ecx, eax
shr ecx, 5
xor esi, ecx
mov ecx, dword [ebp - 0xc]
xor edx, esi
xor ecx, edx
rol ecx, 3
movzx esi, word [ebp - 8]
imul esi, ecx
mov ecx, edx
shr ecx, 8
sub esi, ecx
mov ecx, dword [ebp - 8]
xor eax, esi
sub ecx, eax
ror ecx, 0xc
imul ebx, ecx
mov esi, eax
rol esi, 8
mov ecx, dword [ebp - 8]
add esi, ebx
xor edx, esi
movzx esi, word [ebp - 0xc]
xor ecx, edx
rol ecx, 4
imul esi, ecx
mov cl, byte [ebp - 0xd]
mov ebx, edx
xor edx, dword [ebp - 0x1c]
ror ebx, 0xa
sub esi, ebx
xor esi, dword [ebp - 0x34]
xor eax, esi
mov esi, dword [ebp - 0x38]
mov byte [esi + 3], al
mov byte [esi + 7], dl
xor cl, al
xor cl, dl
ror eax, 8
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
ror edx, 8
mov byte [esi + 1], al
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 - 0x34], ecx
mov ecx, dword [ebp - 0x68]
dec dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], esi
ror eax, 8
ror edx, 8
jne 0x1062ca6
movzx ecx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax + 8]
sub ecx, eax
je 0x1062eec
call fcn.01244f80
mov edi, eax
mov eax, 0xfffff000
mov edx, dword [ebp - 0x64]
mov dword [edx + 8], 0x10d8814
lea ecx, [edx + 0xc]
mov edx, 0xffff
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and edi, eax
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 0x1062e91
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x84], edi
mov eax, ecx
inc edx
cmp ecx, esi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x48], 0
jae 0x1062ee2
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x1062ed6
mov eax, 0x10d8814
jmp 0x1062fbd
mov ecx, 0x1000000
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x30]
mov edx, dword [0x11e47bc]
mov dword [ebp - 0x18], eax
sub ecx, edx
mov dword [ebp - 0x20], ecx
jne 0x1062f0f
test eax, eax
je 0x1062fb0
mov ecx, dword [0x11efd70]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
sub esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
add eax, ebx
xor edi, edi
dec ecx
mov dword [ebp - 0x48], eax
js 0x1062f52
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x1062f49
lea ecx, [eax - 1]
jmp 0x1062f4e
jbe 0x1062f56
lea edi, [eax + 1]
cmp ecx, edi
jge 0x1062f2b
mov ebx, edi
jmp 0x1062fa8
mov ebx, eax
jmp 0x1062fa8
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x1062fb0
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 0x1062f9b
dec ecx
je 0x1062f96
dec ecx
jne 0x1062fa1
mov edx, dword [ebp - 0x20]
jmp 0x1062fa1
mov edx, dword [ebp - 0x18]
jmp 0x1062fa1
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x18]
dec eax
dec eax
jne 0x1062fa7
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x1062f5a
mov eax, dword [0x1116588]
mov eax, 0x85c63821
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
popfd
ret