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

Disassembly:
push edi
pushfd
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], edx
lea eax, [ebp + 4]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], esi
sub eax, 4
mov dword [ebp - 0x84], edi
mov edi, 0xfffffff
mov ecx, dword [0x1116588]
mov dword [ebp - 0x6c], eax
add eax, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [eax]
mov ebx, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
and eax, edi
xor edx, edx
lea ecx, [ecx + eax - 1]
mov eax, ecx
div dword [ebp - 0x1c]
mov esi, 0x1000000
shr ebx, 1
mov eax, dword [0x1116588]
and ebx, edi
add ebx, esi
mov dword [ebp - 0x54], ebx
sub ecx, edx
mov dword [ebp - 0x24], ecx
mov eax, dword [0x1011bb0]
mov dword [ebp - 0x48], eax
mov eax, dword [0x1116588]
mov eax, dword [0x1011bb0]
test eax, eax
je 0x12349e3
and dword [ebp - 0x3c], 0
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
xor eax, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x123498c
mov edx, dword [0x12d47a4]
shr dword [ebp - 0x20], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x12d47a4], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x20], 0
jne 0x1234962
xor edx, edx
div ecx
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x20], edx
jbe 0x12349d5
mov eax, 0xcb65
mov ecx, 0xffff349a
inc dword [ebp - 0x3c]
lea edx, [edx*4 + 0x12d4c14]
lock cmpxchg dword [edx], ecx
cmp eax, 0xcb65
je 0x1234b9d
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x1011bb0]
inc eax
xor edx, edx
div ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 0x48]
jb 0x1234999
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x1234a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x20]
push 0x40
push 0x1000
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1234bb4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], 0x11
jb 0x12349f0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp dword [0x12ef80c], eax
ja 0x1234a2d
test al, 3
je 0x1234a45
test eax, eax
je 0x1234a41
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x14], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 0
je 0x1234932
mov ecx, dword [ebp - 0x24]
test ecx, ecx
mov eax, dword [ebp - 0x14]
je 0x1234a69
mov byte [eax], 0
inc eax
dec ecx
jne 0x1234a62
mov eax, 0xa13d9ed1
mov eax, dword [ebp - 0x4c]
add dword [eax], 8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
and eax, edi
lea ecx, [ebx + eax]
mov dword [ebp - 0x48], ecx
mov ecx, dword [0x1116588]
mov dword [ebp - 0x40], ebx
sub ecx, eax
sub dword [ebp - 0x40], esi
inc ecx
mov edx, ecx
mov dword [ebp - 0x3c], eax
xor eax, eax
test ecx, ecx
je 0x1234ac3
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 0x1234a9c
xor edx, edx
div ecx
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x40]
mov eax, 0xffd6cf86
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0xd], 0
mov eax, 0xeee21147
mov eax, dword [ebp - 0x78]
mov ecx, dword [0x11e47bc]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and eax, edi
and ebx, edi
mov dword [ebp - 0x18], eax
mov edi, 0xfffff000
mov eax, esi
add esp, 0x10
add ebx, esi
sub eax, ecx
mov dword [ebp - 0x30], eax
jne 0x1234bbc
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x1234e25
mov ecx, 0x7fffffff
mov esi, 0x6b615f7d
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
inc edi
mov dword [ebp - 0x28], eax
cmp edi, dword [ebp - 0x18]
jb 0x1234b3a
jmp 0x1234e25
mov eax, dword [0x1116588]
imul eax, dword [ebp - 0x20]
lea eax, [eax + section..data]
mov dword [ebp - 0x14], eax
jmp 0x12349d9
mov dword [ebp - 0x14], eax
jmp 0x1234a1e
mov ecx, ebx
mov edx, dword [0x100003c]
mov eax, dword [ebp - 0x18]
lea edx, [edx + 0x10000a0]
add eax, ebx
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
add eax, esi
sub ecx, esi
mov edx, dword [edx + 4]
mov esi, ecx
and esi, edi
mov dword [ebp - 0x1c], edx
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x18]
add ecx, edx
mov edx, ecx
and edx, edi
sub ecx, edx
mov edi, eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ecx
je 0x1234c13
cmp dword [edi], esi
jae 0x1234c13
add edi, dword [edi + 4]
cmp edi, ecx
jne 0x1234c08
and dword [ebp - 0x58], 0
cmp edi, ecx
je 0x1234c43
cmp dword [edi], esi
jne 0x1234c43
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
je 0x1234c43
lea esi, [edi + 8]
movzx eax, word [esi]
and eax, 0xfff
cmp eax, dword [ebp - 0x24]
jae 0x1234c43
inc dword [ebp - 0x58]
inc esi
inc esi
cmp dword [ebp - 0x58], ecx
jne 0x1234c2c
mov esi, 0x6b615f7d
mov ecx, 0x7fffffff
jmp 0x1234c52
mov edx, dword [ebp - 0x68]
cmp edi, dword [ebp - 0x60]
je 0x1234dbb
cmp dword [edi], edx
ja 0x1234dbb
mov eax, dword [edi + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x58], eax
jne 0x1234c8d
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x60]
je 0x1234dbb
mov eax, dword [ebp - 0x68]
cmp dword [edi], eax
ja 0x1234dbb
and dword [ebp - 0x58], 0
jmp 0x1234c63
mov eax, dword [ebp - 0x68]
cmp dword [edi], eax
jne 0x1234caa
mov eax, dword [ebp - 0x58]
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x64]
jae 0x1234dbb
mov eax, 0xf000
mov edx, dword [ebp - 0x58]
inc dword [ebp - 0x58]
test word [edi + edx*2 + 8], ax
je 0x1234c4f
movzx eax, word [edi + edx*2 + 8]
mov edx, dword [edi]
and dword [ebp - 0x18], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x34], eax
sub dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], eax
je 0x1234d47
mov eax, dword [ebp - 0x18]
movzx edx, byte [ebx + eax]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x34]
jb 0x1234cde
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
xor ebx, ebx
movzx edx, byte [ebp + ebx - 0x74]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
inc ebx
cmp ebx, 4
jb 0x1234d51
mov ebx, dword [ebp - 0x24]
add ebx, 4
jmp 0x1234c4f
xor edi, edi
mov eax, dword [ebp - 0x38]
sub eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1234e25
movzx edx, byte [ebx + edi]
add edx, esi
add dword [ebp - 0x2c], edx
add edx, dword [ebp - 0x28]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1234dc7
xor esi, esi
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 0x1234e29
mov eax, 0x4666e937
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
and eax, 7
mov dword [ebp - 0x1c], eax
je 0x1235004
cmp eax, esi
mov edx, dword [ebp - 0x40]
not edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], esi
jle 0x1234e94
push 0x38
pop esi
cmp dword [ebp - 0x14], 4
movzx ebx, byte [edi]
jge 0x1234e81
lea ecx, [esi - 0x20]
shl ebx, cl
or dword [ebp - 0x34], ebx
jmp 0x1234e88
mov ecx, esi
shl ebx, cl
or dword [ebp - 0x18], ebx
inc edi
inc dword [ebp - 0x14]
sub esi, 8
cmp dword [ebp - 0x14], eax
jl 0x1234e6e
mov esi, dword [ebp - 0xc]
movzx ecx, word [ebp - 8]
xor esi, dword [ebp - 8]
xor esi, edx
movzx edx, word [ebp - 0xa]
xor esi, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov eax, esi
mov dword [ebp - 0x14], edx
sub eax, ecx
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
ror ebx, 0xb
movzx ecx, word [ebp - 0xc]
sub edx, ebx
xor esi, edx
movzx edx, word [ebp - 6]
mov ebx, esi
mov dword [ebp - 0x38], edx
xor edx, esi
imul edx, ecx
ror ebx, 6
xor ebx, edx
mov edx, dword [ebp - 0x30]
xor eax, ebx
xor edx, eax
imul edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov ebx, eax
shr ebx, 0xb
xor edx, ebx
xor esi, edx
xor ecx, esi
mov edx, esi
mov ebx, dword [ebp - 0x30]
rol ecx, 6
imul ebx, ecx
rol edx, 8
mov ecx, dword [ebp - 8]
sub ebx, edx
xor eax, ebx
mov ebx, dword [ebp - 0x14]
xor ecx, eax
rol ecx, 2
imul ebx, ecx
mov edx, eax
ror edx, 6
xor edx, ebx
mov ebx, dword [ebp - 0x14]
xor esi, edx
mov edx, dword [ebp - 0x14]
mov ecx, esi
xor edx, esi
imul edx, dword [ebp - 0x24]
ror ecx, 0xe
add ecx, edx
mov edx, dword [ebp - 0x38]
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 - 0x30]
xor ecx, esi
rol ecx, 3
imul edx, ecx
mov ecx, esi
shr ecx, 8
sub edx, ecx
mov ecx, dword [ebp - 8]
xor eax, edx
sub ecx, eax
mov edx, eax
ror ecx, 0xc
imul ebx, ecx
mov ecx, dword [ebp - 0x24]
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 - 0x18]
ror ebx, 0xa
sub ecx, ebx
xor ecx, dword [ebp - 0x34]
xor eax, ecx
mov ecx, esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
test ebx, ebx
jle 0x1234fda
cmp dword [ebp - 0x14], 4
jge 0x1234fc1
rol dword [ebp - 0x30], 8
mov ebx, dword [ebp - 0x44]
mov dl, byte [ebp - 0x30]
inc dword [ebp - 0x44]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x1234fcf
mov edx, dword [ebp - 0x44]
inc dword [ebp - 0x44]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ebx
jl 0x1234fa7
add ebx, 0xfffffffc
test ebx, ebx
jle 0x1234ff1
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr esi, cl
shl esi, cl
mov edx, esi
jmp 0x1235013
xor edx, edx
test ebx, ebx
jge 0x1235013
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1235013
mov eax, dword [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x34], eax
not eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, dword [ebp - 0x3c]
shr esi, 3
test esi, esi
jbe 0x12351ea
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x70], ecx
movzx ecx, word [ebp - 0xa]
mov dword [ebp - 0x24], ecx
neg dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
movzx ecx, word [ebp - 6]
mov dword [ebp - 0x38], ecx
movzx esi, byte [edi + 1]
movzx ecx, byte [edi]
movzx ebx, byte [edi + 5]
shl ecx, 8
or esi, ecx
shl esi, 8
movzx ecx, byte [edi + 2]
or esi, ecx
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 4]
shl ecx, 8
or ecx, ebx
shl ecx, 8
movzx ebx, byte [edi + 6]
or ecx, ebx
movzx ebx, byte [edi + 7]
xor eax, esi
shl ecx, 8
or ecx, ebx
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x70]
xor esi, ecx
xor esi, edx
xor esi, eax
mov dword [ebp - 0x50], ecx
movzx ecx, word [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov edx, esi
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
ror esi, 0xb
movzx ecx, word [ebp - 0xc]
sub ebx, esi
xor edx, ebx
mov ebx, dword [ebp - 0x38]
mov esi, edx
xor ebx, edx
imul ebx, ecx
ror esi, 6
xor esi, ebx
xor eax, esi
movzx esi, word [ebp - 8]
mov ecx, esi
xor ecx, eax
mov ebx, eax
imul ecx, dword [ebp - 0x38]
shr ebx, 0xb
xor ecx, ebx
xor edx, ecx
movzx ecx, word [ebp - 0xc]
xor ecx, edx
rol ecx, 6
mov ebx, edx
imul esi, ecx
rol ebx, 8
sub esi, ebx
mov ecx, dword [ebp - 8]
xor eax, esi
xor ecx, eax
mov ebx, dword [ebp - 0x14]
rol ecx, 2
imul ebx, ecx
movzx ecx, word [ebp - 0xc]
mov esi, eax
ror esi, 6
xor esi, ebx
mov ebx, dword [ebp - 0x14]
xor edx, esi
mov esi, edx
xor ebx, edx
ror esi, 0xe
imul ebx, ecx
mov ecx, dword [ebp - 0x24]
add esi, ebx
mov ebx, dword [ebp - 0x14]
xor eax, esi
add ecx, eax
mov esi, dword [ebp - 0x38]
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
movzx esi, word [ebp - 8]
rol ecx, 3
imul esi, ecx
mov ecx, edx
shr ecx, 8
sub esi, ecx
mov ecx, dword [ebp - 8]
xor eax, esi
mov esi, eax
sub ecx, eax
ror ecx, 0xc
imul ebx, ecx
rol esi, 8
add esi, ebx
xor edx, esi
mov ecx, dword [ebp - 8]
movzx esi, word [ebp - 0xc]
mov ebx, edx
xor ecx, edx
rol ecx, 4
imul esi, ecx
mov cl, byte [ebp - 0xd]
xor edx, dword [ebp - 0x18]
ror ebx, 0xa
sub esi, ebx
xor esi, dword [ebp - 0x34]
xor eax, esi
xor cl, al
xor cl, dl
mov esi, dword [ebp - 0x44]
mov byte [esi + 3], al
ror eax, 8
mov byte [esi + 7], dl
xor cl, al
mov byte [esi + 2], al
ror edx, 8
mov byte [esi + 6], dl
xor cl, dl
ror eax, 8
mov byte [esi + 1], al
xor cl, al
ror edx, 8
mov byte [esi + 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 [esi], al
mov byte [esi + 4], dl
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x50]
add esi, 8
dec dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
ror eax, 8
ror edx, 8
mov dword [ebp - 0x44], esi
jne 0x1235041
movzx ecx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax + 8]
sub ecx, eax
je 0x1235287
call fcn.01244f80
mov edx, 0xffff
mov ecx, dword [ebp - 0x4c]
mov esi, eax
and ecx, 0xfffffffc
mov eax, 0xfffff000
mov edi, ecx
and esi, eax
lea ecx, [edi + 0xfff]
and ecx, eax
mov eax, dword [ebp - 0x6c]
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 0x123522c
mov ebx, 0xffff
div ebx
mov eax, edi
mov dword [ebp - 0x88], esi
inc edx
cmp edi, ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x50], 0
jae 0x123527d
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x1235271
mov eax, 0x10d8814
jmp 0x1235358
mov edx, dword [0x11e47bc]
mov eax, dword [ebp - 0x54]
mov ecx, 0x1000000
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
sub ecx, edx
mov dword [ebp - 0x4c], ecx
jne 0x12352aa
test eax, eax
je 0x123534b
mov ebx, dword [ebp - 0x40]
mov ecx, dword [0x11efd70]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x54]
add eax, ebx
xor edi, edi
mov dword [ebp - 0x50], eax
dec ecx
js 0x12352ed
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x12352e4
lea ecx, [eax - 1]
jmp 0x12352e9
jbe 0x12352f1
lea edi, [eax + 1]
cmp ecx, edi
jge 0x12352c6
mov ebx, edi
jmp 0x1235343
mov ebx, eax
jmp 0x1235343
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x50]
jae 0x123534b
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 0x1235336
dec ecx
je 0x1235331
dec ecx
jne 0x123533c
mov edx, dword [ebp - 0x4c]
jmp 0x123533c
mov edx, dword [ebp - 0x1c]
jmp 0x123533c
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x1c]
dec eax
dec eax
jne 0x1235342
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x12352f5
mov eax, dword [0x1116588]
mov eax, 0x670bd03a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x84]
mov esi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x94]
mov esp, ebp
pop ebp
popfd
ret