Function at 0x46ac40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
and eax, 0x380
cmp ax, 0x180
je 0x46ac64
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 0x8c]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x46ac5a
mov ecx, edx
mov edx, dword [edx + 0x94]
push esi
push esi
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1b4]
push ecx
push edx
call dword [eax + 0x120]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edi, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
add edi, 8
mov dword [ebp - 0x20], eax
mov eax, edx
shl eax, 5
add esp, 0x10
lea eax, [ecx + eax + 8]
cmp edi, eax
jae 0x46b047
mov esi, edi
nop
cmp dword [esi + 0xc], 4
je 0x46b0b0
test byte [esi + 0x1b], 1
jne 0x46b030
mov ecx, dword [esi]
test ecx, ecx
je 0x46b030
mov eax, dword [ebp + 0x10]
test byte [eax + 0x16], 0x10
je 0x46acf4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x46b1da
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax*2]
lea edx, [eax*4]
mov eax, dword [ecx]
add edx, eax
mov dword [ecx + 4], edx
cmp edx, dword [ecx + 8]
jae 0x46ad1a
mov eax, dword [esi + 0x10]
add eax, 8
cmp dword [edx], eax
je 0x46ad2e
push eax
push eax
push 0x552
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_elf_eh_frame.c
call fcn.00423990
add esp, 0x10
push eax
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [esi + 0x10]
add eax, 8
push eax
call dword [ebp + 0x14]
add esp, 0x10
test eax, eax
sete al
and eax, 0xff
test eax, eax
je 0x46b0d5
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
and eax, 3
cmp al, 3
je 0x46b0fd
dec al
je 0x46b0fd
and byte [esi + 0x1b], 0xfd
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb4]
inc edx
mov dword [eax + 0xb4], edx
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
test byte [edx + 0x1b], 2
je 0x46b024
test byte [edx + 5], 0x20
jne 0x46b16b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and byte [edx + 0x1b], 0xfd
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [edx], ecx
je 0x46b024
cmp byte [eax + 0x3c], 0xff
je 0x46b248
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x30]
add edx, 0x30
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ecx]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [edx + 0x30], 0
mov ecx, dword [ebp - 0x28]
add eax, ebx
mov dword [ecx + 4], 0
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 0x18]
shr ebx, 8
cmp ebx, dword [eax + 0x14]
jae 0x46b17f
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp + 0x18]
lea edx, [eax*4]
mov eax, dword [ecx + 0xc]
add edx, eax
mov al, byte [edx + 0xc]
shr al, 4
jne 0x46b17f
push eax
push eax
mov eax, dword [edx + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00445bc0
add esp, 0x10
test eax, eax
je 0x46b024
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x46ae3e
mov eax, edx
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x46b024
mov edx, dword [ebp - 0x10]
mov byte [edx + 9], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x34], ebx
mov dword [edx + 0x30], eax
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
and eax, 3
cmp al, 3
je 0x46ae6c
dec al
jne 0x46aea2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [ecx + 0x3c]
test al, 0x70
jne 0x46aea2
push eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1b4]
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
call dword [eax + 0x124]
add esp, 0x10
test eax, eax
je 0x46aea2
mov ecx, dword [ebp - 0x18]
or byte [ecx + 5], 0xc
push eax
push 0
push 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004959e0
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
call fcn.004959e0
mov ebx, dword [ebp - 0x10]
add esp, 0xc
add ebx, 0xa
push eax
push ecx
push ebx
call sub.msvcrt.dll_strlen
pop ecx
inc eax
pop edx
push eax
push ebx
call fcn.004959e0
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x24
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x28
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 8
mov edx, dword [ebp - 0x28]
push edx
call fcn.004959e0
add esp, 0xc
push eax
push 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
mov eax, dword [eax]
add eax, 0x3c
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3c
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3d
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3e
push eax
call fcn.004959e0
add esp, 0xc
push eax
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x3f
push eax
call fcn.004959e0
add esp, 0xc
push eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + 0x3f]
cmp eax, 0x32
ja 0x46b1d0
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x41
push eax
call fcn.004959e0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov dword [edx + 4], eax
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46b256
push 1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
push eax
push ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xb0]
push eax
call fcn.004960d0
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46b024
mov eax, dword [eax]
test eax, eax
je 0x46b285
mov ebx, eax
mov eax, dword [ebp - 0x18]
or byte [eax + 0x1b], 2
or byte [eax + 5], 0x20
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x38]
mov dword [edx], eax
test byte [edx + 5], 2
je 0x46b01e
mov eax, dword [ebx + 0x38]
or byte [eax + 5], 2
mov ebx, dword [ebx + 0x38]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
nop
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
add esi, 0x20
lea eax, [ecx + eax + 8]
cmp eax, esi
ja 0x46acc0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
test eax, eax
je 0x46b069
sub esp, 0xc
push eax
call fcn.004ae988
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov dword [eax + 4], 0
mov edx, dword [eax]
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
xor ebx, ebx
lea eax, [ecx + eax + 8]
cmp edi, eax
jb 0x46b093
jmp 0x46b0df
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 5
add edi, 0x20
lea eax, [ecx + eax + 8]
cmp eax, edi
jbe 0x46b0df
test byte [edi + 0x1b], 2
jne 0x46b080
mov dword [edi + 0x14], ebx
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00469dd0
add ebx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
jmp 0x46b080
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0xa0]
mov al, byte [esi + 0x1b]
test ebx, ebx
setne dl
add edx, edx
and eax, 0xfffffffd
or eax, edx
mov byte [esi + 0x1b], al
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
jmp 0x46b030
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
jmp 0x46b030
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
mov dword [edx + 0x24], ebx
mov dword [edx + 0x28], eax
cmp eax, ebx
setne al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov al, byte [esi + 0x18]
and eax, 0x70
jne 0x46b160
test byte [esi + 0x1b], 8
jne 0x46ad6b
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x4e48e0]
cmp eax, 9
mov dword [ecx + 0xb8], 0
jle 0x46b21c
cmp eax, 0xa
jne 0x46ad6b
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, dword [ecx + 0x18]
push str._P:_Further_warnings_about_FDE_encoding_preventing_.eh_frame_hdr_generation_dropped._n
call dword [eax + 0x2c]
mov ecx, dword [0x4e48e0]
inc ecx
add esp, 0x10
mov dword [0x4e48e0], ecx
jmp 0x46ad6b
cmp eax, 0x50
jne 0x46ad6b
jmp 0x46b111
mov ecx, dword [edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
jmp 0x46b030
mov edx, dword [ebp + 0x18]
mov eax, ebx
mov ebx, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
sub eax, ebx
mov edx, dword [edx + eax*4]
mov al, byte [edx + 0xc]
sub eax, 6
cmp al, 1
ja 0x46b1ad
lea esi, [esi]
mov edx, dword [edx + 0x14]
mov al, byte [edx + 0xc]
sub eax, 6
cmp al, 1
jbe 0x46b1a0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], edx
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.004548b0
add esp, 0x10
test eax, eax
jne 0x46ae5c
jmp 0x46aea2
mov eax, 0x32
jmp 0x46afa8
xor ebx, ebx
mov edx, dword [ebp - 0x1c]
mov bl, byte [esi + 0x18]
mov eax, ebx
shr ebx, 3
call fcn.00469d70
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [esi + 0x10]
sub esp, 0xc
add eax, dword [edx + 0x6c]
and ebx, 1
push ebx
lea edx, [ecx + eax + 8]
mov eax, dword [ebp + 8]
call fcn.0046a260
add esp, 0x10
test eax, eax
setne al
and eax, 0xff
jmp 0x46ad4b
push ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._P:_FDE_encoding_in__B__A__prevents_.eh_frame_hdr_table_being_created._n
call dword [eax + 0x2c]
mov ebx, dword [0x4e48e0]
inc ebx
add esp, 0x10
mov dword [0x4e48e0], ebx
jmp 0x46ad6b
mov eax, dword [ebp - 0x10]
add eax, 0x30
mov dword [ebp - 0x28], eax
jmp 0x46aea2
push fcn.004ae988
push 0x46b2c0
push 0x469dc0
push 1
call fcn.00496450
mov edx, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
mov dword [edx + 0xb0], eax
jne 0x46afcf
jmp 0x46b024
sub esp, 0xc
push 0x74
call sub.msvcrt.dll_malloc
add esp, 0x10
test eax, eax
je 0x46b024
mov ebx, eax
push eax
push 0x74
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov dword [ecx], ebx
jmp 0x46b01e