Function at 0x1005573
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102416c]
and dword [ebp - 0x30], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x1d], 0
call fcn.01004b68
test ax, ax
mov dword [ebp - 0x1c], eax
jne 0x10055d3
test byte [0x102407c], 0x10
je 0x10057ed
push 0x1001318
push 0x38
jmp 0x10057dc
test ebx, ebx
jne 0x10055e3
mov dword [ebp - 0x18], 0x80004003
jmp 0x10058bf
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push 0x10031a4
push ebx
call dword [eax]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x10058bf
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x1b4]
cmp eax, ebx
je 0x100564a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100564a
test byte [0x102407c], 0x10
je 0x100563e
push 0x1001318
push 0x39
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x8004020d
jmp 0x10058bf
cmp dword [esi + 0xc], ebx
ja 0x1005658
cmp dword [esi + 8], 0x7fffffff
jbe 0x1005685
test byte [0x102407c], 0x10
je 0x1005679
push 0x1001318
push 0x3a
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x8004020e
jmp 0x10058bf
lea eax, [ebp - 0x26]
push eax
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push dword [esi]
mov ecx, edi
push eax
call fcn.01003c1e
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x24]
jmp 0x10056db
push dword [ebx + 0xc]
push dword [esi]
call fcn.01019f4d
test eax, eax
pop ecx
pop ecx
je 0x10057f9
cmp word [ebp - 0x26], 0
je 0x10056d9
movsx eax, word [ebp - 0x26]
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.01019f10
add esp, 0xc
test eax, eax
jne 0x10056d9
mov byte [ebp - 0x1d], 1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10056a2
cmp word [ebp - 0x26], bx
je 0x10056ea
cmp byte [ebp - 0x1d], bl
je 0x10056fc
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100355a
add dword [ebp - 0x1c], 2
movzx esi, word [ebp - 0x1c]
mov edi, dword [edi + 0xabc]
mov eax, dword [edi]
mov dword [ebp - 0x38], esi
add esi, 0x14
and esi, 0xfffffff8
add esi, 0x44
push esi
push edi
call dword [eax + 0xc]
mov ebx, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x14], esi
and byte [eax + 0x19], 0xef
mov eax, dword [ebp - 0x3c]
lea edi, [ebx + 0x44]
mov dword [ebx + 0xc], edi
mov esi, dword [eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x38]
lea edi, [ecx + eax]
mov al, byte [ebp - 0x1c]
mov dword [ebx + 0x10], edi
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x3c]
sub al, 2
mov byte [ebx + 0x42], al
mov al, byte [ebp - 0x26]
mov byte [ebx + 0x43], al
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
mov dword [ebx], ecx
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x24], ebx
mov dword [ebx + 4], ecx
mov dword [eax + 0x28], ebx
and dword [ebx + 0x18], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xa94]
add eax, dword [edi + 0x1d0]
push ebx
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x14]
mov ecx, edi
mov dword [ebx + 0x3c], eax
call fcn.01004bc1
test al, al
jne 0x100586c
test byte [0x102407c], 0x10
je 0x10057ed
push 0x1001318
push 0x3e
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x8004021d
jmp 0x10058bf
test byte [ebx + 0x18], 2
jne 0x1005840
test byte [0x102407c], 0x10
je 0x1005822
push dword [esi]
push 0x1001318
push 0x3b
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
cmp dword [ebp + 0x14], 0
jne 0x100579b
test byte [0x102407c], 0x10
je 0x1005863
push dword [esi]
push 0x1001318
push 0x3c
jmp 0x1005852
test byte [0x102407c], 0x10
je 0x1005863
push dword [esi]
push 0x1001318
push 0x3d
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
mov dword [ebp - 0x18], 0x80040224
jmp 0x10058bf
mov eax, dword [edi + 0xabc]
mov ecx, dword [eax]
push 0x40000
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x100588d
mov dword [ebp - 0x18], 0x8007000e
jmp 0x10058aa
mov esi, dword [ebx + 0x1c]
sub esi, dword [edi + 0x1d0]
mov ebx, dword [ebp - 0x2c]
shl esi, 0xb
test ebx, ebx
jne 0x10058d4
push 1
lea ecx, [edi + 0x30]
call fcn.01013c03
cmp dword [ebp - 0x1c], 0
je 0x10058bf
mov edi, dword [edi + 0xabc]
push dword [ebp - 0x1c]
mov eax, dword [edi]
push edi
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
call fcn.01019860
leave
ret 0x10
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x1b4]
test eax, eax
je 0x10058ef
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1005993
mov eax, 0x40000
cmp ebx, eax
jb 0x10058ff
mov ebx, eax
mov dword [ebp - 0x28], ebx
jmp 0x100591b
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx + 0x7ff]
and ecx, 0xfffff800
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push ebx
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x10058aa
cmp dword [ebp - 0x44], ebx
jne 0x10059c0
push dword [ebp - 0x1c]
add ebx, 0x7ff
mov dword [ebp - 0x24], ebx
and word [ebp - 0x24], 0xf800
push dword [ebp - 0x24]
mov ecx, edi
push esi
call fcn.01003fd8
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x10058aa
add esi, dword [ebp - 0x24]
shr ebx, 0xb
add dword [edi + 0xa94], ebx
mov eax, dword [edi + 0xa94]
cmp dword [edi + 0x1d4], eax
jbe 0x10059ed
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x2c], eax
jne 0x10058d1
jmp 0x10058a0
test byte [0x102407c], 0x10
je 0x10059b4
push 0x1001318
push 0x3f
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x8004020d
jmp 0x10058aa
test byte [0x102407c], 0x10
je 0x10059e1
push 0x1001318
push 0x40
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x80040217
jmp 0x10058aa
test byte [0x102407c], 0x10
je 0x1005a0e
push 0x1001318
push 0x41
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
mov dword [ebp - 0x18], 0x8004021c
jmp 0x10058aa