Function at 0x42af20
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x98
test eax, eax
push ebx
push ebp
mov ebp, dword [0x5adec0]
push esi
push edi
jle 0x42af4e
cmp eax, 0x8000
jge 0x42af4e
mov ecx, eax
shl ecx, 7
mov dl, byte [ecx + ebp + 0x3a]
mov byte [esp + 0x17], dl
jmp 0x42af53
mov byte [esp + 0x17], 0
mov ebx, dword [esp + 0xac]
mov edi, dword [0x5c8188]
xor edx, edx
lea ecx, [ebx + ebx*4]
mov dword [esp + 0x1c], edx
lea ecx, [ecx + ecx*8]
lea esi, [ebx + ecx*8]
mov ecx, dword [0x5ae6e0]
shl esi, 2
cmp ecx, edx
jne 0x42afe9
mov ecx, dword [esi + 0x5c86a4]
test ecx, ecx
jg 0x42bacf
cmp dword [esi + 0x5c85c0], 0x28
jl 0x42bacf
mov ecx, dword [esi + 0x5c86a8]
test ecx, ecx
jne 0x42bacf
mov ecx, dword [esi + 0x5c89bc]
test ecx, ecx
jne 0x42bacf
mov ecx, dword [0x5f37e4]
test ecx, ecx
jne 0x42bacf
mov ecx, dword [esi + 0x5c86ac]
test ecx, ecx
jne 0x42bacf
mov cl, byte [esp + 0x17]
test cl, cl
jne 0x42bacf
mov edx, 1
mov dword [esp + 0x1c], edx
jmp 0x42b06e
mov ecx, dword [0x4df9ec]
test ecx, ecx
je 0x42b04a
cmp edi, 5
jne 0x42b045
test eax, eax
jle 0x42b045
cmp eax, 0x8000
jge 0x42b014
mov edx, eax
shl edx, 7
mov ecx, dword [edx + ebp + 0x30]
sub ecx, 0x8000
jmp 0x42b01a
lea ecx, [eax - 0x8000]
cmp ecx, ebx
je 0x42b045
lea edx, [ecx + ecx*4]
lea edx, [edx + edx*8]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx*4 + 0x5c8a78]
mov ecx, dword [esi + 0x5c8a78]
cmp edx, ecx
jne 0x42b045
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov edx, 1
mov ecx, dword [esi + 0x5c86a4]
test ecx, ecx
jg 0x42bacf
mov ecx, dword [esi + 0x5c86ac]
test ecx, ecx
jne 0x42bacf
mov dword [esp + 0x1c], 1
xor ecx, ecx
cmp dword [esi + 0x5c8634], ecx
jle 0x42b0ae
mov eax, 0xffffff2e
mov dword [esi + 0x5c8634], ecx
mov dword [esi + 0x5c86a8], eax
mov dword [esi + 0x5c86ac], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x5c86a4], 0x46
mov dword [esi + 0x5c8624], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov ecx, dword [esi + 0x5c8970]
test ecx, ecx
jle 0x42b31e
mov eax, 0xffffff2e
xor edi, edi
mov dword [esi + 0x5c86a8], eax
mov dword [esi + 0x5c86ac], eax
mov eax, dword [esi + 0x5c896c]
add ecx, 0xfffffea2
cmp eax, 3
mov dword [esi + 0x5c8624], edi
mov dword [esi + 0x5c8970], ecx
jne 0x42b149
lea ebp, [ebx + 0x8000]
mov bl, 2
mov eax, dword [esi + 0x5c8510]
mov ecx, dword [esi + 0x5c850c]
push ebp
push 0x16
push eax
push ecx
call fcn.0042fdc0
add esp, 0x10
test eax, eax
jle 0x42b1a7
mov edx, dword [0x55f280]
mov ecx, dword [0x5adec0]
shl eax, 7
add edx, 0x4b
inc edi
mov word [eax + ecx + 0x34], dx
mov edx, dword [0x5adec0]
cmp edi, 0xa
mov byte [eax + edx + 0x3f], 1
mov ecx, dword [0x5adec0]
mov byte [eax + ecx + 0x3b], bl
jl 0x42b0f4
jmp 0x42b1a7
cmp eax, 1
jne 0x42b1ae
lea ebp, [ebx + 0x8000]
xor edi, edi
mov bl, 2
mov edx, dword [esi + 0x5c8510]
mov eax, dword [esi + 0x5c850c]
push ebp
push 0x18
push edx
push eax
call fcn.0042fdc0
add esp, 0x10
test eax, eax
jle 0x42b1a7
mov ecx, dword [0x55f39c]
mov edx, dword [0x5adec0]
shl eax, 7
add ecx, 0x56
inc edi
mov word [eax + edx + 0x34], cx
mov ecx, dword [0x5adec0]
cmp edi, 0xa
mov byte [eax + ecx + 0x3f], 1
mov edx, dword [0x5adec0]
mov byte [eax + edx + 0x3b], bl
jl 0x42b158
mov ebx, dword [esp + 0xac]
mov eax, dword [0x4df9ec]
test eax, eax
je 0x42b1ec
mov eax, dword [0x5ae6e0]
test eax, eax
jle 0x42b1ec
mov eax, dword [esi + 0x5c8a1c]
test eax, eax
jne 0x42b1ec
mov eax, dword [esi + 0x5c8a84]
push eax
push 0xd
call fcn.00480900
mov cl, byte [eax + 1]
add esp, 8
mov dl, cl
xor dl, bl
and dl, 0x1f
xor dl, cl
mov byte [eax + 1], dl
jmp 0x42b230
mov eax, dword [esi + 0x5c8970]
test eax, eax
jg 0x42b230
mov eax, dword [esi + 0x5c8510]
mov ecx, dword [esi + 0x5c850c]
push 0
push 0
push 0x9b
push eax
push ecx
call fcn.00477d10
mov eax, 0xffffff2e
add esp, 0x14
mov dword [esi + 0x5c8970], 0xffffffff
mov dword [esi + 0x5c86a8], eax
mov dword [esi + 0x5c86ac], eax
mov eax, dword [esi + 0x5c897c]
cmp eax, 0x59
jne 0x42b269
mov edx, dword [esi + 0x5c8510]
mov eax, dword [esi + 0x5c850c]
push 0
push 0
push 0x1b7
push edx
push eax
call fcn.00477d10
mov eax, dword [esp + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
cmp eax, 0x37
jne 0x42b2d3
mov eax, dword [0x62bdd0]
push 0
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
push 0
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], ecx
mov edi, dword [ecx + 0x62c040]
xor edi, eax
and eax, 7
mov dword [ecx + 0x62c040], edi
mov edx, dword [eax*4 + 0x4c65c8]
push edx
mov eax, dword [esi + 0x5c8510]
mov ecx, dword [esi + 0x5c850c]
push eax
push ecx
call fcn.00477d10
mov eax, dword [esp + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
cmp eax, 0x3d
jne 0x42bacf
mov eax, dword [0x62bdd0]
push 0
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push 0
mov eax, dword [eax + 0x62c040]
mov ecx, edx
mov dword [0x62bdd0], ecx
mov ebx, dword [ecx + 0x62c040]
xor ebx, eax
and eax, 7
add eax, 0x122
mov dword [ecx + 0x62c040], ebx
push eax
jmp 0x42b2ae
cmp edi, 4
jne 0x42b6d5
cmp eax, 0x8000
jge 0x42b371
test eax, eax
jle 0x42b6d5
cmp eax, 0x4000
jge 0x42b6d5
mov ecx, eax
shl ecx, 7
add ecx, ebp
cmp byte [ecx + 0x40], 1
jne 0x42b6d5
mov edx, dword [ecx + 0x5c]
cmp edx, 3
jle 0x42b378
cmp edx, 6
je 0x42b378
mov cl, byte [ecx + 0x44]
sub cl, 0x1a
neg cl
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x19
jmp 0x42b37d
mov ecx, 0xa
jmp 0x42b37d
mov ecx, 3
mov edx, dword [esi + 0x5c88d8]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jle 0x42b391
mov ecx, edx
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x42b6c6
cmp eax, 0x8000
jl 0x42b3ea
lea ecx, [eax + eax*4 - 0x28000]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*8 - 0x8000]
shl ecx, 2
mov eax, dword [ecx + 0x5c8514]
cdq
and edx, 0x1ffff
add eax, edx
mov ebx, eax
mov eax, dword [ecx + 0x5c8518]
cdq
and edx, 0x1ffff
add eax, edx
sar ebx, 0x11
sar eax, 0x11
mov dword [esp + 0x10], eax
cmp ebx, 0xfffffff9
jge 0x42b42b
mov ebx, 0xfffffff9
jmp 0x42b435
xor ebx, ebx
cmp eax, ebx
jle 0x42b425
cmp eax, dword [0x620318]
jge 0x42b425
shl eax, 7
lea ecx, [eax + ebp]
mov eax, dword [eax + ebp + 0x14]
cdq
and edx, 0x1ffff
add eax, edx
mov ebx, eax
mov eax, dword [ecx + 0x18]
cdq
and edx, 0x1ffff
add eax, edx
sar ebx, 0x11
sar eax, 0x11
mov dword [esp + 0x10], eax
jmp 0x42b3de
mov dword [esp + 0x10], ebx
jmp 0x42b451
cmp ebx, 7
jle 0x42b435
mov ebx, 7
cmp eax, 0xfffffff9
jge 0x42b444
mov dword [esp + 0x10], 0xfffffff9
jmp 0x42b451
cmp eax, 7
jle 0x42b455
mov dword [esp + 0x10], 7
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4df9ec]
test ecx, ecx
je 0x42b469
mov ecx, dword [0x5ae6e0]
test ecx, ecx
jg 0x42b477
mov ecx, dword [0x5ae6e0]
test ecx, ecx
jne 0x42b6c6
mov ecx, dword [0x5ae6e0]
xor edi, edi
test ecx, ecx
je 0x42b593
mov al, byte [esp + 0x28]
mov ecx, dword [esp + 0x29]
mov ebp, dword [esp + 0xac]
and al, 0xdb
mov edx, ecx
or al, 0x1b
xor edx, ebp
mov byte [esp + 0x28], al
mov eax, dword [0x62bdd0]
and edx, 0x1f
xor ecx, edx
mov dl, al
add dl, 4
sub al, 0x2c
and edx, 0xff
and eax, 0xff
and ecx, 0xffff001f
mov dword [0x62bdd0], edx
mov eax, dword [eax + 0x62c040]
mov ebp, dword [edx + 0x62c040]
xor ebp, eax
and eax, 0x7ff
and eax, 0x7ff
mov dword [edx + 0x62c040], ebp
shl eax, 5
or eax, ecx
push 0
mov ecx, eax
mov eax, dword [esi + 0x5c8a74]
and eax, 0x3ff
mov ebp, ecx
shl eax, 0x10
and ecx, 0xfc00ffff
or eax, ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0x1f
mov edi, eax
shl ecx, 0x1a
and eax, 0x83ffffff
or ecx, eax
mov al, byte [esp + 0x35]
mov dl, al
mov dword [esp + 0x2d], ecx
mov cl, byte [esp + 0x14]
xor dl, bl
and dl, 0xf
xor al, dl
and al, 0xf
shl cl, 4
or al, cl
mov byte [esp + 0x35], al
mov eax, dword [esi + 0x5c850c]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov word [esp + 0x31], ax
mov eax, dword [esi + 0x5c8510]
cdq
and edx, 0xffff
add eax, edx
lea edx, [esp + 0x2c]
shr ebp, 5
shr edi, 0x10
sar eax, 0x10
push edx
and ebp, 0x7ff
and edi, 0x3ff
mov word [esp + 0x37], ax
call fcn.00480fc0
push ebp
call fcn.00491bd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
shl eax, 0x11
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xac]
shl ebx, 0xc
add eax, 0x8000
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x5c8510]
mov eax, dword [esi + 0x5c850c]
push ecx
push 0x3f
push edx
push eax
call fcn.0042fdc0
add esp, 0x10
test eax, eax
jle 0x42b6c6
mov ecx, dword [0x62bdd0]
mov dl, cl
sub cl, 0x2c
add dl, 4
and ecx, 0xff
and edx, 0xff
mov ecx, dword [ecx + 0x62c040]
mov dword [0x62bdd0], edx
mov ebx, dword [edx + 0x62c040]
xor ebx, ecx
and ecx, 0x3f
imul ecx, dword [esp + 0x20]
mov dword [edx + 0x62c040], ebx
mov ebx, dword [0x5adec0]
mov edx, eax
shl edx, 7
mov dword [edx + ebx + 0x14], ecx
mov ecx, dword [0x62bdd0]
mov bl, cl
sub cl, 0x2c
add bl, 4
and ecx, 0xff
and ebx, 0xff
mov ecx, dword [ecx + 0x62c040]
mov ebp, ebx
mov dword [0x62bdd0], ebp
mov ebx, dword [ebp + 0x62c040]
xor ebx, ecx
and ecx, 0x7fff
mov dword [ebp + 0x62c040], ebx
mov ebx, dword [esp + 0x10]
shl ecx, 4
sub ebx, ecx
mov ecx, dword [0x5adec0]
mov dword [edx + ecx + 0x18], ebx
mov ecx, dword [0x5adec0]
mov byte [edx + ecx + 0x40], 6
mov ecx, dword [0x5adec0]
mov dword [edx + ecx], 0x404050
mov edx, dword [esp + 0xac]
add edx, 0x20
mov ecx, edi
shl edx, 0xa
and ecx, 0x3ff
add edx, ecx
mov ecx, dword [0x5f38ac]
inc edi
mov word [ecx + eax*2], dx
mov ecx, dword [esi + 0x5c88d8]
mov eax, dword [esp + 0x18]
dec ecx
dec eax
mov dword [esi + 0x5c88d8], ecx
mov dword [esp + 0x18], eax
jne 0x42b5b1
mov dword [esi + 0x5c8624], 0
jmp 0x42bac5
test edx, edx
mov dword [esi + 0x5c8624], 0
je 0x42b743
cmp eax, 0x8000
mov edx, 1
jl 0x42b6f6
mov edx, 2
jmp 0x42b73d
test eax, eax
jle 0x42b73d
cmp eax, dword [0x620318]
jge 0x42b73d
mov ecx, dword [0x5c8188]
cmp ecx, 2
je 0x42b7aa
cmp ecx, 5
je 0x42b7aa
mov edi, dword [0x5adec0]
mov ecx, eax
shl ecx, 7
add ecx, edi
mov bl, byte [ecx + 0x40]
and bl, 0xf
cmp bl, 2
jne 0x42b736
movsx edx, word [ecx + 0x48]
mov ebx, dword [esp + 0xac]
sub byte [esi + 0x5c853e], dl
mov cl, byte [esi + 0x5c853e]
test cl, cl
jg 0x42b9bb
mov byte [esi + 0x5c853e], 0
mov ecx, dword [0x5c8188]
cmp ecx, 2
jne 0x42b8cd
test eax, eax
jle 0x42b9b5
mov edx, dword [0x5ae6e0]
test edx, edx
je 0x42b78d
jle 0x42b9b5
mov ecx, dword [0x4df9ec]
test ecx, ecx
je 0x42b9b5
cmp eax, dword [0x620318]
jge 0x42b7cf
mov ecx, dword [0x5adec0]
shl eax, 7
mov ebx, dword [eax + ecx + 0x30]
sub ebx, 0x8000
jmp 0x42b7d5
mov edi, dword [0x5adec0]
mov ecx, eax
shl ecx, 7
mov ecx, dword [ecx + edi + 0x68]
and ecx, 8
cmp cl, 8
jne 0x42b73d
mov edx, 2
jmp 0x42b73d
lea ebx, [eax - 0x8000]
test ebx, ebx
jl 0x42b846
cmp ebx, 0x20
jge 0x42b846
lea eax, [ebx + ebx*4]
mov edi, dword [0x5f37f0]
lea eax, [eax + eax*8]
lea eax, [ebx + eax*8]
shl eax, 2
mov ebp, dword [eax + 0x5c8a30]
inc ebp
mov ecx, ebp
mov dword [eax + 0x5c8a30], ebp
cmp ecx, edi
jl 0x42b846
mov ecx, dword [eax + 0x5c8a4c]
test ecx, ecx
jne 0x42b846
mov byte [esi + 0x5c853e], 1
mov ecx, dword [0x5adbc0]
mov dword [eax + 0x5c8a4c], 1
mov dword [eax + 0x5c8a34], ecx
mov eax, dword [0x5ae6e0]
test eax, eax
jle 0x42b9bb
push ebx
call fcn.00488fd0
mov edx, dword [0x5ae6e0]
add esp, 4
test edx, edx
jle 0x42b9bb
mov eax, dword [0x4df9ec]
test eax, eax
je 0x42b9bb
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0xac]
mov cl, byte [esi + 0x5c8a30]
and dl, 0xce
or dl, 0xe
mov byte [esp + 0x29], al
test ebx, ebx
mov byte [esp + 0x28], dl
mov byte [esp + 0x2a], cl
jl 0x42b8a1
cmp ebx, 0x20
jge 0x42b8a1
lea eax, [ebx + ebx*4]
mov byte [esp + 0x2b], bl
lea edx, [eax + eax*8]
lea eax, [ebx + edx*8]
mov cl, byte [eax*4 + 0x5c8a30]
mov byte [esp + 0x2c], cl
jmp 0x42b8ab
mov byte [esp + 0x2b], 0xff
mov byte [esp + 0x2c], 0
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00480fc0
mov eax, dword [esp + 0xb4]
push eax
push ebx
call fcn.004830f0
add esp, 0x10
jmp 0x42b9bb
cmp ecx, 5
jne 0x42b9b5
test eax, eax
jle 0x42b8fc
cmp eax, 0x8000
jge 0x42b8f6
mov ecx, dword [0x5adec0]
shl eax, 7
mov ebx, dword [eax + ecx + 0x30]
sub ebx, 0x8000
jmp 0x42b8fc
lea ebx, [eax - 0x8000]
test ebx, ebx
jl 0x42b96f
cmp ebx, 0x20
jge 0x42b96f
mov eax, dword [0x5ae6e0]
test eax, eax
jle 0x42b96f
mov eax, dword [0x4df9ec]
test eax, eax
je 0x42b96f
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0xac]
and dl, 0xce
mov cl, byte [esi + 0x5c8a30]
mov byte [esp + 0x29], al
or dl, 0xe
lea eax, [ebx + ebx*4]
mov byte [esp + 0x28], dl
mov byte [esp + 0x2a], cl
push 0
lea edx, [eax + eax*8]
mov byte [esp + 0x2f], bl
lea eax, [ebx + edx*8]
lea edx, [esp + 0x2c]
push edx
mov cl, byte [eax*4 + 0x5c8a30]
mov byte [esp + 0x34], cl
call fcn.00480fc0
mov eax, dword [esp + 0xb4]
push eax
push ebx
call fcn.004830f0
add esp, 0x10
mov eax, dword [esi + 0x5c8a7c]
test eax, eax
je 0x42b9bb
mov ecx, dword [0x4df9ec]
test ecx, ecx
je 0x42b9bb
cmp eax, dword [0x620318]
jge 0x42b9a9
mov ecx, dword [0x5adec0]
shl eax, 7
add eax, ecx
cmp dword [eax], 0x415470
jne 0x42b9a9
mov dword [eax + 0x50], 0
mov byte [eax + 0x41], 1
mov dword [esi + 0x5c8a7c], 0
jmp 0x42b9bb
dec dword [esi + 0x5c86a0]
mov eax, dword [esi + 0x5c897c]
cmp eax, 0x59
jne 0x42ba23
mov eax, dword [0x62bdd0]
push 0
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push 0
mov eax, dword [eax + 0x62c040]
mov ecx, edx
mov dword [0x62bdd0], ecx
mov edx, dword [ecx + 0x62c040]
xor edx, eax
test al, 1
mov dword [ecx + 0x62c040], edx
jne 0x42ba0b
push 0x1a8
jmp 0x42baaf
mov edx, dword [esi + 0x5c8510]
mov eax, dword [esi + 0x5c850c]
push 0x1a9
push edx
push eax
jmp 0x42babd
cmp eax, 0x37
jne 0x42ba6a
mov eax, dword [0x62bdd0]
push 0
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
push 0
mov eax, dword [eax + 0x62c040]
mov dword [0x62bdd0], ecx
mov edi, dword [ecx + 0x62c040]
xor edi, eax
and eax, 7
mov dword [ecx + 0x62c040], edi
mov edx, dword [eax*4 + 0x4c65c8]
push edx
jmp 0x42baaf
cmp eax, 0x3d
jne 0x42bac5
mov eax, dword [0x62bdd0]
push 0
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push 0
mov eax, dword [eax + 0x62c040]
mov ecx, edx
mov dword [0x62bdd0], ecx
mov ebx, dword [ecx + 0x62c040]
xor ebx, eax
and eax, 7
add eax, 0x122
mov dword [ecx + 0x62c040], ebx
push eax
mov eax, dword [esi + 0x5c8510]
mov ecx, dword [esi + 0x5c850c]
push eax
push ecx
call fcn.00477d10
add esp, 0x14
mov dword [esi + 0x5c86a4], 0x46
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret