Function at 0x10019a30
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x46c
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x401
mov dword [esp + 0x24], esi
call sym.fbclient.dll_gds__alloc
mov ebp, eax
cmp ebp, esi
jne 0x10019a74
mov eax, dword [esp + 0x480]
pop edi
mov dword [eax + 8], esi
pop esi
mov dword [eax], 1
mov dword [eax + 4], 0x1400006e
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret
mov ecx, dword [esp + 0x48c]
mov edx, dword [esp + 0x490]
cmp cx, si
jne 0x10019a93
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
and ecx, 0xffff
lea eax, [esp + 0x14]
mov ebx, dword [esp + 0x480]
add ecx, edx
push eax
push ebp
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x49c]
push ecx
push esi
push 0x103
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a13d
movsx edx, word [0x1004102a]
mov eax, dword [esp + 0x14]
and eax, 0xffff
cmp eax, edx
jne 0x1001a13d
mov esi, 0x10041020
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10019b10
test cl, cl
je 0x10019b0c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10019b10
add eax, 2
add esi, 2
test cl, cl
jne 0x10019aec
xor eax, eax
jmp 0x10019b15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001a13d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
lea edx, [esp + 0x498]
push ecx
push edx
push 0
push 0x103
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a13d
mov eax, dword [esp + 0x14]
movsx ecx, word [0x10041038]
and eax, 0xffff
cmp eax, ecx
je 0x10019b6c
movsx edx, word [0x10041046]
cmp eax, edx
jne 0x1001a13d
mov esi, 0x1004102e
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10019b97
test cl, cl
je 0x10019b93
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10019b97
add eax, 2
add esi, 2
test cl, cl
jne 0x10019b73
xor eax, eax
jmp 0x10019b9c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10019bd8
mov esi, 0x1004103c
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10019bcb
test cl, cl
je 0x10019bc7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10019bcb
add eax, 2
add esi, 2
test cl, cl
jne 0x10019ba7
xor eax, eax
jmp 0x10019bd0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001a13d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
lea edx, [esp + 0x498]
push ecx
push edx
push 0
push 0x101
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0b2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x819
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x498]
mov byte [ecx], 0
call sym.fbclient.dll_gds__alloc
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x10019c69
push ebp
mov dword [ebx], 1
mov dword [ebx + 4], 0x1400006e
mov dword [ebx + 8], eax
call sym.fbclient.dll_gds__free
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x46c
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x498]
xor edx, edx
mov cx, ax
mov byte [esi], 1
inc esi
mov dl, ah
mov byte [esi], 0x36
inc esi
shr cx, 0x10
mov byte [esi], 1
inc esi
mov byte [esi], 0
inc esi
mov byte [esi], 0x3f
inc esi
mov byte [esi], 4
inc esi
mov byte [esi], al
inc esi
shr ax, 0x18
mov byte [esi], dl
inc esi
lea edx, [esp + 0x14]
mov byte [esi], cl
inc esi
push edx
push ebp
mov byte [esi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x498]
push eax
push ecx
inc esi
call fcn.1001a170
add esp, 0x10
cmp ax, 0xffff
je 0x1001a05a
test ax, ax
jl 0x1001a064
xor al, al
cmp word [0x10041054], 0
mov edx, 3
mov byte [esp + 0x13], al
mov dword [esp + 0x24], edx
je 0x1001a064
test al, al
jne 0x1001a035
movsx edx, dx
mov edi, dword [esp + 0x14]
lea ecx, [edx*8]
and edi, 0xffff
sub ecx, edx
shl ecx, 1
movsx edx, word [ecx + 0x1004102a]
cmp edi, edx
jne 0x1001a00d
lea edi, [ecx + 0x10041020]
mov eax, ebp
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [edi]
jne 0x10019d4d
test dl, dl
je 0x10019d49
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x10019d4d
add eax, 2
add edi, 2
test dl, dl
jne 0x10019d29
xor eax, eax
jmp 0x10019d52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.default.0x10019d6d
movsx eax, word [ecx + 0x1004102c]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x10019d6d
jmp dword [eax*4 + 0x1001a150]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
lea eax, [esp + 0x14]
lea edx, [esp + 0x490]
push eax
push ebp
push ecx
push edx
push 1
push 0x3d
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
lea edx, [esp + 0x498]
push ecx
push edx
push 0
push 0x102
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
push ebp
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov byte [esi], 4
inc esi
mov ecx, eax
sar ecx, 8
mov byte [esi], 4
inc esi
mov edx, eax
mov byte [esi], al
inc esi
sar edx, 0x10
mov byte [esi], cl
inc esi
sar eax, 0x18
mov byte [esi], dl
inc esi
mov byte [esi], al
mov al, 1
inc esi
mov byte [esp + 0x13], al
jmp 0x1001a00d
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
lea eax, [esp + 0x14]
lea edx, [esp + 0x490]
push eax
push ebp
push ecx
push edx
push 0
push 0x101
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov byte [esi], 0x1c
mov al, byte [esp + 0x14]
inc esi
mov ecx, ebp
mov byte [esi], al
mov al, byte [ebp]
inc esi
test al, al
je 0x10019e58
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x10019e4d
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1001a00d
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x490]
push ecx
push ebp
push edx
push eax
push 0
push 0x101
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov byte [esi], 0x1d
mov cl, byte [esp + 0x14]
inc esi
mov byte [esi], cl
mov al, byte [ebp]
inc esi
mov ecx, ebp
test al, al
je 0x10019eb5
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x10019eaa
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1001a00d
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x490]
push edx
push ebp
push eax
push ecx
push 0
push 0x103
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
movsx edx, word [0x100410c4]
mov eax, dword [esp + 0x14]
and eax, 0xffff
cmp eax, edx
jne 0x1001a0c8
mov edi, 0x100410ba
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x10019f36
test cl, cl
je 0x10019f32
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x10019f36
add eax, 2
add edi, 2
test cl, cl
jne 0x10019f12
xor eax, eax
jmp 0x10019f3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001a0c8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
lea edx, [esp + 0x498]
push ecx
push edx
push 0
push 0x101
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov byte [esi], 0x30
mov al, byte [esp + 0x14]
inc esi
mov ecx, ebp
mov byte [esi], al
mov al, byte [ebp]
inc esi
test al, al
je 0x10019f8e
mov byte [esi], al
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x10019f83
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1001a00d
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x490]
push ecx
push ebp
push edx
push eax
push 1
push 0x3d
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea eax, [esp + 0x498]
push edx
push eax
push 0
push 0x102
push ebx
call fcn.1001a3d0
add esp, 0x1c
test ax, ax
jne 0x1001a0c8
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1001a00d
mov al, 1
mov byte [esp + 0x13], al
jmp 0x1001a006
mov al, byte [esp + 0x13]
mov ebx, dword [esp + 0x480]
mov edx, dword [esp + 0x24]
inc edx
movsx ecx, dx
mov dword [esp + 0x24], edx
lea edi, [ecx*8]
sub edi, ecx
cmp word [edi*2 + 0x1004102a], 0
jne 0x10019cf2
test al, al
je 0x1001a064
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push ebp
lea eax, [esp + 0x498]
push edx
push eax
call fcn.1001a170
add esp, 0x10
cmp ax, 0xffff
jne 0x10019ccc
mov ecx, dword [esp + 0x494]
mov byte [ecx], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x78]
sub esi, eax
push eax
lea eax, [esp + 0x24]
push esi
push eax
push ecx
push 0
push ebx
call sym.fbclient.dll_isc_attach_database
test eax, eax
mov edi, 0x14000018
je 0x1001a0cf
cmp dword [ebx + 4], edi
jne 0x1001a0cf
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x484]
push 0
push edi
push esi
lea eax, [esp + 0x84]
push edx
push eax
push 0
push ebx
call sym.fbclient.dll_isc_create_database
push edi
call sym.fbclient.dll_gds__free
push ebp
call sym.fbclient.dll_gds__free
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x46c
ret
mov edx, dword [esp + 0x1c]
push edx
jmp 0x1001a0ad
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1001a0e5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
call sym.fbclient.dll_isc_detach_database
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001a0f3
cmp eax, 0x14000003
jne 0x1001a133
mov eax, 2
push ebx
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
lea eax, [esp + 0x7c]
mov dword [ebx], 1
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], str.open
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], 0x14000146
mov dword [ebx + 0x20], 0
call fcn.1001c650
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x1001a0ad
push ebp
call sym.fbclient.dll_gds__free
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret