Function at 0x4476d0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x124
xor ecx, ecx
push ebx
mov dword [esp + 0x16], ecx
push ebp
mov dword [esp + 0x1e], ecx
push esi
mov dword [esp + 0x26], ecx
push edi
mov edi, dword [esp + 0x138]
mov word [esp + 0x2e], cx
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
mov dword [esp + 0x28], ecx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x20], ax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebp, 1
and ecx, 3
push 0xa
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
mov byte [esp + 0x17], bl
push ecx
mov byte [esp + 0x35], 4
lea edi, [esp + 0x3c]
mov dword [esp + 0x24], ebp
call fcn.005054a0
mov esi, eax
add esp, 8
test esi, esi
je 0x447786
push 0
push edi
mov byte [esi], 0
call fcn.00431ec0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ecx
jle 0x44776d
mov dword [esp + 0x14], eax
lea edi, [esi + 1]
push 0xa
push edi
inc ebp
call fcn.005054a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x447753
mov dword [esp + 0x1c], ebp
push 0
push edi
call fcn.00431ec0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ecx
jle 0x44779d
mov dword [esp + 0x14], eax
mov eax, dword [0x8e48cc]
test eax, eax
jne 0x44782a
mov edx, dword [esp + 0x14]
push 1
push 4
mov dword [0x8e48cc], 1
lea eax, [edx + 0x5f]
mov dword [0x51f6b0], 0xfffffffe
cdq
and edx, 0x3f
add eax, edx
lea edx, [ebp - 1]
mov esi, eax
mov eax, dword [0x51cc78]
sar esi, 6
lea ecx, [eax + 2]
mov eax, 0x280
imul ecx, edx
shl esi, 6
sub eax, esi
add ecx, 0x60
cdq
sub eax, edx
push ecx
mov edi, eax
mov eax, 0x1e0
sub eax, ecx
push esi
cdq
sub eax, edx
mov dword [0x8e4188], esi
sar eax, 1
sar edi, 1
push eax
push edi
mov dword [0x8e4538], ecx
mov dword [0x8e3e70], edi
mov dword [0x8e4164], eax
call fcn.004d15e0
add esp, 0x18
mov dword [0x8e538c], eax
mov eax, dword [0x51cc78]
lea edi, [ebp - 1]
add eax, 2
mov ecx, dword [0x8e4164]
imul eax, edi
mov edx, dword [0x8e4188]
add ecx, eax
mov eax, 0x55555556
push 0xffffffffffffffff
imul edx
mov eax, edx
mov dword [esp + 0x34], edi
shr eax, 0x1f
add edx, eax
mov eax, dword [0x8e3e70]
add edx, eax
lea eax, [ecx + 0x4e]
push eax
add ecx, 0x3d
lea eax, [edx + 0x21]
add edx, 0xffffffdf
push eax
push ecx
push edx
call fcn.004d1a20
add esp, 0x14
test eax, eax
je 0x44787f
mov bl, 1
mov ecx, dword [0x51cc78]
mov edx, dword [0x8e4164]
add ecx, 2
mov eax, dword [0x8e4188]
imul ecx, edi
add ecx, edx
lea edx, [eax + eax]
mov eax, 0x55555556
push 0xffffffffffffffff
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x8e3e70]
add eax, edx
lea edx, [ecx + 0x4e]
push edx
add ecx, 0x3d
lea edx, [eax + 0x21]
add eax, 0xffffffdf
push edx
push ecx
push eax
call fcn.004d1a20
add esp, 0x14
test eax, eax
je 0x4478d3
mov byte [esp + 0x13], 1
mov cl, byte [0xc1f474]
or eax, 0xffffffff
test bl, bl
je 0x4478e7
test cl, 1
je 0x4478e7
xor eax, eax
mov dl, byte [esp + 0x13]
test dl, dl
je 0x4478fb
test cl, 1
je 0x4478fb
mov eax, 1
jmp 0x447900
cmp eax, 0xffffffff
je 0x44795d
sub eax, 0
je 0x447912
dec eax
jne 0x44795d
mov dword [esp + 0x18], 2
jmp 0x44791a
mov dword [esp + 0x18], 1
push 0xf0
push 0x140
push 0x4f
call fcn.004f5670
mov eax, dword [0x8e538c]
add esp, 0xc
test eax, eax
je 0x447a9a
push eax
call fcn.004012c0
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [0x8e538c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, dword [0x8e538c]
test eax, eax
je 0x447a9a
cmp dword [eax + 0x170], 1
jl 0x447a9a
mov eax, dword [0x8e4188]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub eax, ebp
cdq
sub eax, edx
xor ebp, ebp
sar eax, 1
test ecx, ecx
mov dword [esp + 0x14], eax
lea esi, [esp + 0x34]
jle 0x4479ef
jmp 0x44799f
mov eax, dword [esp + 0x14]
mov ecx, dword [0x51cc78]
mov edx, dword [0x8e4164]
add ecx, 2
push 0
imul ecx, ebp
push 0
push esi
lea ecx, [ecx + edx + 0x1e]
mov edx, dword [0x8e3e70]
push 0
push 0
push 2
add edx, eax
push ecx
push edx
call fcn.0043c140
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
inc ebp
cmp ebp, eax
lea esi, [esi + ecx + 1]
jl 0x44799b
mov edi, dword [esp + 0x30]
mov ecx, dword [0x51cc78]
mov edx, dword [0x8e4164]
neg bl
sbb ebx, ebx
add ecx, 2
imul ecx, edi
lea eax, [esp + 0x20]
and ebx, 2
push eax
add ebx, 0x3b568
push 0
push ebx
lea eax, [ecx + edx + 0x45]
push 0xdf
push eax
mov eax, 0x55555556
imul dword [0x8e4188]
mov ebx, dword [0x8e3e70]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add edx, ebx
push edx
call fcn.004ec130
mov al, byte [esp + 0x2b]
lea edx, [esp + 0x38]
neg al
sbb eax, eax
push edx
and eax, 2
push 0
add eax, 0x3be4e
mov ecx, dword [0x8e4164]
push eax
mov eax, dword [0x51cc78]
add eax, 2
push 0xdf
imul eax, edi
mov esi, dword [0x8e3e70]
lea edx, [eax + ecx + 0x45]
mov eax, dword [0x8e4188]
push edx
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add edx, esi
push edx
call fcn.004ec130
add esp, 0x30
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret