Function at 0x1059840
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 - 0x7c], ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], ebx
mov ecx, 0xfffffff
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x90], edi
lea edi, [eax + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [edi]
mov esi, dword [eax]
shr esi, 1
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 4]
and eax, ecx
and esi, ecx
xor edx, edx
mov ecx, dword [0x109dc84]
mov dword [ebp - 0x38], ecx
lea ecx, [ecx + eax - 1]
mov eax, ecx
div dword [ebp - 0x38]
mov eax, dword [0x109dc84]
mov dword [ebp - 0x48], edi
mov ebx, 0x1000000
add esi, ebx
mov dword [ebp - 0x50], esi
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [0x129bea8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x109dc84]
mov eax, dword [0x129bea8]
test eax, eax
je 0x1059960
and dword [ebp - 0x2c], 0
mov eax, dword [0x129bea8]
dec eax
lea ecx, [eax + 1]
xor eax, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x1059909
mov edx, dword [0x1427a7c]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x1427a7c], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0x30], 0x10
jne 0x10598e3
xor edx, edx
div ecx
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], edx
jbe 0x1059952
lea edx, [edx*4 + 0x1427d38]
mov ecx, 0xffffc428
mov eax, 0x3bd7
inc dword [ebp - 0x2c]
lock cmpxchg dword [edx], ecx
cmp eax, 0x3bd7
je 0x1059aea
mov eax, dword [ebp - 0x30]
inc eax
xor edx, edx
mov ecx, dword [0x129bea8]
div ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
jb 0x1059916
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x10599e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
inc dword [ebp - 0x2c]
push 0x40
push 0x1000
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1059b01
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x2c], 0x11
jb 0x105996d
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp dword [0x144656c], eax
ja 0x10599aa
test al, 3
je 0x10599c2
test eax, eax
je 0x10599be
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x14], 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 0
je 0x10598b3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x10599e6
mov byte [eax], 0
inc eax
dec ecx
jne 0x10599df
mov eax, 0x83926668
add dword [edi], 8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
and eax, 0xfffffff
lea ecx, [eax + esi]
mov dword [ebp - 0x38], ecx
mov ecx, dword [0x109dc84]
mov dword [ebp - 0x44], esi
sub ecx, eax
sub dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], eax
inc ecx
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x1059a3e
mov esi, dword [0x1427a7c]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x1427a7c], esi
shr esi, 0x10
shl eax, 0x10
or eax, esi
shr edx, 0x10
jne 0x1059a19
xor edx, edx
div ecx
mov eax, dword [ebp - 0x14]
add eax, edx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x44]
mov eax, 0x4387560d
mov eax, dword [ebp - 0x38]
mov edi, dword [eax + 4]
mov esi, dword [eax]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
mov byte [ebp - 0xd], 0
mov eax, 0xd30a8b3b
mov ecx, dword [0x13ca1e8]
mov eax, 0xfffffff
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and esi, eax
and edi, eax
mov eax, ebx
add esp, 0x10
add esi, ebx
sub eax, ecx
mov dword [ebp - 0x3c], eax
jne 0x1059b09
and dword [ebp - 0x18], 0
test edi, edi
jbe 0x1059d0d
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + esi]
sub ecx, 0x7cfef09d
add dword [ebp - 0x28], ecx
add ecx, dword [ebp - 0x24]
mov eax, ecx
imul eax, eax, 0x2cfc
rol eax, 3
ror ecx, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
mov ecx, 0x83010f63
mul ecx
add eax, edx
add dword [ebp - 0x28], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x24], eax
jb 0x1059aa2
jmp 0x1059d0d
mov eax, dword [0x109dc84]
imul eax, dword [ebp - 0x30]
lea eax, [eax + section..data]
mov dword [ebp - 0x14], eax
jmp 0x1059956
mov dword [ebp - 0x14], eax
jmp 0x105999b
mov ecx, esi
mov edx, dword [0x100003c]
sub ecx, ebx
lea eax, [edi + esi]
lea edx, [edx + 0x10000a0]
mov dword [ebp - 0x34], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x20], edx
mov edx, ecx
and edx, 0xfffff000
mov dword [ebp - 0x1c], edx
mov edx, ecx
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
add ecx, edi
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x20]
add eax, ebx
add ecx, eax
mov edi, eax
mov dword [ebp - 0x68], edx
cmp eax, ecx
mov dword [ebp - 0x60], ecx
je 0x1059b6a
mov eax, dword [ebp - 0x1c]
cmp dword [edi], eax
jae 0x1059b6a
add edi, dword [edi + 4]
cmp edi, ecx
jne 0x1059b5c
and dword [ebp - 0x58], 0
cmp edi, ecx
je 0x1059ba3
mov eax, dword [ebp - 0x1c]
cmp dword [edi], eax
jne 0x1059ba3
mov eax, dword [edi + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x20], eax
je 0x1059ba3
mov eax, dword [ebp - 0x58]
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x4c]
jae 0x1059ba3
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x20]
jne 0x1059b86
mov ecx, dword [ebp - 0x58]
cmp edi, dword [ebp - 0x60]
je 0x1059cc3
cmp dword [edi], edx
ja 0x1059cc3
mov eax, dword [edi + 4]
add eax, 0xfffffff8
shr eax, 1
cmp ecx, eax
jne 0x1059bdb
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x60]
je 0x1059cc3
cmp dword [edi], edx
ja 0x1059cc3
xor ecx, ecx
jmp 0x1059bb7
cmp dword [edi], edx
jne 0x1059bf2
movzx eax, word [edi + ecx*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x64]
jae 0x1059cc3
mov eax, ecx
inc ecx
test word [edi + eax*2 + 8], 0xf000
mov dword [ebp - 0x58], ecx
je 0x1059ba6
movzx eax, word [edi + eax*2 + 8]
mov ecx, dword [edi]
and dword [ebp - 0x18], 0
and eax, 0xfff
lea eax, [eax + ecx + 0x1000000]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x1c], esi
mov dword [ebp - 0x40], eax
je 0x1059c69
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + esi]
sub ecx, 0x7cfef09d
add dword [ebp - 0x28], ecx
add ecx, dword [ebp - 0x24]
mov eax, ecx
imul eax, eax, 0x2cfc
rol eax, 3
ror ecx, 3
xor eax, ecx
imul eax, eax, 0x83010f63
mov ecx, 0x83010f63
ror eax, 0x1c
mul ecx
add eax, edx
add dword [ebp - 0x28], eax
inc dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x1059c23
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
xor esi, esi
movzx ecx, byte [ebp + esi - 0x6c]
sub ecx, 0x7cfef09d
add dword [ebp - 0x28], ecx
add ecx, dword [ebp - 0x24]
mov eax, ecx
imul eax, eax, 0x2cfc
rol eax, 3
ror ecx, 3
xor eax, ecx
mov ecx, 0x83010f63
imul eax, eax, 0x83010f63
ror eax, 0x1c
mul ecx
add eax, edx
add dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
inc esi
cmp esi, 4
jb 0x1059c76
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x40]
add esi, 4
jmp 0x1059ba3
xor edi, edi
mov eax, dword [ebp - 0x34]
sub eax, esi
mov dword [ebp - 0x20], eax
je 0x1059d0d
movzx ecx, byte [esi + edi]
sub ecx, 0x7cfef09d
add dword [ebp - 0x28], ecx
add ecx, dword [ebp - 0x24]
mov eax, ecx
imul eax, eax, 0x2cfc
rol eax, 3
ror ecx, 3
xor eax, ecx
imul eax, eax, 0x83010f63
ror eax, 0x1c
mov ecx, 0x83010f63
mul ecx
add eax, edx
add dword [ebp - 0x28], eax
inc edi
cmp edi, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jb 0x1059ccf
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 0x1059d0f
mov eax, 0xb6889480
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
and eax, 7
mov dword [ebp - 0x1c], eax
je 0x105a0c1
xor ecx, ecx
cmp eax, ecx
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x14], ecx
not edi
jle 0x1059d7c
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x14], 4
jge 0x1059d69
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x40], ebx
jmp 0x1059d70
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 0x1059d56
movzx edx, word [ebp - 0xc]
mov eax, edi
movzx ecx, word [ebp - 0xa]
xor eax, ecx
mov ecx, edi
imul eax, edx
shr ecx, 4
xor eax, ecx
xor eax, dword [ebp - 0x44]
mov ecx, eax
xor ecx, edx
rol ecx, 7
movzx edx, word [ebp - 6]
imul ecx, edx
mov edx, eax
shr edx, 0xd
add ecx, edx
movzx edx, word [ebp - 8]
xor edi, ecx
mov ecx, edi
sub ecx, dword [ebp - 0xc]
mov ebx, edi
rol ecx, 8
imul ecx, edx
ror ebx, 8
sub ecx, ebx
xor eax, ecx
mov ebx, eax
ror ebx, 0xc
movzx ecx, word [ebp - 0xa]
sub ebx, ecx
mov ecx, dword [ebp - 8]
imul ebx, edx
xor ecx, dword [ebp - 0xc]
xor edi, ebx
xor ecx, edi
xor eax, ecx
mov ebx, eax
mov ecx, eax
xor ecx, edx
rol ecx, 4
movzx edx, word [ebp - 6]
imul ecx, edx
movzx edx, word [ebp - 8]
ror ebx, 3
add ebx, ecx
mov ecx, dword [ebp - 0xc]
xor edi, ebx
sub ecx, edi
mov ebx, edi
rol ecx, 0xa
imul ecx, edx
ror ebx, 8
add ebx, ecx
xor eax, ebx
movzx ecx, word [ebp - 0xa]
mov ebx, eax
sub ebx, ecx
xor ebx, dword [ebp - 8]
xor edi, ebx
mov ecx, edi
sub ecx, edx
movzx edx, word [ebp - 0xc]
imul ecx, edx
mov ebx, edi
shr ebx, 6
sub ecx, ebx
xor eax, ecx
mov ebx, eax
mov ecx, eax
xor ecx, edx
movzx edx, word [ebp - 6]
rol ecx, 3
imul ecx, edx
ror ebx, 0xa
xor ebx, ecx
mov ecx, dword [ebp - 0xc]
xor edi, ebx
movzx ebx, word [ebp - 8]
xor ecx, edi
rol ecx, 3
imul ecx, ebx
mov ebx, edi
shr ebx, 1
sub ecx, ebx
xor eax, ecx
mov ecx, eax
xor ecx, edx
mov edx, ecx
mov ebx, eax
movzx ecx, word [ebp - 0xa]
imul edx, ecx
movzx ecx, word [ebp - 0xc]
and dword [ebp - 0x14], 0
ror ebx, 0xd
add ebx, edx
xor edi, ebx
mov edx, edi
mov ebx, dword [ebp - 0x1c]
sub edx, dword [ebp - 8]
xor edi, dword [ebp - 0x18]
sub edx, ecx
xor edx, dword [ebp - 0x40]
mov ecx, edi
xor eax, edx
mov dword [ebp - 0x3c], eax
test ebx, ebx
jle 0x1059ec8
cmp dword [ebp - 0x14], 4
jge 0x1059eaf
rol dword [ebp - 0x3c], 8
mov dl, byte [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x1059ebd
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 - 0x1c]
cmp dword [ebp - 0x14], ebx
jl 0x1059e95
add ebx, 0xfffffffc
test ebx, ebx
jle 0x105a0a7
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
mov ebx, 0x1000000
mov ecx, dword [ebp - 0x30]
shr ecx, 3
je 0x105a0d5
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x70], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x1c], edi
movzx ecx, byte [esi + 1]
mov ch, byte [esi]
movzx edi, byte [esi + 2]
add esi, 8
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi - 5]
or ecx, edi
mov dword [ebp - 0x3c], ecx
movzx edi, byte [esi - 2]
xor ecx, ecx
mov ch, byte [esi - 4]
mov cl, byte [esi - 3]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi - 1]
or ecx, edi
mov dword [ebp - 0x4c], ecx
movzx edi, word [ebp - 0xc]
xor edx, ecx
mov ebx, edx
mov ecx, edx
xor ecx, dword [ebp - 0x1c]
imul ecx, edi
shr ebx, 4
xor ecx, ebx
xor ecx, dword [ebp - 0x3c]
xor eax, ecx
mov ecx, eax
xor ecx, edi
rol ecx, 7
imul ecx, dword [ebp - 0x14]
mov edi, eax
shr edi, 0xd
add ecx, edi
movzx edi, word [ebp - 8]
xor edx, ecx
mov ebx, edx
mov ecx, edx
sub ecx, dword [ebp - 0xc]
rol ecx, 8
imul ecx, edi
ror ebx, 8
sub ecx, ebx
xor eax, ecx
mov ecx, eax
ror ecx, 0xc
sub ecx, dword [ebp - 0x1c]
imul ecx, edi
xor edx, ecx
mov ecx, edx
xor ecx, eax
xor ecx, dword [ebp - 0x70]
mov eax, ecx
xor ecx, edi
mov edi, eax
rol ecx, 4
imul ecx, dword [ebp - 0x14]
ror edi, 3
add edi, ecx
mov ecx, dword [ebp - 0xc]
xor edx, edi
sub ecx, edx
rol ecx, 0xa
movzx edi, word [ebp - 8]
mov ebx, edx
imul ecx, edi
ror ebx, 8
add ebx, ecx
xor eax, ebx
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 8]
xor edx, ecx
mov ecx, edx
sub ecx, edi
mov ebx, edx
movzx edi, word [ebp - 0xc]
imul ecx, edi
shr ebx, 6
sub ecx, ebx
xor eax, ecx
mov ecx, eax
xor ecx, edi
rol ecx, 3
mov edi, eax
imul ecx, dword [ebp - 0x14]
ror edi, 0xa
xor edi, ecx
mov ecx, dword [ebp - 0xc]
xor edx, edi
movzx edi, word [ebp - 8]
xor ecx, edx
rol ecx, 3
imul ecx, edi
mov edi, edx
shr edi, 1
sub ecx, edi
xor eax, ecx
mov ecx, eax
mov edi, eax
xor edi, dword [ebp - 0x14]
imul edi, dword [ebp - 0x1c]
ror ecx, 0xd
add ecx, edi
xor edx, ecx
movzx ecx, word [ebp - 0xc]
mov edi, edx
sub edi, dword [ebp - 8]
xor edx, dword [ebp - 0x18]
sub edi, ecx
mov cl, byte [ebp - 0xd]
xor edi, dword [ebp - 0x40]
xor eax, edi
mov edi, dword [ebp - 0x34]
xor cl, al
xor cl, dl
mov byte [edi + 3], al
ror eax, 8
mov byte [edi + 7], dl
xor cl, al
mov byte [edi + 2], al
ror edx, 8
mov byte [edi + 6], dl
xor cl, dl
ror eax, 8
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 1], al
ror eax, 8
mov byte [edi + 5], dl
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov ebx, dword [ebp - 0x3c]
mov byte [edi], al
mov byte [edi + 4], dl
mov dword [ebp - 0x40], ebx
add edi, 8
mov ebx, dword [ebp - 0x4c]
dec dword [ebp - 0x20]
ror eax, 8
ror edx, 8
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x34], edi
jne 0x1059f0c
mov ebx, 0x1000000
jmp 0x105a0d8
xor edx, edx
test ebx, ebx
jge 0x1059ee1
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1059ee1
xor edx, edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
not eax
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x1059ee6
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x38]
cmp cl, byte [eax + 8]
je 0x105a16e
call fcn.012a18fc
mov esi, eax
mov eax, 0xfffff000
mov edx, 0xffff
mov ecx, dword [ebp - 0x48]
and ecx, 0xfffffffc
mov edi, ecx
and esi, eax
lea ecx, [edi + 0xfff]
and ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], 0x103a6aa
xor eax, eax
mov ebx, dword [0x1427a7c]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x1427a7c], ebx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x105a113
mov ebx, 0xffff
xor edx, edx
div ebx
inc edx
mov dword [ebp - 0x84], esi
mov eax, edi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x48], 0
cmp edi, ecx
jae 0x105a164
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x105a158
mov eax, 0x103a6aa
jmp 0x105a23a
mov ecx, dword [0x13ca1e8]
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x2c]
sub ebx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], ebx
jne 0x105a18c
test eax, eax
je 0x105a22d
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x44]
mov ecx, dword [0x1236cc0]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x50]
add eax, edi
xor ebx, ebx
dec ecx
mov dword [ebp - 0x48], eax
js 0x105a1cf
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1236cc4]
and edx, 0xfffffff
cmp edi, edx
jae 0x105a1c6
lea ecx, [eax - 1]
jmp 0x105a1cb
jbe 0x105a1d3
lea ebx, [eax + 1]
cmp ecx, ebx
jge 0x105a1a8
mov edi, ebx
jmp 0x105a225
mov edi, eax
jmp 0x105a225
mov eax, dword [edi*4 + 0x1236cc4]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x105a22d
lea ebx, [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 0x105a218
dec ecx
je 0x105a213
dec ecx
jne 0x105a21e
mov edx, dword [ebp - 0x38]
jmp 0x105a21e
mov edx, dword [ebp - 0x20]
jmp 0x105a21e
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x20]
dec eax
dec eax
jne 0x105a224
add dword [ebx], edx
inc edi
cmp edi, dword [0x1236cc0]
jb 0x105a1d7
mov eax, dword [0x109dc84]
mov eax, 0x87cb4847
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x88]
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x80]
mov esp, ebp
pop ebp
popfd
ret