Function at 0x51d65c
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [0xd80dfc]
sub esp, 0x10
mov ecx, dword [eax + 0x22c]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp ecx, esi
jne 0x51dc00
mov edi, dword [eax + 0x20]
inc edi
mov dword [eax + 0x20], edi
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x20]
cmp ecx, 0x18
jge 0x51d6ab
mov dword [eax + ecx*4 + 0x24], 0x4b
mov eax, dword [0xd80dfc]
cmp dword [eax + 0x244], esi
je 0x51d6ab
call fcn.0051b36c
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 8]
cmp ecx, esi
je 0x51dbee
cmp ecx, 0x100
ja 0x51dbee
cmp dword [eax + 0x90], esi
jne 0x51d6d1
push 0x12
jmp 0x51dbf0
mov edi, dword [esp + 0x24]
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
call fcn.0051bd8c
push edi
push 1
mov dword [esp + 0x28], eax
call fcn.0051bdac
mov ebx, dword [edi]
mov eax, dword [0xd80dfc]
add esp, 0xc
cmp ebx, esi
mov ecx, 0x3c
jne 0x51d758
cmp dword [eax + 8], ecx
ja 0x51d758
cmp dword [eax + 0x88], esi
jne 0x51d71a
mov eax, dword [esp + 0x28]
mov byte [eax], 0x30
mov byte [eax + 1], 0
jmp 0x51d73f
mov eax, dword [eax + 0x98]
push eax
push 0x30
call fcn.00520fb4
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x98]
push edx
push 0xa
call fcn.00520fb4
add esp, 0x10
mov eax, dword [0xd80dfc]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 0x20]
pop ebx
dec ecx
mov dword [eax + 0x20], ecx
mov eax, 1
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
cmp edx, 0xffffffff
jne 0x51d79a
cmp dword [eax + 8], ecx
ja 0x51d79a
cmp dword [eax + 0x88], esi
jne 0x51d77b
mov eax, dword [esp + 0x28]
mov byte [eax], 0x2d
jmp 0x51d78c
mov ecx, dword [eax + 0x98]
push ecx
push 0x2d
call fcn.00520fb4
add esp, 8
mov eax, dword [0xd80dfc]
mov ebp, 1
mov dword [esp + 0x14], ebp
mov edx, dword [eax + 0x1ec]
mov dword [esp + 0x18], esi
push edx
push edi
call fcn.0051c47c
mov eax, dword [0xd80dfc]
add esp, 8
cmp dword [eax + 0x240], esi
je 0x51d904
mov eax, dword [eax + 0x1e8]
push eax
push edi
call fcn.0051c57c
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x1e8]
push edx
call fcn.0051c21c
add esp, 0xc
cmp eax, 1
jle 0x51d8ff
mov edi, ebx
and edi, 0xffff
shr ebx, 0x10
cmp edi, esi
jne 0x51d7fe
mov edi, 1
mov eax, dword [0xd80dfc]
cmp ebx, edi
mov ecx, dword [eax + 0x84]
mov dword [eax + 0x84], esi
mov dword [esp + 0x10], ecx
jge 0x51d834
mov edx, dword [0xd80dfc]
mov ecx, edi
sub ecx, ebx
mov eax, dword [edx + 0x1e8]
push eax
push ecx
push eax
call fcn.0051c0ac
add esp, 0xc
cmp ebx, edi
jle 0x51d851
mov edx, dword [0xd80dfc]
mov ecx, ebx
sub ecx, edi
mov eax, dword [edx + 0x1ec]
push eax
push ecx
push eax
call fcn.0051c0ac
add esp, 0xc
mov eax, dword [0xd80dfc]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1ec]
push edx
push eax
call fcn.0051c25c
add esp, 8
test eax, eax
jl 0x51d874
dec esi
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x1d4]
mov edx, dword [eax + 0x1ec]
push ecx
push edx
call fcn.0051bfdc
mov eax, dword [0xd80dfc]
add esp, 8
mov ecx, dword [eax + 0x1d4]
mov eax, dword [eax + 0x1c]
shl eax, 1
mov edx, dword [ecx]
lea ebp, [edx + esi]
cmp ebp, eax
jle 0x51d8ac
sub eax, edx
mov esi, eax
push ecx
push esi
push ecx
call fcn.0051c0ac
mov eax, dword [0xd80dfc]
mov ecx, dword [eax + 0x1ec]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x1d4]
push ecx
push edx
push eax
call fcn.0051eecc
mov ecx, dword [0xd80dfc]
mov edx, dword [esp + 0x28]
sub esi, edi
mov ebp, dword [esp + 0x2c]
mov dword [ecx + 0x84], edx
mov eax, dword [0xd80dfc]
add esi, ebx
add esp, 0x18
imul esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
xor esi, esi
jmp 0x51d904
mov eax, dword [0xd80dfc]
mov eax, dword [eax + 0x1ec]
mov edi, dword [esp + 0x10]
push eax
call fcn.0051be7c
add esp, 4
cmp edi, eax
mov dword [esp + 0x14], eax
jle 0x51d921
mov eax, edi
cmp eax, esi
mov edi, eax
jle 0x51da86
mov ecx, dword [0xd80dfc]
mov eax, dword [ecx + 0x88]
cmp eax, esi
jne 0x51d95a
mov edx, dword [esp + 0x28]
mov ebx, dword [ecx + 0x24c]
cmp edx, ebx
jne 0x51d95a
mov edx, dword [ecx + 0x224]
sub edx, 5
cmp ebp, edx
jge 0x51db20
cmp edi, dword [esp + 0x10]
jne 0x51d98c
cmp dword [ecx + 8], 0x3c
ja 0x51d98c
cmp eax, esi
jne 0x51d974
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0x2e
jmp 0x51d985
mov ecx, dword [ecx + 0x98]
push ecx
push 0x2e
call fcn.00520fb4
add esp, 8
mov ecx, dword [0xd80dfc]
inc ebp
cmp edi, dword [esp + 0x14]
jle 0x51d99c
mov ebx, 0x30
jmp 0x51da2b
mov edx, dword [ecx + 0x1ec]
push edi
push edx
call fcn.0051be1c
mov ebx, eax
mov eax, dword [0xd80dfc]
push edi
mov dword [eax + 0x84], esi
mov ecx, dword [0xd80dfc]
mov edx, dword [ecx + 0x1ec]
push edx
push esi
call fcn.0051becc
mov ecx, dword [0xd80dfc]
add esp, 0x14
mov eax, dword [ecx + 8]
cmp eax, 0x3c
ja 0x51d9ee
add ebx, 0x30
cmp ebx, 0x3a
jl 0x51d9e6
add ebx, 7
cmp ebx, 0x5b
jl 0x51d9ee
add ebx, 6
cmp eax, 0x40
jne 0x51da2b
cmp ebx, 0x1a
jge 0x51da00
add ebx, 0x41
cmp ebx, 0x1a
jl 0x51da08
cmp ebx, 0x34
jge 0x51da0d
add ebx, 0x47
cmp ebx, 0x34
jl 0x51da15
cmp ebx, 0x3e
jge 0x51da18
sub ebx, 4
cmp ebx, 0x3e
jne 0x51da21
mov ebx, 0x2b
jmp 0x51da2b
cmp ebx, 0x3f
jne 0x51da2b
mov ebx, 0x2f
cmp edi, dword [esp + 0x10]
jge 0x51da55
cmp dword [ecx + 8], 0x3c
ja 0x51da55
cmp ebx, 0x30
jne 0x51da55
mov eax, dword [ecx + 0x1ec]
push eax
call fcn.0051c21c
add esp, 4
test eax, eax
je 0x51da86
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 0x88], esi
jne 0x51da66
mov ecx, dword [esp + 0x28]
mov byte [ecx + ebp], bl
jmp 0x51da7c
mov edx, dword [ecx + 0x98]
and ebx, 0xff
push edx
push ebx
call fcn.00520fb4
add esp, 8
inc ebp
dec edi
cmp edi, esi
jg 0x51d92b
cmp dword [esp + 0x18], esi
jne 0x51db40
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 0x240], esi
jne 0x51db46
mov eax, dword [ecx + 0x1ec]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0051c57c
mov edx, dword [0xd80dfc]
mov eax, dword [edx + 0x1ec]
push eax
call fcn.0051c21c
add esp, 0xc
cmp eax, 1
je 0x51db40
mov eax, dword [0xd80dfc]
cmp dword [eax + 8], 0x3c
ja 0x51db13
cmp dword [eax + 0x88], esi
jne 0x51dafc
mov ecx, dword [esp + 0x28]
inc ebp
mov dword [esp + 0x18], 1
mov byte [ecx + ebp - 1], 0x2f
mov eax, dword [0xd80dfc]
jmp 0x51d904
mov edx, dword [eax + 0x98]
push edx
push 0x2f
call fcn.00520fb4
mov eax, dword [0xd80dfc]
add esp, 8
inc ebp
mov dword [esp + 0x18], 1
jmp 0x51d904
push 0x11
call fcn.0051b0fc
mov eax, dword [0xd80dfc]
add esp, 4
mov ecx, dword [eax + 0x20]
pop edi
dec ecx
pop esi
mov dword [eax + 0x20], ecx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [0xd80dfc]
cmp dword [ecx + 8], 0x40
jne 0x51db94
mov eax, ebp
mov esi, 3
cdq
idiv esi
test edx, edx
je 0x51db94
mov esi, dword [esp + 0x28]
mov eax, dword [ecx + 0x88]
test eax, eax
jne 0x51db6e
mov byte [esi + ebp], 0x3d
jmp 0x51db7f
mov eax, dword [ecx + 0x98]
push eax
push 0x3d
call fcn.00520fb4
add esp, 8
inc ebp
mov ecx, 3
mov eax, ebp
cdq
idiv ecx
mov ecx, dword [0xd80dfc]
test edx, edx
jne 0x51db5e
mov eax, dword [ecx + 0x88]
test eax, eax
jne 0x51dba8
mov edx, dword [esp + 0x28]
mov byte [edx + ebp], 0
jmp 0x51dbc6
mov eax, dword [ecx + 8]
cmp eax, 0x3c
jbe 0x51dbb5
cmp eax, 0x40
jne 0x51dbc6
mov eax, dword [ecx + 0x98]
push eax
push 0xa
call fcn.00520fb4
add esp, 8
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.0051bdac
mov eax, dword [0xd80dfc]
add esp, 8
mov ecx, dword [eax + 0x20]
pop edi
dec ecx
pop esi
mov dword [eax + 0x20], ecx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
push 1
call fcn.0051b0fc
mov eax, dword [0xd80dfc]
add esp, 4
dec dword [eax + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret