Function at 0x440110
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x517e8a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
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 0x440174
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 0x44019e
test eax, eax
je 0x440194
cmp eax, dword [edi]
je 0x44019e
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x4401a4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
cmp edx, dword [edi + 4]
je 0x440366
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 0x4401d5
test eax, eax
je 0x4401d3
mov edi, dword [esp + 0x1c]
cmp eax, edi
je 0x4401d9
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 0x4401fb
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 0x440241
test edi, edi
jne 0x440213
call ebx
mov ebx, dword [edi + 0x18]
cmp ebx, 0x10
lea eax, [edi + 4]
jb 0x440222
mov ecx, dword [eax]
jmp 0x440224
mov ecx, eax
mov edi, dword [edi + 0x14]
lea edx, [esi + ebp]
add edi, ecx
cmp edx, edi
ja 0x44023b
cmp ebx, 0x10
jb 0x440237
mov eax, dword [eax]
cmp edx, eax
jae 0x440241
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.0050ac50
mov eax, dword [esp + 0x3c]
add esp, 0x20
cmp eax, 0xfffffffe
je 0x4402ca
test eax, eax
jne 0x440299
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 0x4402a8
mov edx, dword [ecx]
jmp 0x4402aa
mov edx, ecx
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
add esi, ebp
add eax, edx
cmp esi, eax
ja 0x4402c4
cmp edi, 0x10
jb 0x4402c0
mov ecx, dword [ecx]
cmp esi, ecx
jae 0x4402ca
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 0x44033e
jmp 0x440320
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 0x440320
mov eax, 3
sub eax, ebp
test eax, eax
jle 0x440170
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 0x440350
jmp 0x440170
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