Function at 0x409630
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453146
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46ebd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x473b08], 1
mov dword [ebp - 0x20], 0
jne 0x4096b6
or dword [0x473b08], 1
mov dword [ebp - 4], 0
push 0x40
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ecx, 0x473ae8
mov dword [0x473afc], 0xf
mov dword [0x473af8], 0
mov byte [0x473ae8], 0
call fcn.00409fc0
push 0x454bb0
call fcn.00439068
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.0041b710
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4096d0
push 0x80004005
call fcn.00401be0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], ebx
je 0x4098f0
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
dec dword [ebp + 0x10]
mov byte [ebp + ebx - 0x14], cl
inc ebx
inc eax
mov dword [ebp + 0xc], eax
cmp ebx, 3
jne 0x4097ba
mov al, byte [ebp - 0x14]
mov dl, al
and al, bl
shl al, 4
shr dl, 2
mov cl, al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x18], dl
mov dl, al
and al, 0xf
add al, al
shr dl, 4
add cl, dl
mov byte [ebp - 0x17], cl
lea ecx, [eax + eax]
mov al, byte [ebp - 0x12]
mov dl, al
shr dl, 6
and al, 0x3f
mov byte [ebp - 0x15], al
add ecx, edx
xor edx, edx
mov byte [ebp - 0x16], cl
mov dword [ebp - 0x20], edx
cmp dword [0x473afc], 0x10
mov eax, dword [0x473ae8]
jae 0x40975b
mov eax, 0x473ae8
movzx ecx, byte [ebp + edx - 0x18]
mov ebx, dword [esi - 0xc]
mov al, byte [ecx + eax]
lea edi, [ebx + 1]
mov byte [ebp - 0x10], al
test edi, edi
js 0x409917
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x409794
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401b40
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
movsx cx, byte [ebp - 0x10]
mov word [esi + ebx*2], cx
cmp edi, dword [esi - 8]
jg 0x409917
inc edx
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov dword [ebp - 0x20], edx
cmp edx, 4
jl 0x409748
xor ebx, ebx
cmp dword [ebp + 0x10], 0
jne 0x4096f1
test ebx, ebx
je 0x4098f0
cmp ebx, 3
jge 0x4097e8
mov ecx, 3
sub ecx, ebx
push ecx
lea eax, [ebp + ebx - 0x14]
push 0
push eax
call fcn.0043bb10
add esp, 0xc
mov al, byte [ebp - 0x14]
mov dl, al
and al, 3
shl al, 4
shr dl, 2
mov cl, al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x18], dl
mov dl, al
and al, 0xf
add al, al
shr dl, 4
add cl, dl
mov byte [ebp - 0x17], cl
lea ecx, [eax + eax]
mov al, byte [ebp - 0x12]
mov dl, al
shr dl, 6
and al, 0x3f
mov byte [ebp - 0x15], al
lea eax, [ebx + 1]
add ecx, edx
xor edx, edx
mov byte [ebp - 0x16], cl
mov dword [ebp - 0x20], edx
test eax, eax
jle 0x4098a1
cmp dword [0x473afc], 0x10
mov edi, dword [0x473ae8]
jae 0x409840
mov edi, 0x473ae8
movzx eax, byte [ebp + edx - 0x18]
mov cl, byte [eax + edi]
mov edi, dword [esi - 0xc]
mov dword [ebp - 0x14], edi
inc edi
mov byte [ebp - 0x10], cl
js 0x409917
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x409878
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401b40
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
movsx ax, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov word [esi + ecx*2], ax
cmp edi, dword [esi - 8]
jg 0x409917
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x20], edx
cmp edx, eax
jl 0x40982c
cmp ebx, 3
jge 0x4098f0
mov edx, dword [esi - 0xc]
lea edi, [edx + 1]
inc ebx
mov dword [ebp - 0x20], edx
test edi, edi
js 0x409917
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4098d4
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401b40
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov ecx, 0x3d
mov word [esi + edx*2], cx
cmp edi, dword [esi - 8]
jg 0x409917
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
cmp ebx, 3
jl 0x4098a6
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x409921
cmp eax, dword [esi]
jne 0x409921
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40995d
push 0x80070057
call fcn.00401be0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40993a
call fcn.00401af0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00438b73
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], edx
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409985
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret