Function at 0x58b850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea628
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x64e2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa0], ecx
mov edx, dword [edi + 4]
cmp edx, 1
je 0x58c1b2
cmp edx, 0xc
je 0x58c1b2
mov eax, dword [eax + 0x40]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x98], ecx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0xa4], 0
push eax
push edx
mov dword [ebp - 0xb0], 0
call fcn.00587140
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
jne 0x58b905
lea esi, [eax + 0x1c]
jmp 0x58b989
cmp eax, 0xb
jne 0x58b90f
lea esi, [eax + 0x12]
jmp 0x58b989
cmp eax, 2
jne 0x58b919
lea esi, [eax + 0x3b]
jmp 0x58b989
cmp eax, 3
jne 0x58b923
lea esi, [eax + 0x33]
jmp 0x58b989
cmp eax, 4
jne 0x58b92d
lea esi, [eax + 0x25]
jmp 0x58b989
cmp eax, 5
jne 0x58b937
lea esi, [eax + 0x1d]
jmp 0x58b989
cmp eax, 6
jne 0x58b941
lea esi, [eax + 4]
jmp 0x58b989
cmp eax, 7
jne 0x58b94b
lea esi, [eax - 5]
jmp 0x58b989
cmp eax, 8
jne 0x58b955
lea esi, [eax + 0x3f]
jmp 0x58b989
cmp eax, 9
jne 0x58b95f
lea esi, [eax + 0x41]
jmp 0x58b989
cmp eax, 0xa
jne 0x58b969
lea esi, [eax + 0x43]
jmp 0x58b989
cmp eax, 0xd
jne 0x58b973
lea esi, [eax + 0x3b]
jmp 0x58b989
cmp eax, 0xe
jne 0x58b97d
lea esi, [eax + 0x3d]
jmp 0x58b989
cmp eax, 0xf
jne 0x58bfec
lea esi, [eax + 0x3f]
cmp dword [edi + 0x18], 1
mov dword [ebp - 0x2c], 8
jl 0x58b99b
test byte [edi], 1
je 0x58b9a2
mov dword [ebp - 0x2c], 0x28
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0xbc]
push edx
push dword [edi + 0x1c]
mov dword [ebp - 0xbc], 0
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x78]
cmp dword [edi + 8], 2
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x94], 0
jne 0x58be2f
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x74], eax
mov eax, 1
cmp edx, eax
mov dword [ebp - 0x70], ecx
mov ecx, dword [edi + 0x18]
cmovl edx, eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xbc]
dec eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
xor eax, eax
cmp ecx, 1
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x68], edx
setne al
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 4], 3
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [ebp - 0x90], ecx
je 0x58bafa
test edx, edx
je 0x58ba90
lea eax, [ebp - 0xb5]
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.00587b80
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xac], esi
jmp 0x58ba96
mov eax, dword [ebp - 0xa8]
xor edx, edx
test eax, eax
je 0x58bafa
lea ecx, [esi + 8]
mov esi, dword [ebp - 0xa0]
nop word [eax + eax]
mov eax, edx
lea ecx, [ecx + 0xc]
imul eax, dword [ebp - 0xb0]
inc edx
imul eax, dword [ebp - 0xa4]
add eax, dword [esi]
mov dword [ecx - 0x14], eax
mov eax, dword [ebp - 0xa4]
mov dword [ecx - 0x10], eax
mov eax, dword [ebp - 0xb0]
imul eax, dword [ebp - 0xa4]
mov dword [ecx - 0xc], eax
cmp edx, dword [ebp - 0x68]
jb 0x58bab0
mov ecx, dword [ebp - 0x98]
mov esi, dword [ebp - 0xac]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
jmp 0x58bb0e
cmp dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
jbe 0x58bb18
cmp dword [edi + 0x18], 1
jne 0x58bb18
mov eax, esi
jmp 0x58bb1a
xor eax, eax
lea esi, [ebp - 0x94]
push esi
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
call edx
mov esi, dword [ebp - 0xac]
test eax, eax
js 0x58bbd8
mov eax, dword [ebp - 0x64]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x48], eax
xor eax, eax
test byte [edi], 2
mov dword [ebp - 0xa8], 0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0xffffffff
je 0x58bb8d
cmp ecx, 1
mov dword [ebp - 0x38], 0
mov ecx, 1
setg al
lea eax, [eax*2 + 5]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x14]
cmp eax, 1
cmovl eax, ecx
mov dword [ebp - 0x34], eax
jmp 0x58bb9d
cmp ecx, 1
setg al
lea eax, [eax*2 + 4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0xa8]
push edx
lea edx, [ebp - 0x48]
push edx
push dword [ebp - 0x94]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x1c]
test eax, eax
jns 0x58bc22
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x58bbd8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x94], 0
test esi, esi
je 0x58c1b2
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x58be28
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58c1d1
jmp 0x58be28
cmp dword [edi + 0x18], 1
je 0x58bcec
cmp dword [ebp - 0x90], 0
jbe 0x58bcd7
xor ecx, ecx
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0x68], ecx
jbe 0x58bcd7
lea eax, [esi + 4]
mov dword [ebp - 0x90], eax
mov esi, eax
nop word [eax + eax]
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x80], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x78], 1
push dword [esi + 4]
push dword [esi]
push dword [esi - 4]
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
push dword [ebp - 0x94]
push edx
call dword [eax + 0xc0]
mov ecx, dword [ebp - 0xa0]
lea esi, [esi + 0xc]
inc ecx
mov dword [ebp - 0xa0], ecx
cmp ecx, dword [ebp - 0x68]
jb 0x58bc60
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb4]
push dword [ebp - 0xa8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xd8]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
add ecx, 0x2c
lea eax, [ebp - 0x90]
push eax
call fcn.00587740
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 4
test eax, eax
je 0x58bd21
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ecx + 0x34]
call fcn.00587740
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 5
test eax, eax
je 0x58bd56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x58bda4
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x58bd9a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58c1d1
push ecx
push esi
call fcn.005b26d8
add esp, 8
mov esi, dword [ebp - 0x9c]
test byte [edi], 1
je 0x58be12
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x90], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x58bdce
mov eax, dword [esi + 0x30]
lea esi, [ebp - 0x90]
push esi
push 0
push eax
push ecx
call edx
mov esi, dword [ebp - 0x9c]
test eax, eax
js 0x58c1b2
mov eax, dword [ebp - 0x90]
lea ecx, [esi + 0x38]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00587740
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 9
test eax, eax
je 0x58be12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
movups xmm0, xmmword [edi]
mov al, 1
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x1c], xmm0
jmp 0x58c1b4
push ecx
push esi
jmp 0x58c1aa
mov edx, dword [edi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
xor eax, eax
cmp edx, 1
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], esi
mov esi, dword [ebp - 0x98]
setne al
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x60], edx
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x90], eax
je 0x58bea6
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xa4]
imul eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
cmp edx, 1
jne 0x58beab
lea ecx, [ebp - 0x20]
jmp 0x58bead
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
xor ecx, ecx
lea edx, [ebp - 0x94]
push edx
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push esi
call eax
test eax, eax
js 0x58c1b2
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x94]
mov dword [ebp - 0x2c], 0
push esi
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x88], 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xffffffff
call dword [eax + 0x1c]
test eax, eax
jns 0x58bf2b
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x58c1b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x58c1b2
cmp dword [edi + 0x18], 1
je 0x58bf68
cmp dword [ebp - 0x90], 0
mov esi, dword [ebp - 0xb4]
jbe 0x58bf5c
push dword [ebp - 0x18]
mov eax, dword [esi]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
push 0
push dword [ebp - 0x94]
push esi
call dword [eax + 0xc0]
push dword [ebp - 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0xd8]
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x94]
add eax, 0x30
mov esi, edx
cmp eax, ecx
je 0x58bf9a
xor esi, esi
mov ecx, dword [eax]
mov dword [ebp - 4], 6
mov dword [eax], edx
test ecx, ecx
je 0x58bf9a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 7
test esi, esi
je 0x58bfab
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [esi + 0x34]
call fcn.00587740
mov eax, dword [ebp - 0x90]
mov dword [ebp - 4], 8
test eax, eax
je 0x58bfe0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
jmp 0x58bdaa
test eax, eax
jns 0x58c005
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00434360
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x58c011
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00434360
mov ecx, eax
lea eax, [ebp - 0x13]
mov dword [ebp - 0x8c], 0
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, eax
je 0x58c049
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00472c00
push 0x1d
push str.The_format_is_not_supported._
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.00431b40
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x5f7a70
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004307d0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
push 2
call fcn.00521530
mov edx, dword [ebp - 0x34]
add esp, 8
cmp edx, 0x10
jb 0x58c12b
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58c121
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58c1d6
push edx
push ecx
call fcn.005b26d8
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x58c16d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58c163
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58c1d6
push edx
push ecx
call fcn.005b26d8
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x58c1b2
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58c1a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58c1d6
push edx
push ecx
call fcn.005b26d8
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b26e6
mov esp, ebp
pop ebp
ret 8
call fcn.005c1009
call fcn.005c1009
int3