Function at 0x4a2620
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x90
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp + 0x54], eax
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x70]
push ebx
mov ebx, dword [ebp + 0x64]
push esi
push edi
mov dword [ebp], edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x20], 0
test edx, edx
je 0x4a31f5
test ebx, ebx
je 0x4a31f5
test eax, eax
je 0x4a31f5
cmp dword [ebp + 0x6c], 0
je 0x4a31f5
test ecx, ecx
je 0x4a31f5
mov eax, ebx
and eax, 7
mov esi, ebx
je 0x4a2694
sub esi, eax
add esi, 8
mov dword [ebp + 0x18], esi
jmp 0x4a2697
mov dword [ebp + 0x18], ebx
mov edi, dword [ebp + 0x78]
mov edx, dword [ebp + 0x74]
test edi, edi
je 0x4a26ac
test edx, edx
je 0x4a26ac
mov eax, 1
jmp 0x4a26ae
xor eax, eax
lea ecx, [eax + esi]
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x6c], ecx
jb 0x4a31ee
cmp ebx, esi
jb 0x4a28e7
test edx, edx
jne 0x4a28e7
mov edi, dword [ebp]
mov dword [ebp + 8], edi
test edi, edi
je 0x4a31ba
mov edx, dword [ebp - 0x10]
push 0
push edx
call fcn.00497000
mov eax, dword [ebp + 0x6c]
mov esi, dword [ebp - 4]
push eax
push 0
push esi
call fcn.004677c0
xor edi, edi
add esp, 0x14
cmp dword [ebp + 0x18], edi
jbe 0x4a2746
mov ebx, dword [ebp + 8]
sub ebx, esi
push 8
lea ecx, [ebx + esi]
push ecx
lea edx, [ebp + 0x34]
push 8
push edx
call fcn.0046821e
add esp, 0x10
test edi, edi
je 0x4a272e
mov eax, 8
mov cl, byte [eax + esi - 9]
xor byte [ebp + eax + 0x33], cl
dec eax
test eax, eax
jne 0x4a2721
lea edx, [ebp + 0x34]
push esi
push edx
call fcn.00496fc0
add edi, 8
add esp, 8
add esi, 8
cmp edi, dword [ebp + 0x18]
jb 0x4a2704
cmp dword [ebp + 0x74], 0
je 0x4a3125
mov ebx, dword [ebp + 0x18]
mov eax, 0x80808081
mul ebx
shr edx, 7
mov eax, edx
imul eax, eax, 0xff
sub ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
mov eax, 0x108
add ebx, edx
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x10], esp
test eax, eax
je 0x4a278e
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x10], eax
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x20], esp
test eax, eax
je 0x4a27ad
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x20], eax
test ebx, ebx
jbe 0x4a29bb
mov ecx, dword [ebp + 0x18]
xor esi, esi
imul ecx, dword [ebp + 0x74]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 4], ebx
mov eax, dword [ebp + 0x18]
sub eax, esi
mov byte [ebp + 0x2b], 0xff
cmp eax, 0xff
ja 0x4a27dd
mov byte [ebp + 0x2b], al
movzx dx, byte [ebp + 0x2b]
xor eax, eax
shl dx, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x24], eax
movzx eax, dx
push ecx
xor bl, bl
mov dword [ebp + 0x50], eax
call fcn.004a71f0
movzx ecx, byte [ebp + 0x2b]
add esp, 4
mov dword [ebp], ecx
call fcn.004a73e0
xor edx, edx
div dword [ebp]
mov al, dl
shr al, 5
movzx esi, dl
mov byte [ebp + 0x2a], al
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp + 0x2a]
mov edi, dword [ebp + ecx*4 - 0x30]
lea ecx, [ebp + ecx*4 - 0x30]
test edi, eax
jne 0x4a2861
or eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov byte [eax + ecx], dl
mov edx, dword [ebp + 0x20]
mov byte [edx + esi], bl
inc bl
inc dword [ebp + 0x24]
cmp bl, byte [ebp + 0x2b]
jae 0x4a28b5
mov ax, word [ebp + 0x24]
cmp ax, word [ebp + 0x50]
jb 0x4a281b
xor dl, dl
cmp byte [ebp + 0x2b], dl
jbe 0x4a299c
mov esi, dword [ebp + 0x20]
cmp bl, byte [ebp + 0x2b]
jae 0x4a28b5
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov edi, 1
shl edi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x30], edi
jne 0x4a28ae
mov edi, dword [ebp + 0x10]
movzx ecx, bl
mov byte [ecx + edi], dl
mov byte [esi + eax], bl
inc bl
inc dl
cmp dl, byte [ebp + 0x2b]
jb 0x4a2881
cmp byte [ebp + 0x2b], 0
mov esi, dword [ebp + 0x1c]
jbe 0x4a299f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp]
lea ecx, [esi + edx]
mov edx, dword [ebp - 4]
movzx ebx, byte [eax]
add ebx, esi
mov bl, byte [ebx + edx]
mov byte [ecx], bl
inc eax
inc ecx
sub edi, 1
jne 0x4a28d1
jmp 0x4a299f
test edi, edi
je 0x4a28f1
mov eax, ecx
test edx, edx
jne 0x4a28f3
mov eax, esi
add eax, 8
cmp eax, 0x400
ja 0x4a2925
test edi, edi
je 0x4a2907
mov eax, ecx
test edx, edx
jne 0x4a2909
mov eax, esi
add eax, 8
call fcn.0046d420
mov edi, esp
test edi, edi
je 0x4a2920
mov dword [edi], 0xcccc
add edi, 8
mov dword [ebp + 8], edi
jmp 0x4a294f
test edi, edi
je 0x4a292f
mov eax, ecx
test edx, edx
jne 0x4a2931
mov eax, esi
add eax, 8
push eax
call fcn.004683d7
add esp, 4
test eax, eax
je 0x4a294a
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
mov dword [ebp + 8], eax
test edi, edi
je 0x4a2990
cmp dword [ebp + 0x78], 0
je 0x4a2962
cmp dword [ebp + 0x74], 0
mov eax, dword [ebp - 0x34]
jne 0x4a2964
mov eax, esi
mov ecx, dword [ebp]
push ebx
push ecx
push eax
push edi
call fcn.0046821e
add esp, 0x10
cmp ebx, esi
jae 0x4a26d3
sub esi, ebx
push esi
push 0
add ebx, edi
push ebx
call fcn.004677c0
add esp, 0xc
jmp 0x4a26d3
mov dword [ebp + 0x20], 8
jmp 0x4a31ba
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x14]
add esi, 0xff
sub dword [ebp + 4], 1
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1c], esi
jne 0x4a27ca
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a29d6
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a29d6
push eax
call fcn.004684a1
add esp, 4
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4a29f1
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a29f1
push eax
call fcn.004684a1
add esp, 4
mov ecx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 2
and ecx, 3
xor edx, edx
mov dword [ebp + 0x1c], ecx
test eax, eax
jbe 0x4a2ab9
mov ecx, dword [ebp + 0x74]
mov edi, dword [ebp + 8]
mov dword [ebp + 4], edx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x14], eax
mov edi, edi
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
lea ebx, [ebx]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a2a30
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x24]
push eax
push esi
push ecx
push edx
call fcn.00499520
mov edx, 8
mov dword [ebp + 0x50], eax
add esp, 0x10
lea esi, [ebp]
lea eax, [edx - 4]
mov ebx, dword [ebp + 0x50]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a2a67
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
push 4
lea edx, [ebp]
push edx
sub eax, esi
push eax
push ecx
call fcn.0046821e
mov edx, dword [ebp + 0x74]
add dword [ebp + 0x24], edx
add esi, 4
add esp, 0x10
sub dword [ebp + 0x20], 1
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], edi
jne 0x4a2a20
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
cmp ecx, 2
je 0x4a2ac7
cmp ecx, 3
jne 0x4a2b67
mov ecx, dword [ebp + 8]
lea eax, [edx*4]
mov dword [ebp + 0x50], eax
add eax, ecx
mov dword [ebp + 0x24], 0
mov di, word [ebp + 0x24]
mov ecx, 8
mov dword [ebp + 0x14], eax
lea esi, [ecx - 6]
lea esp, [esp]
movzx bx, byte [eax]
shl bx, cl
inc eax
sub ecx, 8
or di, bx
sub esi, 1
jne 0x4a2af0
mov eax, dword [ebp + 0x7c]
inc edx
mov dword [ebp - 8], edx
imul edx, dword [ebp + 0x74]
push eax
push esi
mov word [ebp + 0x24], di
mov ecx, dword [ebp + 0x24]
push edx
push ecx
call fcn.004a24a0
movzx edx, ax
mov eax, 8
add esp, 0x10
lea esi, [ebp]
lea edi, [eax - 6]
nop
mov cx, ax
mov ebx, edx
shr bx, cl
sub eax, 8
inc esi
sub edi, 1
mov byte [esi - 1], bl
jne 0x4a2b30
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push 2
lea edx, [ebp]
mov eax, esi
sub eax, dword [ebp + 0x50]
push edx
push eax
push ecx
call fcn.0046821e
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
jmp 0x4a2b6a
mov esi, dword [ebp + 0x18]
cmp ecx, 1
je 0x4a2b74
cmp ecx, 3
jne 0x4a2b94
imul edx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x7c]
mov edi, dword [ebp + 8]
movzx ecx, byte [edi + esi - 1]
push eax
push 0
push edx
push ecx
call fcn.004a2320
add esp, 0x10
mov byte [edi + esi - 1], al
mov esi, dword [ebp - 0x10]
lea edx, [ebp + 0x44]
sub esi, edx
xor eax, eax
mov byte [ebp + 0x44], 0xb2
mov byte [ebp + 0x45], 0x33
mov byte [ebp + 0x46], 0x65
mov byte [ebp + 0x47], 0x8b
mov byte [ebp + 0x48], 0x2d
mov byte [ebp + 0x49], 0xc3
mov byte [ebp + 0x4a], 0x17
mov byte [ebp + 0x4b], 0x4d
lea edi, [eax + 8]
lea ecx, [ebp + eax + 0x44]
mov dl, byte [esi + ecx]
xor dl, byte [ecx]
inc eax
sub edi, 1
mov byte [ebp + eax + 0x3b], dl
jne 0x4a2bc1
movzx eax, byte [ebp + 0x3c]
xor ebx, ebx
and eax, 0x80000007
lea esi, [edi + 8]
jns 0x4a2be9
dec eax
or eax, 0xfffffff8
inc eax
movzx eax, byte [ebp + eax + 0x3c]
cdq
mov ecx, 5
idiv ecx
lea eax, [ebp + edx + 0x3c]
lea edx, [ecx - 1]
lea ecx, [ecx]
movzx edi, byte [eax]
mov ecx, 0x20
sub ecx, esi
shl edi, cl
add esi, 8
inc eax
or ebx, edi
sub edx, 1
jne 0x4a2c00
movzx edx, byte [ebp + 0x43]
and edx, 0x80000007
mov dword [ebp + 0x10], ebx
jns 0x4a2c2b
dec edx
or edx, 0xfffffff8
inc edx
movzx eax, byte [ebp + edx + 0x3c]
and eax, 0x80000001
jns 0x4a2c3c
dec eax
or eax, 0xfffffffe
inc eax
mov byte [ebp + 0x50], al
movzx eax, al
mov dword [ebp + 0x14], eax
and eax, 0x80000001
jns 0x4a2c51
dec eax
or eax, 0xfffffffe
inc eax
je 0x4a2eae
mov eax, 0x10
call fcn.00467dc0
mov edi, esp
test edi, edi
je 0x4a30b0
mov dword [edi], 0xcccc
add edi, 8
mov dword [ebp - 8], edi
je 0x4a30b0
push 8
lea eax, [ebp + 0x3c]
push eax
push 8
push edi
call fcn.0046821e
add esp, 0x10
mov dword [ebp + 4], 0
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0xc], edi
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a2ca5
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x50]
push ecx
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push edx
call fcn.00499520
mov edx, 8
mov dword [ebp + 0x20], eax
add esp, 0x10
lea esi, [ebp + 0x48]
lea eax, [edx - 4]
mov ebx, dword [ebp + 0x20]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a2cdf
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
mov eax, 2
sub eax, esi
push 4
lea edx, [ebp + 0x48]
add eax, eax
push edx
add eax, eax
push eax
push ecx
call fcn.0046821e
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x24], edx
inc esi
add esp, 0x10
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], edi
cmp esi, 2
jb 0x4a2c9b
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x20], esp
test eax, eax
je 0x4a2d4d
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x4c], eax
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x1c], esp
test eax, eax
je 0x4a2d6f
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x50], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax*8]
push ecx
xor bl, bl
call fcn.004a71f0
add esp, 4
call fcn.004a73e0
and al, 7
mov cl, al
shr cl, 5
mov byte [ebp + 0x2a], cl
movzx esi, al
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
movzx ecx, byte [ebp + 0x2a]
mov edi, dword [ebp + ecx*4 - 0x30]
lea ecx, [ebp + ecx*4 - 0x30]
test edi, edx
jne 0x4a2de7
or edx, edi
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
movzx edx, bl
mov byte [edx + ecx], al
mov edx, dword [ebp + 0x1c]
mov byte [edx + esi], bl
inc bl
inc dword [ebp + 0x24]
cmp bl, 8
jae 0x4a2e37
mov eax, 0x800
cmp word [ebp + 0x24], ax
jb 0x4a2da4
xor dl, dl
lea esp, [esp]
cmp bl, 8
jae 0x4a2e37
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x30], esi
jne 0x4a2e30
mov esi, dword [ebp + 0x20]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + eax], bl
inc bl
inc dl
cmp dl, 8
jb 0x4a2e00
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + edx*4 + 0x4c]
xor edi, edi
lea ecx, [ebp + 0x2c]
lea esi, [edi + 8]
movzx edx, byte [eax]
add edx, dword [ebp - 8]
inc eax
mov dl, byte [edx + edi]
mov byte [ecx], dl
inc ecx
sub esi, 1
jne 0x4a2e46
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4a2e73
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a2e73
push eax
call fcn.004684a1
add esp, 4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4a2e8e
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a2e8e
push eax
call fcn.004684a1
add esp, 4
mov eax, dword [ebp - 8]
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a30b0
push eax
call fcn.004684a1
add esp, 4
jmp 0x4a30b0
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x20], esp
test eax, eax
je 0x4a2ecd
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x20], eax
mov dword [ebp - 0xc], eax
mov eax, 0x108
call fcn.0046d420
mov eax, esp
mov dword [ebp + 0x1c], esp
test eax, eax
je 0x4a2eef
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp + 0x1c], eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax*8]
push ecx
xor bl, bl
call fcn.004a71f0
add esp, 4
call fcn.004a73e0
and al, 7
mov cl, al
shr cl, 5
mov byte [ebp + 0x2a], cl
movzx esi, al
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
movzx ecx, byte [ebp + 0x2a]
mov edi, dword [ebp + ecx*4 - 0x30]
lea ecx, [ebp + ecx*4 - 0x30]
test edi, edx
jne 0x4a2f67
or edx, edi
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
movzx edx, bl
mov byte [edx + ecx], al
mov edx, dword [ebp + 0x1c]
mov byte [edx + esi], bl
inc bl
inc dword [ebp + 0x24]
cmp bl, 8
jae 0x4a2fb7
mov eax, 0x800
cmp word [ebp + 0x24], ax
jb 0x4a2f24
xor dl, dl
lea esp, [esp]
cmp bl, 8
jae 0x4a2fb7
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x30], esi
jne 0x4a2fb0
mov esi, dword [ebp + 0x20]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + eax], bl
inc bl
inc dl
cmp dl, 8
jb 0x4a2f80
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + edx*4 - 0xc]
xor edi, edi
lea ecx, [ebp + 0x2c]
lea esi, [edi + 8]
movzx edx, byte [eax]
add edx, edi
mov dl, byte [ebp + edx + 0x3c]
mov byte [ecx], dl
inc eax
inc ecx
sub esi, 1
jne 0x4a2fc6
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x4a2ff3
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a2ff3
push eax
call fcn.004684a1
add esp, 4
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x4a300e
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x4a300e
push eax
call fcn.004684a1
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
lea edi, [ebp + 0x2c]
mov dword [ebp + 0x24], eax
mov dword [ebp - 8], edi
xor edx, edx
mov eax, 8
lea esi, [edx + 4]
movzx ebx, byte [edi]
mov ecx, 0x20
sub ecx, eax
shl ebx, cl
add eax, 8
inc edi
or edx, ebx
sub esi, 1
jne 0x4a3027
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x50]
push ecx
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push edx
call fcn.00499520
mov edx, 8
mov dword [ebp + 4], eax
add esp, 0x10
lea esi, [ebp + 0xc]
lea eax, [edx - 4]
mov ebx, dword [ebp + 4]
mov ecx, 0x20
sub ecx, edx
shr ebx, cl
add edx, 8
inc esi
sub eax, 1
mov byte [esi - 1], bl
jne 0x4a3061
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov eax, 2
sub eax, esi
push 4
lea edx, [ebp + 0xc]
add eax, eax
push edx
add eax, eax
push eax
push ecx
call fcn.0046821e
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x24], edx
inc esi
add esp, 0x10
mov dword [ebp + 0x14], esi
mov dword [ebp - 8], edi
cmp esi, 2
jb 0x4a301d
lea eax, [ebp + 0x2c]
push 0
push eax
call fcn.00497000
mov ecx, dword [ebp + 0x6c]
mov esi, dword [ebp - 4]
push ecx
push 0
push esi
call fcn.004677c0
xor edi, edi
add esp, 0x14
cmp dword [ebp + 0x18], edi
jbe 0x4a3125
mov ebx, dword [ebp + 8]
sub ebx, esi
lea esp, [esp]
push 8
lea edx, [ebx + esi]
push edx
lea eax, [ebp + 0x4c]
push 8
push eax
call fcn.0046821e
add esp, 0x10
test edi, edi
je 0x4a310d
mov eax, 8
lea ecx, [ecx]
mov cl, byte [eax + esi - 9]
xor byte [ebp + eax + 0x4b], cl
dec eax
test eax, eax
jne 0x4a3100
lea edx, [ebp + 0x4c]
push esi
push edx
call fcn.00496fc0
add edi, 8
add esp, 8
add esi, 8
cmp edi, dword [ebp + 0x18]
jb 0x4a30e0
cmp dword [ebp + 0x78], 0
mov dword [ebp + 0x20], 0
je 0x4a31ba
cmp dword [ebp + 0x74], 0
je 0x4a31ba
mov esi, dword [ebp - 0x10]
movzx eax, byte [esi + 3]
and eax, 0x80000007
jns 0x4a314f
dec eax
or eax, 0xfffffff8
inc eax
mov al, byte [eax + esi]
mov ecx, dword [ebp + 0x7c]
push ecx
movzx edx, al
push 0
mov byte [ebp + 0x48], al
mov eax, dword [ebp + 0x48]
push edx
push eax
call fcn.004a2320
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
push ecx
push edx
push ebx
push edi
mov byte [ebp + 0x2a], al
call fcn.0046821e
movzx eax, byte [esi + 5]
and eax, 0x80000007
jns 0x4a3190
dec eax
or eax, 0xfffffff8
inc eax
movzx ecx, byte [eax + esi]
and ecx, 0x80000001
jns 0x4a31a1
dec ecx
or ecx, 0xfffffffe
inc ecx
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 4]
push 1
lea edx, [ebp + 0x2a]
push edx
push eax
push ebx
push ecx
push edi
call fcn.004a1880
add esp, 0x3c
mov edx, dword [ebp + 0x18]
cmp dword [ebp - 0x38], edx
jb 0x4a31c8
cmp dword [ebp + 0x74], 0
je 0x4a31d4
mov eax, dword [ebp + 8]
push eax
call fcn.0041a6d0
add esp, 4
mov eax, dword [ebp + 0x20]
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x54]
xor ecx, ebp
call fcn.004677af
add ebp, 0x58
mov esp, ebp
pop ebp
ret
mov eax, 0x7a
jmp 0x4a31d7
mov eax, 0x57
jmp 0x4a31d7