Function at 0x1003a810
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x1010fb8a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x68], edi
mov esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0x1c]
mov dword [esp + 0x68], edi
push eax
mov ecx, esi
mov dword [esp + 0x3c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
jmp 0x1003a874
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffe
je 0x1003a89e
test eax, eax
je 0x1003a894
cmp eax, dword [edi]
je 0x1003a89e
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x1003a8a4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
cmp edx, dword [edi + 4]
je 0x1003aa66
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x1003a8d5
test eax, eax
je 0x1003a8d3
mov edi, dword [esp + 0x1c]
cmp eax, edi
je 0x1003a8d9
call ebx
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x20]
sub eax, esi
mov dword [esp + 0x34], eax
cmp eax, 3
mov dword [esp + 0x3c], 3
lea eax, [esp + 0x34]
jl 0x1003a8fb
lea eax, [esp + 0x3c]
mov ebp, dword [eax]
xor eax, eax
cmp edi, 0xfffffffe
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
je 0x1003a941
test edi, edi
jne 0x1003a913
call ebx
mov ebx, dword [edi + 0x18]
cmp ebx, 0x10
lea eax, [edi + 4]
jb 0x1003a922
mov ecx, dword [eax]
jmp 0x1003a924
mov ecx, eax
mov edi, dword [edi + 0x14]
lea edx, [esi + ebp]
add edi, ecx
cmp edx, edi
ja 0x1003a93b
cmp ebx, 0x10
jb 0x1003a937
mov eax, dword [eax]
cmp edx, eax
jae 0x1003a941
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
xor ebx, ebx
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x34]
push eax
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
lea edx, [esp + 0x34]
lea edi, [ecx + 3]
mov dword [eax + 4], edx
add esi, ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x3c]
push esi
lea esi, [esp + 0x70]
call fcn.1003b4f0
mov eax, dword [esp + 0x3c]
add esp, 0x20
cmp eax, 0xfffffffe
je 0x1003a9ca
test eax, eax
jne 0x1003a999
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x18]
cmp edi, 0x10
lea ecx, [eax + 4]
jb 0x1003a9a8
mov edx, dword [ecx]
jmp 0x1003a9aa
mov edx, ecx
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
add esi, ebp
add eax, edx
cmp esi, eax
ja 0x1003a9c4
cmp edi, 0x10
jb 0x1003a9c0
mov ecx, dword [ecx]
cmp esi, ecx
jae 0x1003a9ca
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov al, byte [esp + 0x18]
add dword [esp + 0x20], ebp
mov cl, al
shr cl, 2
mov byte [esp + 0x24], cl
mov cl, byte [esp + 0x19]
and al, 3
mov dl, cl
shl al, 4
shr dl, 4
or al, dl
and cl, 0xf
mov byte [esp + 0x25], al
mov al, byte [esp + 0x1a]
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
or cl, dl
and al, 0x3f
lea edi, [ebp + 1]
xor esi, esi
test edi, edi
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], al
jle 0x1003aa3e
jmp 0x1003aa20
movzx eax, byte [esp + esi + 0x24]
movzx ecx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push ecx
mov ecx, dword [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
add esi, 1
cmp esi, edi
jl 0x1003aa20
mov eax, 3
sub eax, ebp
test eax, eax
jle 0x1003a870
mov esi, eax
nop
mov ecx, dword [esp + 0x28]
push 0x3d
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
sub esi, 1
jne 0x1003aa50
jmp 0x1003a870
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret