Function at 0x401c90
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x43c7c1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e6f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
call fcn.0040c5d3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401ce5
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x30], 0
mov esi, 1
mov dword [esp + 0x20], esi
call fcn.0040c5d3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401d1e
push 0x80004005
call fcn.00401fb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
xor ebp, ebp
cmp dword [esp + 0x40], ebp
mov dword [esp + 0x30], esi
je 0x401f5c
jmp 0x401d45
mov esi, 1
mov eax, dword [esp + 0x3c]
mov cl, byte [eax]
sub dword [esp + 0x40], esi
mov byte [esp + ebp + 0x14], cl
add ebp, esi
add eax, esi
cmp ebp, 3
mov dword [esp + 0x3c], eax
jne 0x401e1f
mov al, byte [esp + 0x14]
mov dl, al
shr dl, 2
mov cl, al
mov al, byte [esp + 0x15]
and cl, 3
mov byte [esp + 0x18], dl
shl cl, 4
mov dl, al
shr dl, 4
add cl, dl
mov byte [esp + 0x19], cl
mov cl, al
mov al, byte [esp + 0x16]
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
xor edx, edx
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
mov dword [esp + 0x1c], edx
movzx eax, byte [esp + edx + 0x18]
test eax, eax
jl 0x401f99
mov ecx, dword [0x4556cc]
cmp eax, dword [ecx - 0xc]
jg 0x401f99
mov bl, byte [ecx + eax]
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x401df0
push esi
mov ecx, edi
call fcn.00402030
mov edx, dword [esp + 0x1c]
test esi, esi
mov eax, dword [edi]
mov byte [eax + ebp], bl
jl 0x401f99
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x401f99
mov dword [eax - 0xc], esi
mov eax, dword [edi]
add edx, 1
cmp edx, 4
mov byte [esi + eax], 0
mov dword [esp + 0x1c], edx
jl 0x401dac
xor ebp, ebp
cmp dword [esp + 0x40], 0
jne 0x401d40
test ebp, ebp
je 0x401f5c
cmp ebp, 3
jge 0x401e4e
mov ecx, 3
sub ecx, ebp
push ecx
lea eax, [esp + ebp + 0x18]
push 0
push eax
call fcn.00428f90
add esp, 0xc
mov cl, byte [esp + 0x14]
mov al, byte [esp + 0x15]
mov dl, cl
shr dl, 2
mov byte [esp + 0x18], dl
mov dl, al
and cl, 3
shr dl, 4
shl cl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x16]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x1a], al
and cl, 0x3f
xor edx, edx
lea eax, [ebp + 1]
test eax, eax
mov byte [esp + 0x1b], cl
mov dword [esp + 0x3c], edx
jle 0x401f14
movzx eax, byte [esp + edx + 0x18]
test eax, eax
jl 0x401f99
mov ecx, dword [0x4556cc]
cmp eax, dword [ecx - 0xc]
jg 0x401f99
mov al, byte [ecx + eax]
mov byte [esp + 0x40], al
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x401ee1
push esi
mov ecx, edi
call fcn.00402030
mov edx, dword [esp + 0x3c]
test esi, esi
mov eax, dword [edi]
mov cl, byte [esp + 0x40]
mov byte [eax + ebx], cl
jl 0x401f99
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x401f99
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
add edx, 1
lea eax, [ebp + 1]
cmp edx, eax
mov dword [esp + 0x3c], edx
jl 0x401e99
cmp ebp, 3
jge 0x401f5c
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
add ebp, 1
or eax, ecx
jge 0x401f3d
push esi
mov ecx, edi
call fcn.00402030
test esi, esi
mov eax, dword [edi]
mov byte [eax + ebx], 0x3d
jl 0x401f99
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x401f99
cmp ebp, 3
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov byte [esi + ecx], 0
jl 0x401f19
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
push 0x80070057
call fcn.00401fb0
int3