Function at 0x42a900
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0e9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x591430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
test eax, eax
je 0x42adcf
nop
mov edx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [edx]
inc edx
mov byte [ebp + ecx - 0x14], al
inc ecx
mov bl, byte [ebp - 0x14]
mov dword [ebp + 0xc], edx
mov dh, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x10], dh
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], bl
cmp ecx, 3
jne 0x42ab0e
mov al, bl
mov cl, bl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, dh
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, dh
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor eax, eax
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
movzx ecx, byte [ebp + eax - 0x18]
mov eax, 0x56b704
cmp dword [0x56b718], 0x10
mov ebx, dword [esi + 0x10]
cmovae eax, dword [0x56b704]
mov dword [ebp - 0x2c], ebx
mov dl, byte [eax + ecx]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x20], ecx
cmp ebx, ecx
jae 0x42aa1a
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x42aa0d
mov eax, dword [esi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x42aaf0
mov eax, bind
sub eax, ebx
cmp eax, 1
jb 0x42abd5
lea edi, [ebx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x42aa3f
mov edi, bind
jmp 0x42aa5d
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42aa55
mov edi, bind
jmp 0x42aa5d
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004045d0
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebx + 1]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
jb 0x42aad5
mov edi, dword [ebp - 0x2c]
mov ebx, dword [esi]
push edi
push ebx
push eax
call fcn.004d1780
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + edi], cl
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 0x1000
jb 0x42aac7
test bl, 0x1f
jne 0x42abd0
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x42abd0
sub ebx, eax
sub ebx, 4
cmp ebx, 0x1f
ja 0x42abd0
mov ebx, eax
push ebx
call fcn.004457a0
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x42aaee
push ebx
push esi
push eax
call fcn.004d1780
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 4
jl 0x42a9d0
mov dl, byte [ebp - 0xe]
xor ecx, ecx
mov bl, byte [ebp - 0xf]
mov dh, byte [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x42a960
test ecx, ecx
je 0x42adcf
mov eax, ecx
cmp ecx, 3
jge 0x42ab45
cmp eax, 3
jae 0x42abda
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x42ab2b
mov dh, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov bl, byte [ebp - 0x14]
mov al, bl
and bl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl bl, 4
add bl, al
shl dl, 2
mov al, dh
mov byte [ebp - 0x17], bl
shr al, 6
and dh, 0x3f
add dl, al
mov byte [ebp - 0x15], dh
mov byte [ebp - 0x16], dl
xor eax, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], edx
test edx, edx
jle 0x42acc4
movzx ecx, byte [ebp + eax - 0x18]
mov eax, 0x56b704
cmp dword [0x56b718], 0x10
mov ebx, dword [esi + 0x10]
cmovae eax, dword [0x56b704]
mov dword [ebp - 0x2c], ebx
mov dl, byte [eax + ecx]
mov ecx, dword [esi + 0x14]
mov byte [ebp + 0x13], dl
mov dword [ebp - 0x24], ecx
cmp ebx, ecx
jae 0x42abdf
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x42abc3
mov eax, dword [esi]
mov byte [eax + ebx], dl
mov byte [eax + ebx + 1], 0
jmp 0x42acb1
call fcn.004d588f
call fcn.004143a0
call fcn.004b85ea
mov eax, bind
sub eax, ebx
cmp eax, 1
jb 0x42abd5
lea edi, [ebx + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x42ac00
mov edi, bind
jmp 0x42ac1e
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42ac16
mov edi, bind
jmp 0x42ac1e
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.004045d0
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebx + 1]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
jb 0x42ac96
mov edi, dword [ebp - 0x2c]
mov ebx, dword [esi]
push edi
push ebx
push eax
call fcn.004d1780
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp + 0x13]
mov byte [eax + edi], cl
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, 0x1000
jb 0x42ac88
test bl, 0x1f
jne 0x42abd0
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x42abd0
sub ebx, eax
sub ebx, 4
cmp ebx, 0x1f
ja 0x42abd0
mov ebx, eax
push ebx
call fcn.004457a0
mov eax, dword [ebp - 0x14]
add esp, 4
jmp 0x42acaf
push ebx
push esi
push eax
call fcn.004d1780
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov cl, byte [ebp + 0x13]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x30]
jl 0x42ab86
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jge 0x42adcf
nop dword [eax]
mov edi, dword [esi + 0x10]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
cmp edi, ecx
jae 0x42acfb
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 0x10
jb 0x42acf0
mov eax, dword [esi]
mov word [eax + edi], 0x3d
jmp 0x42adc3
mov eax, bind
sub eax, edi
cmp eax, 1
jb 0x42abd5
lea ebx, [edi + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x42ad20
mov ebx, bind
jmp 0x42ad3e
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42ad36
mov ebx, bind
jmp 0x42ad3e
lea eax, [ecx + edx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
call fcn.004045d0
cmp dword [ebp - 0x24], 0x10
lea ecx, [edi + 1]
mov dword [ebp + 0x10], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
push edi
jb 0x42adae
mov ebx, dword [esi]
push ebx
push eax
call fcn.004d1780
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax + edi], 0x3d
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, 0x1000
jb 0x42ada0
test bl, 0x1f
jne 0x42abd0
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x42abd0
sub ebx, eax
sub ebx, 4
cmp ebx, 0x1f
ja 0x42abd0
mov ebx, eax
push ebx
call fcn.004457a0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x42adc1
push esi
push eax
call fcn.004d1780
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov word [eax + edi], 0x3d
mov dword [esi], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, 3
jl 0x42acd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret