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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x78], ebx
mov ebx, 0xfffffff
lea eax, [ebp + 4]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov esi, dword [0x10fb370]
mov edi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
shr eax, 1
and eax, ebx
lea ecx, [esi + eax - 1]
xor edx, edx
mov eax, ecx
div esi
sub ecx, edx
mov eax, dword [0x10fb370]
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 0x1039f76
and dword [ebp - 0x2c], 0
mov eax, dword [0x1007420]
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x1039f2e
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 0x1039f07
xor edx, edx
div ecx
cmp dword [ebp - 0x44], 0
jbe 0x1039f70
inc dword [ebp - 0x2c]
lea esi, [edx*4 + 0x1388f9c]
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [esi], ecx
cmp eax, 0xef0b
je 0x103a127
mov ecx, dword [0x1007420]
lea eax, [edx + 1]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
jb 0x1039f38
xor esi, esi
test esi, esi
jne 0x1039fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [ebp - 0x18], eax
inc esi
push 0x40
push 0x1000
push dword [ebp - 0x48]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x103a13b
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x1039f81
xor esi, esi
cmp dword [0x138b2f8], esi
ja 0x1039fba
test esi, 3
je 0x1039fce
test esi, esi
je 0x1039fcc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1039ed8
mov eax, esi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1039fef
mov byte [eax], 0
inc eax
dec ecx
jne 0x1039fe8
mov eax, 0x63116edc
mov eax, dword [edi + 4]
mov ecx, dword [edi]
and eax, 7
lea eax, [edi + eax + 8]
mov edi, 0x1000000
shr ecx, 1
and ecx, ebx
lea ebx, [ecx + eax]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x10fb370]
sub eax, ecx
sub dword [ebp - 0x30], edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ebx
lea edx, [eax + 1]
xor eax, eax
mov dword [ebp - 0x18], edx
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x103a05b
mov edx, dword [0x138b4cc]
shr dword [ebp - 0x2c], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x138b4cc], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x2c], 0
jne 0x103a031
xor edx, edx
div dword [ebp - 0x18]
lea eax, [edx + esi]
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, 0xacb4bf42
mov esi, dword [ebx]
lea eax, [ebp - 0x74]
mov ebx, dword [ebx + 4]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0xd], 0
mov eax, 0x1a974e27
mov eax, 0xfffffff
mov ecx, dword [0x102c94c]
mov edx, 0xfffff000
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and ebx, eax
and esi, eax
mov eax, edi
add esi, edi
add esp, 0x10
sub eax, ecx
mov dword [ebp - 0x1c], ebx
mov ebx, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], eax
jne 0x103a142
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
jbe 0x103a369
mov edi, 0x4f2ad1fb
mov ecx, 0xb0d52e05
mov esi, 0x7fffffff
mov edx, ecx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
sub eax, edi
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
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 - 0x28], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jb 0x103a0db
jmp 0x103a369
mov esi, dword [0x10fb370]
imul esi, edx
lea esi, [esi + section..data]
jmp 0x1039f72
mov esi, eax
jmp 0x1039faa
mov ecx, ebx
mov esi, dword [0x100003c]
lea esi, [esi + 0x10000a0]
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov esi, dword [esi + 4]
add eax, edi
mov dword [ebp - 0x18], esi
sub ecx, edi
mov esi, ecx
mov edi, ecx
and edi, edx
sub esi, edi
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x1c]
add ecx, esi
mov esi, ecx
and esi, edx
mov edx, dword [ebp - 0x18]
sub ecx, esi
add edx, eax
cmp eax, edx
mov dword [ebp - 0x5c], ecx
mov ecx, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], edx
jmp 0x103a197
cmp dword [ecx], edi
jae 0x103a19c
add ecx, dword [ecx + 4]
cmp ecx, edx
mov dword [ebp - 0x54], ecx
jne 0x103a18e
and dword [ebp - 0x50], 0
cmp ecx, edx
je 0x103a1cd
cmp dword [ecx], edi
jne 0x103a1cd
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x103a1cd
add ecx, 8
movzx edx, word [ecx]
and edx, 0xfff
cmp edx, dword [ebp - 0x40]
jae 0x103a1cd
inc dword [ebp - 0x50]
inc ecx
inc ecx
cmp dword [ebp - 0x50], eax
jne 0x103a1b5
mov esi, 0x7fffffff
mov ecx, 0xb0d52e05
mov edi, 0x4f2ad1fb
mov edx, dword [ebp - 0x54]
jmp 0x103a1e4
mov ebx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x58]
je 0x103a314
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
ja 0x103a314
mov edx, dword [edx + 4]
add edx, 0xfffffff8
shr edx, 1
cmp dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x54]
jne 0x103a228
add edx, dword [edx + 4]
mov dword [ebp - 0x54], edx
cmp edx, dword [ebp - 0x58]
je 0x103a314
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
ja 0x103a314
and dword [ebp - 0x50], 0
jmp 0x103a1f8
mov eax, dword [ebp - 0x60]
cmp dword [edx], eax
jne 0x103a245
mov eax, dword [ebp - 0x50]
movzx eax, word [edx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x5c]
jae 0x103a314
mov ebx, 0xf000
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0x50]
test word [edx + eax*2 + 8], bx
je 0x103a1e1
movzx eax, word [edx + eax*2 + 8]
mov edx, dword [edx]
and eax, 0xfff
xor ebx, ebx
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x1c], eax
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x103a2b9
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
sub eax, edi
add dword [ebp - 0x28], eax
mov edx, ecx
add eax, dword [ebp - 0x24]
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 - 0x28], eax
inc ebx
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x18]
jb 0x103a277
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub eax, dword [ebp - 0x38]
xor ebx, ebx
mov dword [ebp - 0x68], eax
movzx eax, byte [ebp + ebx - 0x68]
sub eax, edi
add dword [ebp - 0x28], eax
mov edx, ecx
add eax, dword [ebp - 0x24]
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 - 0x28], eax
mov dword [ebp - 0x24], eax
inc ebx
cmp ebx, 4
jb 0x103a2c6
mov ebx, dword [ebp - 0x1c]
add ebx, 4
mov dword [ebp - 0x14], ebx
jmp 0x103a1dc
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x14], 0
sub eax, ebx
mov dword [ebp - 0x18], eax
je 0x103a369
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ebx]
sub eax, edi
mov edx, ecx
add dword [ebp - 0x28], eax
add eax, dword [ebp - 0x24]
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 - 0x28], eax
inc dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x103a322
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 0x103a36b
mov eax, 0xc0b58644
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x18], eax
je 0x103a549
mov edi, dword [ebp - 0x30]
not edi
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
test eax, eax
jle 0x103a3d9
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x20], 4
jge 0x103a3c6
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x1c], ebx
jmp 0x103a3cd
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x14], ebx
inc esi
inc dword [ebp - 0x20]
sub edx, 8
cmp dword [ebp - 0x20], eax
jl 0x103a3b3
movzx ecx, word [ebp - 6]
mov ebx, dword [ebp - 0x30]
movzx edx, word [ebp - 8]
mov eax, edx
xor eax, dword [ebp - 0x30]
rol eax, 4
imul ecx, eax
ror ebx, 8
sub ecx, ebx
xor edi, ecx
mov eax, edi
mov ecx, edi
sub ecx, dword [ebp - 0xc]
rol ecx, 8
imul edx, ecx
rol eax, 3
mov ecx, dword [ebp - 8]
add eax, edx
movzx edx, word [ebp - 0xa]
xor eax, dword [ebp - 0x30]
mov ebx, eax
add ecx, eax
ror ecx, 4
imul ecx, edx
movzx edx, word [ebp - 0xc]
ror ebx, 0xf
sub ecx, ebx
xor edi, ecx
mov ecx, dword [ebp - 8]
mov ebx, edi
sub ecx, edi
ror ecx, 2
imul ecx, edx
movzx edx, word [ebp - 6]
rol ebx, 7
xor ebx, ecx
xor eax, ebx
mov ecx, dword [ebp - 0xc]
sub ecx, eax
rol ecx, 0xc
mov ebx, eax
imul edx, ecx
mov ecx, dword [ebp - 0xc]
ror ebx, 4
add ebx, edx
xor edi, ebx
movzx edx, word [ebp - 8]
xor ecx, edi
mov ebx, edi
rol ecx, 0xb
imul edx, ecx
movzx ecx, word [ebp - 0xc]
ror ebx, 8
xor ebx, edx
xor eax, ebx
mov edx, eax
mov ebx, eax
xor ebx, ecx
movzx ecx, word [ebp - 0xa]
imul ebx, ecx
ror edx, 4
sub ebx, edx
xor edi, ebx
movzx ecx, word [ebp - 0xc]
mov edx, edi
sub edx, dword [ebp - 8]
sub edx, ecx
xor eax, edx
movzx edx, word [ebp - 6]
mov ebx, eax
mov ecx, dword [ebp - 0xc]
sub ecx, eax
ror ecx, 1
imul edx, ecx
ror ebx, 6
movzx ecx, word [ebp - 8]
sub edx, ebx
xor edi, edx
mov edx, edi
not edx
ror edx, 0xe
add edx, ecx
movzx ecx, word [ebp - 6]
imul edx, ecx
xor eax, edx
mov edx, dword [ebp - 8]
xor edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
and dword [ebp - 0x20], 0
xor edx, edi
movzx edi, word [ebp - 0xc]
xor edx, eax
mov ebx, edx
xor ecx, edx
rol ecx, 0xf
imul ecx, edi
mov edi, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
ror ebx, 8
add ebx, ecx
xor ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
xor eax, ebx
test edi, edi
mov dword [ebp - 0x38], eax
jle 0x103a521
mov ebx, dword [ebp - 0x3c]
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x20], 4
jge 0x103a50d
rol dword [ebp - 0x38], 8
mov cl, byte [ebp - 0x38]
mov byte [ebx], cl
jmp 0x103a516
rol dword [ebp - 0x34], 8
mov cl, byte [ebp - 0x34]
mov byte [ebx], cl
xor byte [ebp - 0xd], cl
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], edi
jl 0x103a4f6
add edi, 0xfffffffc
test edi, edi
jle 0x103a536
push 4
pop ecx
sub ecx, edi
shl ecx, 3
shr edx, cl
shl edx, cl
jmp 0x103a558
xor edx, edx
test edi, edi
jge 0x103a558
neg edi
shl edi, 3
mov ecx, edi
shr eax, cl
shl eax, cl
jmp 0x103a558
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x1c], eax
not eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
shr ecx, 3
test ecx, ecx
jbe 0x103a72a
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x40], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x6c], edi
movzx ecx, byte [esi]
shl ecx, 8
movzx ebx, byte [esi + 5]
movzx edi, byte [esi + 1]
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
xor eax, ecx
shl edi, 8
movzx ebx, byte [esi + 6]
or edi, ebx
movzx ebx, byte [esi + 7]
mov dword [ebp - 0x38], ecx
movzx ecx, word [ebp - 8]
xor ecx, eax
shl edi, 8
or edi, ebx
add esi, 8
mov ebx, dword [ebp - 0x20]
rol ecx, 4
imul ebx, ecx
mov dword [ebp - 0x34], edi
mov edi, eax
ror edi, 8
sub ebx, edi
xor ebx, dword [ebp - 0x34]
movzx edi, word [ebp - 8]
xor edx, ebx
mov ecx, edx
mov ebx, edx
sub ecx, dword [ebp - 0xc]
rol ecx, 8
imul edi, ecx
rol ebx, 3
add ebx, edi
mov ecx, dword [ebp - 8]
xor eax, ebx
add ecx, eax
ror ecx, 4
mov edi, eax
imul ecx, dword [ebp - 0x40]
ror edi, 0xf
sub ecx, edi
xor edx, ecx
mov ecx, dword [ebp - 8]
sub ecx, edx
mov ebx, edx
ror ecx, 2
movzx edi, word [ebp - 0xc]
imul ecx, edi
rol ebx, 7
xor ebx, ecx
xor eax, ebx
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov edi, eax
sub ecx, eax
rol ecx, 0xc
imul ebx, ecx
ror edi, 4
add edi, ebx
xor edx, edi
movzx edi, word [ebp - 8]
mov ebx, edx
mov ecx, dword [ebp - 0xc]
xor ecx, edx
rol ecx, 0xb
imul edi, ecx
ror ebx, 8
xor ebx, edi
xor eax, ebx
mov edi, eax
ror edi, 4
mov ebx, eax
movzx ecx, word [ebp - 0xc]
xor ebx, ecx
movzx ecx, word [ebp - 0xc]
imul ebx, dword [ebp - 0x40]
sub ebx, edi
xor edx, ebx
mov ebx, dword [ebp - 0x20]
mov edi, edx
sub edi, dword [ebp - 8]
sub edi, ecx
xor eax, edi
mov ecx, dword [ebp - 0xc]
sub ecx, eax
ror ecx, 1
imul ebx, ecx
movzx ecx, word [ebp - 8]
mov edi, eax
ror edi, 6
sub ebx, edi
xor edx, ebx
mov edi, edx
not edi
ror edi, 0xe
add edi, ecx
mov ecx, dword [ebp - 8]
imul edi, dword [ebp - 0x20]
xor eax, edi
movzx edi, word [ebp - 0xc]
xor edx, eax
xor edx, dword [ebp - 0x6c]
xor ecx, edx
rol ecx, 0xf
imul ecx, edi
mov edi, dword [ebp - 0x3c]
mov ebx, edx
xor edx, dword [ebp - 0x14]
ror ebx, 8
add ebx, ecx
xor ebx, dword [ebp - 0x1c]
mov cl, byte [ebp - 0xd]
xor eax, ebx
mov byte [edi + 3], al
mov byte [edi + 7], dl
xor cl, al
xor cl, dl
ror eax, 8
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 2], al
mov byte [edi + 6], dl
ror eax, 8
mov byte [edi + 1], al
xor cl, al
ror edx, 8
xor cl, dl
ror eax, 8
mov byte [edi + 5], dl
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x38]
mov byte [edi], al
mov byte [edi + 4], dl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x34]
add edi, 8
dec dword [ebp - 0x18]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], edi
jne 0x103a580
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 8]
xor al, byte [ebp - 0xd]
je 0x103a7c4
call fcn.010bfbea
mov edx, 0xfffff000
mov edi, eax
mov eax, dword [ebp - 0x64]
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 0x103a766
mov ebx, 0xffff
div ebx
inc edx
cmp ecx, esi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x84], edx
mov eax, ecx
mov dword [ebp - 0x4c], 0
jae 0x103a7ba
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x103a7ae
mov eax, 0x12e07d9
jmp 0x103a895
mov edx, dword [0x102c94c]
mov eax, dword [ebp - 0x48]
mov ecx, 0x1000000
sub eax, dword [ebp - 0x2c]
sub ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], ecx
jne 0x103a7e7
test eax, eax
je 0x103a888
mov ecx, dword [0x1069ab8]
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x48]
add eax, ebx
xor edi, edi
dec ecx
mov dword [ebp - 0x4c], eax
js 0x103a82a
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x103a821
lea ecx, [eax - 1]
jmp 0x103a826
jbe 0x103a82e
lea edi, [eax + 1]
cmp ecx, edi
jge 0x103a803
mov ebx, edi
jmp 0x103a880
mov ebx, eax
jmp 0x103a880
mov eax, dword [ebx*4 + 0x1069abc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x4c]
jae 0x103a888
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 0x103a873
dec ecx
je 0x103a86e
dec ecx
jne 0x103a879
mov edx, dword [ebp - 0x18]
jmp 0x103a879
mov edx, dword [ebp - 0x40]
jmp 0x103a879
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x40]
dec eax
dec eax
jne 0x103a87f
add dword [edi], edx
inc ebx
cmp ebx, dword [0x1069ab8]
jb 0x103a832
mov eax, dword [0x10fb370]
mov eax, 0x4a18daa7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov esi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
popfd
ret