Function at 0x103a8bd
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 - 0x8c], eax
lea eax, [ebp + 4]
sub eax, 4
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x84], esi
mov ebx, 0xfffffff
mov dword [ebp - 0x80], edi
mov ecx, dword [0x10fb370]
mov dword [ebp - 0x6c], eax
add eax, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
shr eax, 2
mov dword [ebp - 0x1c], ecx
and eax, ebx
lea ecx, [ecx + eax - 1]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x1c]
mov eax, dword [0x10fb370]
mov edi, 0x1000000
and esi, ebx
add esi, edi
sub ecx, edx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x48], ecx
mov eax, dword [0x1007420]
mov dword [ebp - 0x44], eax
mov eax, dword [0x10fb370]
mov eax, dword [0x1007420]
test eax, eax
je 0x103a9e2
and dword [ebp - 0x14], 0
mov eax, dword [0x1007420]
dec eax
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x20], ecx
je 0x103a98b
mov edx, dword [0x138b4cc]
shr dword [ebp - 0x20], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x138b4cc], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x20], 0
jne 0x103a961
xor edx, edx
div ecx
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x20], edx
jbe 0x103a9d4
inc dword [ebp - 0x14]
mov eax, 0xef0b
lea edx, [edx*4 + 0x1388f9c]
mov ecx, 0xffff10f4
lock cmpxchg dword [edx], ecx
cmp eax, 0xef0b
je 0x103aa9d
mov ecx, dword [0x1007420]
mov eax, dword [ebp - 0x20]
inc eax
xor edx, edx
div ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 0x44]
jb 0x103a998
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jne 0x103aa68
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 - 0x48]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x103aab4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], 0x11
jb 0x103a9ef
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp dword [0x138b2f8], eax
ja 0x103aa2c
test al, 3
je 0x103aa44
test eax, eax
je 0x103aa40
push 0x8000
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x18], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
je 0x103a931
mov ecx, dword [ebp - 0x48]
test ecx, ecx
mov eax, dword [ebp - 0x18]
je 0x103aa68
mov byte [eax], 0
inc eax
dec ecx
jne 0x103aa61
mov eax, 0xac3ffc71
mov eax, dword [ebp - 0x68]
add dword [eax], 8
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
shr ecx, 2
and ecx, ebx
lea eax, [esi + ecx]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10fb370]
sub eax, ecx
mov dword [ebp - 0x38], esi
lea edx, [eax + 1]
sub dword [ebp - 0x38], edi
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x1c], edx
jmp 0x103aadf
mov eax, dword [0x10fb370]
imul eax, dword [ebp - 0x20]
lea eax, [eax + section..data]
mov dword [ebp - 0x18], eax
jmp 0x103a9d8
mov dword [ebp - 0x18], eax
jmp 0x103aa1d
mov esi, dword [0x138b4cc]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x138b4cc], esi
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr edx, 0x10
test edx, edx
jne 0x103aabc
div dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, edx
push eax
push ecx
push dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, 0x33d5656d
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov byte [ebp - 0xd], 0
mov eax, 0x2b6af55c
mov eax, dword [ebp - 0x70]
mov edx, 0xfffff000
mov ecx, dword [0x102c94c]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and eax, ebx
mov dword [ebp - 0x24], eax
mov eax, edi
and esi, ebx
add esi, edi
add esp, 0x10
mov ebx, esi
mov dword [ebp - 0x14], ebx
sub eax, ecx
mov dword [ebp - 0x40], eax
jne 0x103abac
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x24], 0
jbe 0x103add3
mov esi, 0x7fffffff
mov ecx, 0xb0d52e05
mov edi, 0x4f2ad1fb
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
sub eax, edi
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mov edx, ecx
mul edx
add eax, edx
mov edx, ecx
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, esi
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, esi
add eax, edx
mov edx, ecx
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jb 0x103ab60
jmp 0x103add3
mov eax, dword [ebp - 0x24]
mov ecx, ebx
add eax, ebx
mov esi, dword [0x100003c]
mov dword [ebp - 0x34], eax
lea esi, [esi + 0x10000a0]
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [ebp - 0x1c], esi
add eax, edi
sub ecx, edi
mov esi, ecx
mov edi, ecx
and edi, edx
sub esi, edi
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x24]
add ecx, esi
mov esi, ecx
and esi, edx
mov edx, dword [ebp - 0x1c]
sub ecx, esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], esi
add edx, eax
mov dword [ebp - 0x58], edx
mov ecx, eax
cmp eax, edx
jmp 0x103ac01
cmp dword [ecx], edi
jae 0x103ac06
add ecx, dword [ecx + 4]
cmp ecx, edx
mov dword [ebp - 0x54], ecx
jne 0x103abf8
and dword [ebp - 0x50], 0
cmp ecx, edx
je 0x103ac37
cmp dword [ecx], edi
jne 0x103ac37
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x103ac37
add ecx, 8
movzx edx, word [ecx]
and edx, 0xfff
cmp edx, dword [ebp - 0x30]
jae 0x103ac37
inc dword [ebp - 0x50]
inc ecx
inc ecx
cmp dword [ebp - 0x50], eax
jne 0x103ac1f
mov ecx, 0xb0d52e05
mov edi, 0x4f2ad1fb
mov esi, 0x7fffffff
mov edx, dword [ebp - 0x54]
jmp 0x103ac4e
mov ebx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x58]
je 0x103ad7e
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
ja 0x103ad7e
mov edx, dword [edx + 4]
add edx, 0xfffffff8
shr edx, 1
cmp dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x54]
jne 0x103ac92
add edx, dword [edx + 4]
mov dword [ebp - 0x54], edx
cmp edx, dword [ebp - 0x58]
je 0x103ad7e
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
ja 0x103ad7e
and dword [ebp - 0x50], 0
jmp 0x103ac62
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
jne 0x103acaf
mov eax, dword [ebp - 0x50]
movzx eax, word [edx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x5c]
jae 0x103ad7e
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0x50]
mov ebx, 0xf000
test word [edx + eax*2 + 8], bx
je 0x103ac4b
movzx eax, word [edx + eax*2 + 8]
mov edx, dword [edx]
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x24], eax
xor ebx, ebx
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
je 0x103ad23
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
mov edx, ecx
sub eax, edi
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
add eax, edx
mov edx, ecx
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, esi
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, esi
add eax, edx
mov edx, ecx
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc ebx
mov dword [ebp - 0x28], eax
cmp ebx, dword [ebp - 0x1c]
jb 0x103ace1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov edx, ecx
movzx eax, byte [ebp + ebx - 0x78]
sub eax, edi
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
add eax, edx
mov edx, ecx
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, esi
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, esi
add eax, edx
mov edx, ecx
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
inc ebx
cmp ebx, 4
jb 0x103ad30
mov ebx, dword [ebp - 0x24]
add ebx, 4
mov dword [ebp - 0x14], ebx
jmp 0x103ac46
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x14], 0
sub eax, ebx
mov dword [ebp - 0x1c], eax
je 0x103add3
mov edx, ecx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
sub eax, edi
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
add eax, edx
mov edx, ecx
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, esi
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, esi
add eax, edx
mov edx, ecx
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jb 0x103ad8c
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 0x103add5
mov eax, 0xab0d0cdf
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x1c], eax
je 0x103afb3
mov edi, dword [ebp - 0x38]
not edi
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
test eax, eax
jle 0x103ae43
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x18], 4
jge 0x103ae30
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x24], ebx
jmp 0x103ae37
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 0x103ae1d
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
movzx edx, word [ebp - 8]
movzx ecx, word [ebp - 6]
xor eax, edx
rol eax, 4
imul ecx, eax
ror ebx, 8
sub ecx, ebx
xor edi, ecx
mov ecx, edi
mov eax, edi
sub ecx, dword [ebp - 0xc]
rol ecx, 8
imul ecx, edx
rol eax, 3
movzx edx, word [ebp - 0xa]
add eax, ecx
xor eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov ebx, eax
add ecx, eax
ror ecx, 4
imul ecx, edx
ror ebx, 0xf
sub ecx, ebx
movzx edx, word [ebp - 0xc]
xor edi, ecx
mov ecx, dword [ebp - 8]
sub ecx, edi
ror ecx, 2
imul ecx, edx
mov ebx, edi
rol ebx, 7
xor ebx, ecx
xor eax, ebx
mov ecx, dword [ebp - 0xc]
mov ebx, eax
movzx edx, word [ebp - 6]
sub ecx, eax
rol ecx, 0xc
imul edx, ecx
ror ebx, 4
mov ecx, dword [ebp - 0xc]
add ebx, edx
xor edi, ebx
movzx edx, word [ebp - 8]
mov ebx, edi
xor ecx, edi
rol ecx, 0xb
imul ecx, edx
ror ebx, 8
xor ebx, ecx
xor eax, ebx
movzx ecx, word [ebp - 0xc]
mov ebx, eax
mov edx, eax
xor ebx, ecx
movzx ecx, word [ebp - 0xa]
imul ebx, ecx
movzx ecx, word [ebp - 0xc]
ror edx, 4
sub ebx, edx
xor edi, ebx
mov edx, edi
sub edx, dword [ebp - 8]
sub edx, ecx
xor eax, edx
mov ecx, dword [ebp - 0xc]
sub ecx, eax
ror ecx, 1
mov ebx, eax
movzx edx, word [ebp - 6]
imul edx, ecx
ror ebx, 6
sub edx, ebx
xor edi, edx
movzx ecx, word [ebp - 8]
mov edx, edi
not edx
ror edx, 0xe
add edx, ecx
movzx ecx, word [ebp - 6]
imul edx, ecx
mov ecx, dword [ebp - 8]
xor eax, edx
mov edx, dword [ebp - 8]
xor edx, dword [ebp - 0xc]
and dword [ebp - 0x18], 0
xor edx, edi
xor edx, eax
xor ecx, edx
rol ecx, 0xf
mov ebx, edx
movzx edi, word [ebp - 0xc]
imul ecx, edi
mov edi, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x14]
ror ebx, 8
add ebx, ecx
xor ebx, dword [ebp - 0x24]
xor eax, ebx
test edi, edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], eax
jle 0x103af8b
mov ebx, dword [ebp - 0x3c]
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x18], 4
jge 0x103af77
rol dword [ebp - 0x40], 8
mov cl, byte [ebp - 0x40]
mov byte [ebx], cl
jmp 0x103af80
rol dword [ebp - 0x34], 8
mov cl, byte [ebp - 0x34]
mov byte [ebx], cl
xor byte [ebp - 0xd], cl
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x103af60
add edi, 0xfffffffc
test edi, edi
jle 0x103afa0
push 4
pop ecx
sub ecx, edi
shl ecx, 3
shr edx, cl
shl edx, cl
jmp 0x103afc2
xor edx, edx
test edi, edi
jge 0x103afc2
neg edi
shl edi, 3
mov ecx, edi
shr eax, cl
shl eax, cl
jmp 0x103afc2
mov eax, dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x24], eax
not eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
shr ecx, 3
test ecx, ecx
jbe 0x103b196
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x30], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x4c], edi
movzx ebx, byte [esi + 5]
movzx edi, byte [esi]
movzx ecx, byte [esi + 1]
shl edi, 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]
xor eax, ecx
shl edi, 8
or edi, ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
add esi, 8
mov ecx, eax
mov dword [ebp - 0x34], edi
movzx edi, word [ebp - 8]
xor ecx, edi
mov edi, eax
rol ecx, 4
imul ebx, ecx
ror edi, 8
sub ebx, edi
movzx edi, word [ebp - 8]
xor ebx, dword [ebp - 0x34]
xor edx, ebx
mov ebx, edx
mov ecx, edx
sub ecx, dword [ebp - 0xc]
rol ecx, 8
imul ecx, edi
rol ebx, 3
add ebx, ecx
mov ecx, dword [ebp - 8]
xor eax, ebx
mov edi, eax
add ecx, eax
ror ecx, 4
imul ecx, dword [ebp - 0x30]
ror edi, 0xf
sub ecx, edi
xor edx, ecx
movzx edi, word [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub ecx, edx
mov ebx, edx
ror ecx, 2
imul ecx, edi
rol ebx, 7
xor ebx, ecx
xor eax, ebx
mov ebx, dword [ebp - 0x18]
mov edi, eax
mov ecx, dword [ebp - 0xc]
sub ecx, eax
rol ecx, 0xc
imul ebx, ecx
mov ecx, dword [ebp - 0xc]
ror edi, 4
add edi, ebx
xor edx, edi
xor ecx, edx
rol ecx, 0xb
mov ebx, edx
movzx edi, word [ebp - 8]
imul ecx, edi
ror ebx, 8
xor ebx, ecx
xor eax, ebx
mov ebx, eax
movzx ecx, word [ebp - 0xc]
mov edi, eax
ror edi, 4
xor ebx, ecx
imul ebx, dword [ebp - 0x30]
sub ebx, edi
xor edx, ebx
mov ebx, dword [ebp - 0x18]
mov edi, edx
sub edi, dword [ebp - 8]
movzx ecx, word [ebp - 0xc]
sub edi, ecx
xor eax, edi
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov edi, eax
ror ecx, 1
imul ebx, ecx
ror edi, 6
sub ebx, edi
xor edx, ebx
movzx ecx, word [ebp - 8]
mov edi, edx
not edi
ror edi, 0xe
add edi, ecx
mov ecx, dword [ebp - 8]
imul edi, dword [ebp - 0x18]
xor eax, edi
xor edx, eax
movzx edi, word [ebp - 0xc]
xor edx, dword [ebp - 0x4c]
mov ebx, edx
xor ecx, edx
rol ecx, 0xf
imul ecx, edi
xor edx, dword [ebp - 0x14]
ror ebx, 8
mov edi, dword [ebp - 0x3c]
add ebx, ecx
mov cl, byte [ebp - 0xd]
xor ebx, dword [ebp - 0x24]
xor eax, ebx
xor cl, al
xor cl, dl
mov byte [edi + 3], al
mov byte [edi + 7], 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
ror edx, 8
mov byte [edi + 1], al
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 - 0x40]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x34]
dec dword [ebp - 0x1c]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], edi
jne 0x103afea
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x48]
mov al, byte [eax + 8]
xor al, byte [ebp - 0xd]
je 0x103b232
call fcn.010bfbea
and ecx, 0xfffffffc
mov edi, ecx
mov edx, 0xffff
mov esi, eax
mov eax, 0xfffff000
lea ecx, [edi + 0xfff]
and esi, eax
and ecx, eax
mov eax, dword [ebp - 0x6c]
mov dword [eax + 8], 0x12e07d9
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 0x103b1d4
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x90], esi
inc edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x4c], 0
mov eax, edi
cmp edi, ecx
jae 0x103b228
mov edx, dword [ebp - 0x4c]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x103b21c
mov eax, 0x12e07d9
jmp 0x103b303
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x20]
mov edx, dword [0x102c94c]
mov dword [ebp - 0x30], eax
mov ecx, 0x1000000
sub ecx, edx
mov dword [ebp - 0x1c], ecx
jne 0x103b255
test eax, eax
je 0x103b2f6
mov ecx, dword [0x1069ab8]
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x44]
add eax, ebx
xor edi, edi
mov dword [ebp - 0x4c], eax
dec ecx
js 0x103b298
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x103b28f
lea ecx, [eax - 1]
jmp 0x103b294
jbe 0x103b29c
lea edi, [eax + 1]
cmp ecx, edi
jge 0x103b271
mov ebx, edi
jmp 0x103b2ee
mov ebx, eax
jmp 0x103b2ee
mov eax, dword [ebx*4 + 0x1069abc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x4c]
jae 0x103b2f6
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 0x103b2e1
dec ecx
je 0x103b2dc
dec ecx
jne 0x103b2e7
mov edx, dword [ebp - 0x1c]
jmp 0x103b2e7
mov edx, dword [ebp - 0x30]
jmp 0x103b2e7
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x30]
dec eax
dec eax
jne 0x103b2ed
add dword [edi], edx
inc ebx
cmp ebx, dword [0x1069ab8]
jb 0x103b2a0
mov eax, dword [0x10fb370]
mov eax, 0x195a4147
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
mov esp, ebp
pop ebp
popfd
ret