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

Disassembly:
push edi
pushfd
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x90], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x7c], ecx
sub eax, 4
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], edi
mov ebx, 0xfffffff
lea edi, [eax + 0xc]
mov ecx, dword [0x1116588]
mov dword [ebp - 0x68], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
shr eax, 2
and eax, ebx
mov dword [ebp - 0x24], ecx
xor edx, edx
lea ecx, [ecx + eax - 1]
mov eax, ecx
div dword [ebp - 0x24]
mov eax, dword [0x1116588]
mov dword [ebp - 0x4c], edi
and esi, ebx
add esi, 0x1000000
sub ecx, edx
mov dword [ebp - 0x50], esi
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 0x10303e7
and dword [ebp - 0x20], 0
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x1030390
mov edx, dword [0x12d47a4]
shr dword [ebp - 0x1c], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x12d47a4], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x1c], 0
jne 0x1030366
xor edx, edx
div ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x1c], edx
jbe 0x10303d9
mov eax, 0xcb65
inc dword [ebp - 0x20]
lea edx, [edx*4 + 0x12d4c14]
mov ecx, 0xffff349a
lock cmpxchg dword [edx], ecx
cmp eax, 0xcb65
je 0x10304a3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x1011bb0]
inc eax
xor edx, edx
div ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
cmp eax, dword [ebp - 0x44]
jb 0x103039d
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x103046d
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 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 0x10304ba
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 0x11
jb 0x10303f4
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp dword [0x12ef80c], eax
ja 0x1030431
test al, 3
je 0x1030449
test eax, eax
je 0x1030445
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x14], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 0
je 0x1030336
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov eax, dword [ebp - 0x14]
je 0x103046d
mov byte [eax], 0
inc eax
dec ecx
jne 0x1030466
mov eax, 0x39b133eb
add dword [edi], 8
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
shr ecx, 2
mov eax, dword [0x1116588]
and ecx, ebx
mov dword [ebp - 0x3c], esi
sub eax, ecx
lea edi, [ecx + esi]
lea edx, [eax + 1]
sub dword [ebp - 0x3c], 0x1000000
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x24], edx
jmp 0x10304e5
mov eax, dword [0x1116588]
imul eax, dword [ebp - 0x1c]
lea eax, [eax + section..data]
mov dword [ebp - 0x14], eax
jmp 0x10303dd
mov dword [ebp - 0x14], eax
jmp 0x1030422
mov esi, dword [0x12d47a4]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x12d47a4], esi
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr edx, 0x10
test edx, edx
jne 0x10304c2
div dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
push ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, 0x8e9b4753
lea eax, [ebp - 0x78]
mov esi, dword [edi]
mov edi, dword [edi + 4]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
mov byte [ebp - 0xd], 0
mov eax, 0x3e03c629
mov eax, 0x1000000
mov ecx, dword [0x11e47bc]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and esi, ebx
and edi, ebx
add esi, eax
add esp, 0x10
sub eax, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], eax
mov edi, esi
jne 0x10305b6
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x1030829
mov ecx, 0x7fffffff
mov esi, 0x2becbda7
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
inc ebx
cmp ebx, dword [ebp - 0x18]
jb 0x1030553
jmp 0x1030829
mov ebx, 0xfffff000
mov esi, 0x1000000
mov ecx, edi
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ebp - 0x34], eax
mov eax, dword [edx]
add eax, esi
sub ecx, esi
mov edx, dword [edx + 4]
mov esi, ecx
mov dword [ebp - 0x24], edx
mov edx, ecx
and esi, ebx
sub edx, esi
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x18]
add ecx, edx
mov edx, ecx
and edx, ebx
mov ebx, eax
sub ecx, edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x64], edx
add ecx, eax
mov dword [ebp - 0x5c], ecx
cmp eax, ecx
je 0x1030617
cmp dword [ebx], esi
jae 0x1030617
add ebx, dword [ebx + 4]
cmp ebx, ecx
jne 0x103060c
and dword [ebp - 0x54], 0
cmp ebx, ecx
je 0x1030647
cmp dword [ebx], esi
jne 0x1030647
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
je 0x1030647
lea esi, [ebx + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x40]
jae 0x1030647
inc dword [ebp - 0x54]
inc esi
inc esi
cmp dword [ebp - 0x54], ecx
jne 0x1030630
mov ecx, 0x7fffffff
mov esi, 0x2becbda7
jmp 0x1030656
mov edx, dword [ebp - 0x64]
cmp ebx, dword [ebp - 0x5c]
je 0x10307bf
cmp dword [ebx], edx
ja 0x10307bf
mov eax, dword [ebx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x54], eax
jne 0x1030691
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x5c]
je 0x10307bf
mov eax, dword [ebp - 0x64]
cmp dword [ebx], eax
ja 0x10307bf
and dword [ebp - 0x54], 0
jmp 0x1030667
mov eax, dword [ebp - 0x64]
cmp dword [ebx], eax
jne 0x10306ae
mov eax, dword [ebp - 0x54]
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x60]
jae 0x10307bf
mov edx, dword [ebp - 0x54]
inc dword [ebp - 0x54]
mov eax, 0xf000
test word [ebx + edx*2 + 8], ax
je 0x1030653
movzx eax, word [ebx + edx*2 + 8]
mov edx, dword [ebx]
and dword [ebp - 0x18], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x20], eax
sub dword [ebp - 0x20], edi
mov dword [ebp - 0x38], eax
je 0x103074b
mov eax, dword [ebp - 0x18]
movzx edx, byte [edi + eax]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jb 0x10306e2
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x6c], eax
xor edi, edi
movzx edx, byte [ebp + edi - 0x6c]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
inc edi
cmp edi, 4
jb 0x1030755
mov edi, dword [ebp - 0x38]
add edi, 4
jmp 0x1030653
xor ebx, ebx
mov eax, dword [ebp - 0x34]
sub eax, edi
mov dword [ebp - 0x24], eax
je 0x1030829
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
inc ebx
cmp ebx, dword [ebp - 0x24]
jb 0x10307cb
xor ebx, ebx
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x2c]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x103082d
mov eax, 0xc12ea6b0
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x20], eax
je 0x1030a02
mov edi, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
not edi
jle 0x1030898
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x14], 4
jge 0x1030885
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x38], ebx
jmp 0x103088c
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 0x1030872
mov ecx, dword [ebp - 0xc]
movzx ebx, word [ebp - 8]
movzx edx, word [ebp - 0xa]
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x3c]
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
mov ebx, eax
sub ecx, dword [ebp - 8]
ror ecx, 6
imul edx, ecx
mov ecx, dword [ebp - 8]
rol ebx, 0xf
xor ebx, edx
movzx edx, word [ebp - 0xc]
mov dword [ebp - 0x30], edx
xor edi, ebx
sub ecx, edi
ror ecx, 7
mov ebx, edi
imul edx, ecx
movzx ecx, word [ebp - 6]
ror ebx, 1
sub edx, ebx
xor eax, edx
mov ebx, eax
movzx edx, word [ebp - 8]
mov dword [ebp - 0x14], ecx
sub ebx, edx
imul ebx, ecx
mov ecx, eax
shr ecx, 5
sub ebx, ecx
mov ecx, dword [ebp - 0x14]
xor edi, ebx
mov ebx, edi
xor ecx, edi
rol ecx, 4
imul edx, ecx
ror ebx, 4
mov ecx, dword [ebp - 8]
sub edx, ebx
xor eax, edx
movzx edx, word [ebp - 0xa]
mov ebx, eax
xor ecx, eax
rol ecx, 4
imul edx, ecx
movzx ecx, word [ebp - 8]
ror ebx, 0xd
sub edx, ebx
xor edi, edx
xor ecx, edi
imul ecx, dword [ebp - 0x30]
mov edx, edi
ror edx, 1
sub ecx, edx
xor eax, ecx
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub ecx, eax
ror ecx, 3
imul edx, ecx
ror ebx, 4
movzx ecx, word [ebp - 8]
add ebx, edx
xor edi, ebx
mov edx, edi
mov ebx, dword [ebp - 0x20]
ror edx, 0xe
sub edx, ecx
imul edx, dword [ebp - 0x30]
xor eax, edx
mov edx, dword [ebp - 0x30]
movzx ecx, word [ebp - 0xa]
and dword [ebp - 0x14], 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 - 0x30]
xor edi, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0x38]
xor eax, ecx
test ebx, ebx
mov dword [ebp - 0x30], eax
mov ecx, edi
jle 0x10309d8
cmp dword [ebp - 0x14], 4
jge 0x10309bf
rol dword [ebp - 0x30], 8
mov dl, byte [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x10309cd
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
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 0x10309a5
add ebx, 0xfffffffc
test ebx, ebx
jle 0x10309ef
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x1030a11
xor edx, edx
test ebx, ebx
jge 0x1030a11
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1030a11
xor edx, edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
not eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
shr ecx, 3
test ecx, ecx
jbe 0x1030bdc
movzx edi, word [ebp - 6]
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 8]
mov dword [ebp - 0x40], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
movzx edi, byte [esi + 1]
movzx ebx, byte [esi + 5]
movzx ecx, byte [esi]
shl ecx, 8
or edi, ecx
shl edi, 8
movzx ecx, byte [esi + 2]
or edi, ecx
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
or ecx, ebx
shl ecx, 8
movzx ebx, byte [esi + 6]
or ecx, ebx
xor eax, edi
shl ecx, 8
movzx ebx, byte [esi + 7]
or ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 8]
xor edi, eax
sub ebx, edi
xor ebx, ecx
xor edx, ebx
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x20]
mov edi, edx
xor ecx, edx
add esi, 8
rol ecx, 6
imul ebx, ecx
ror edi, 0xc
xor edi, ebx
mov ebx, dword [ebp - 0x20]
xor eax, edi
mov edi, eax
mov ecx, eax
sub ecx, dword [ebp - 8]
ror ecx, 6
imul ebx, ecx
mov ecx, dword [ebp - 8]
rol edi, 0xf
xor edi, ebx
xor edx, edi
sub ecx, edx
movzx edi, word [ebp - 0xc]
ror ecx, 7
imul edi, ecx
mov ebx, edx
ror ebx, 1
sub edi, ebx
xor eax, edi
mov ecx, eax
mov ebx, eax
movzx edi, word [ebp - 8]
sub ecx, edi
imul ecx, dword [ebp - 0x14]
shr ebx, 5
sub ecx, ebx
xor edx, ecx
mov ecx, dword [ebp - 0x14]
mov ebx, edx
xor ecx, edx
rol ecx, 4
imul edi, ecx
mov ecx, dword [ebp - 8]
ror ebx, 4
sub edi, ebx
mov ebx, dword [ebp - 0x20]
xor eax, edi
mov edi, eax
xor ecx, eax
rol ecx, 4
imul ebx, ecx
movzx ecx, word [ebp - 8]
ror edi, 0xd
sub ebx, edi
xor edx, ebx
mov ebx, ecx
movzx ecx, word [ebp - 0xc]
xor ebx, edx
mov edi, edx
imul ebx, ecx
mov ecx, dword [ebp - 0xc]
ror edi, 1
sub ebx, edi
xor eax, ebx
mov ebx, dword [ebp - 0x14]
mov edi, eax
sub ecx, eax
ror ecx, 3
imul ebx, ecx
movzx ecx, word [ebp - 8]
mov dword [ebp - 0x40], ecx
ror edi, 4
add edi, ebx
xor edx, edi
mov edi, edx
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 - 0x20]
shr ebx, 6
xor edi, ebx
xor edx, edi
mov edi, edx
xor edx, dword [ebp - 0x18]
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
mov byte [edi + 7], dl
xor cl, al
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
xor cl, al
mov byte [edi + 1], 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 - 0x30]
mov byte [edi], al
mov byte [edi + 4], dl
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x70]
add edi, 8
dec dword [ebp - 0x24]
ror eax, 8
mov dword [ebp - 0x18], ecx
ror edx, 8
mov dword [ebp - 0x34], edi
jne 0x1030a37
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
movzx eax, byte [eax + 8]
movzx edx, byte [ebp - 0xd]
sub edx, eax
je 0x1030c79
call fcn.01244f80
and ecx, 0xfffffffc
mov edi, ecx
lea ecx, [edi + 0xfff]
mov edx, 0xffff
mov esi, eax
mov eax, 0xfffff000
and esi, eax
and ecx, eax
mov eax, dword [ebp - 0x68]
mov dword [eax + 8], 0x10d8814
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 0x1030c1e
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x84], esi
mov eax, edi
inc edx
cmp edi, ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x48], 0
jae 0x1030c6f
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x1030c63
mov eax, 0x10d8814
jmp 0x1030d4a
mov eax, dword [ebp - 0x50]
mov ecx, 0x1000000
sub eax, dword [ebp - 0x1c]
mov edx, dword [0x11e47bc]
mov dword [ebp - 0x24], eax
sub ecx, edx
mov dword [ebp - 0x4c], ecx
jne 0x1030c9c
test eax, eax
je 0x1030d3d
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x11efd70]
sub esi, dword [ebp - 0x50]
add eax, ebx
xor edi, edi
mov dword [ebp - 0x48], eax
dec ecx
js 0x1030cdf
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x1030cd6
lea ecx, [eax - 1]
jmp 0x1030cdb
jbe 0x1030ce3
lea edi, [eax + 1]
cmp ecx, edi
jge 0x1030cb8
mov ebx, edi
jmp 0x1030d35
mov ebx, eax
jmp 0x1030d35
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x1030d3d
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 0x1030d28
dec ecx
je 0x1030d23
dec ecx
jne 0x1030d2e
mov edx, dword [ebp - 0x4c]
jmp 0x1030d2e
mov edx, dword [ebp - 0x24]
jmp 0x1030d2e
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x24]
dec eax
dec eax
jne 0x1030d34
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x1030ce7
mov eax, dword [0x1116588]
mov eax, 0x7ea6bee2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x8c]
mov esp, ebp
pop ebp
popfd
ret