Function at 0x1006c10c
Capabilities:
Encode data using base64

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x38
mov esi, ecx
mov ebp, edx
mov edi, eax
inc dword [0x10210938]
test ebp, ebp
je 0x1006c12a
mov dword [ebp], 0
test esi, esi
je 0x1006c134
mov dword [esi], 0
cmp dword [esp + 0x58], 0
je 0x1006c145
mov eax, dword [esp + 0x58]
mov dword [eax], 0
cmp dword [esp + 0x5c], 0
je 0x1006c156
mov eax, dword [esp + 0x5c]
mov dword [eax], 0
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x1006c164
mov dword [ebx], 0
cmp dword [esp + 0x64], 0
je 0x1006c175
mov eax, dword [esp + 0x64]
mov dword [eax], 0
cmp dword [esp + 0x68], 0
je 0x1006c188
mov eax, dword [esp + 0x68]
pxor xmm0, xmm0
movsd qword [eax], xmm0
cmp dword [esp + 0x6c], 0
je 0x1006c199
mov eax, dword [esp + 0x6c]
mov dword [eax], 0
cmp dword [esp + 0x70], 0
je 0x1006c1ac
mov eax, dword [esp + 0x70]
pxor xmm0, xmm0
movsd qword [eax], xmm0
cmp dword [esp + 0x74], 0
je 0x1006c1bd
mov eax, dword [esp + 0x74]
mov dword [eax], 0
push 1
call fcn.100e2550
push edi
call fcn.100e3660
add esp, 8
test eax, eax
jne 0x1006c1f6
test ebp, ebp
je 0x1006c1dc
mov dword [ebp], 1
call fcn.100e2480
push 0
call fcn.100e2550
pop ecx
mov eax, 3
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
call fcn.100e2200
push 0x8e97
call fcn.100e2420
push 6
call fcn.100e2220
push 8
call fcn.100e24a0
push 3
call fcn.100e22f0
add esp, 0x10
xor edi, edi
lea eax, [edi*4 + 0x10283900]
push eax
push edi
push 0
call fcn.100e2560
add esp, 0xc
inc edi
cmp edi, 0x40
jl 0x1006c21f
lea eax, [esp + 4]
call fcn.1006c610
mov edi, dword [0x10283994]
test edi, edi
je 0x1006c313
mov edx, dword [0x10283998]
mov eax, edi
and eax, 0xf800
shr eax, 0xb
mov dword [esp + 0x2c], eax
mov ecx, edi
and ecx, 0x780
shr ecx, 7
mov dword [esp + 0x28], ecx
and edi, 0x7f
add edi, 0x7d0
mov eax, edx
and eax, 0xf800
shr eax, 0xb
mov ecx, edx
and ecx, 0x780
shr ecx, 7
mov dword [esp + 0x34], ecx
mov ecx, edx
and ecx, 0x7f
add ecx, 0x7d0
mov dword [esp + 0x30], ecx
test edx, edx
jne 0x1006c2b1
mov dword [esp + 0x24], closesocket
jmp 0x1006c2d0
lea edx, [esp + 0x24]
push edx
push dword [esp + 0x34]
push dword [esp + 0x3c]
push eax
push edi
push dword [esp + 0x3c]
push dword [esp + 0x44]
call fcn.100db170
add esp, 0x1c
lea eax, [esp + 0x30]
push eax
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 0x18]
push edi
push dword [esp + 0x3c]
push dword [esp + 0x44]
call fcn.100db170
add esp, 0x1c
mov eax, dword [0x1028399c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
ja 0x1006c317
mov edx, dword [esp + 0x30]
cmp edx, eax
ja 0x1006c317
test ecx, ecx
jl 0x1006c317
test edx, edx
jl 0x1006c317
cmp edx, ecx
jl 0x1006c317
xor edi, edi
jmp 0x1006c333
mov eax, 0x8ff
mov dword [0x10283998], eax
push eax
push 0x26
push 0
call fcn.100e2510
add esp, 0xc
mov edi, 1
push 0x2e
call fcn.100e22f0
push 0x10
call fcn.100e22f0
add esp, 8
call fcn.1006c670
cmp eax, 1
jne 0x1006c373
test ebp, ebp
je 0x1006c359
mov dword [ebp], 2
call fcn.100e2480
push 0
call fcn.100e2550
pop ecx
mov eax, 3
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
call fcn.100e2200
push 6
call fcn.100e2220
push 8
call fcn.100e24a0
push 0x62ab
call fcn.100e2420
push 3
call fcn.100e22f0
push 0x872a
call fcn.100e2420
push 6
call fcn.100e2220
push 3
call fcn.100e22f0
add esp, 0x1c
call fcn.100e23a0
push 0xd
call fcn.100e2220
push 0x47
call fcn.100e22f0
push 8
call fcn.100e24a0
push 0x1d
call fcn.100e22f0
push 0x61
call fcn.100e22f0
push 0xc
call fcn.100e2220
push 0x11
call fcn.100e2220
push 0x3f
call fcn.100e22f0
push 8
call fcn.100e24a0
push 0x18
call fcn.100e22f0
push 0x3f
call fcn.100e22f0
push 0x14
call fcn.100e2220
push 8
call fcn.100e24a0
push 0x10
call fcn.100e22f0
push 0x3d
call fcn.100e22f0
add esp, 0x3c
call fcn.100e23a0
push 0xf
call fcn.100e22f0
push 0x4c
call fcn.100e22f0
push 0x59
call fcn.100e2220
push 8
call fcn.100e24a0
push 0x52
call fcn.100e2220
push 8
call fcn.100e24a0
push 0xb
call fcn.100e22f0
push 0x41
call fcn.100e22f0
push 0xe
call fcn.100e2220
push 8
call fcn.100e24a0
add esp, 0x28
test esi, esi
je 0x1006c47c
mov eax, dword [0x10283954]
mov dword [esi], eax
cmp dword [esp + 0x58], 0
je 0x1006c48e
mov eax, dword [0x10283900]
mov edx, dword [esp + 0x58]
mov dword [edx], eax
test ebx, ebx
je 0x1006c499
mov eax, dword [0x102839e4]
mov dword [ebx], eax
cmp dword [esp + 0x68], 0
je 0x1006c4c5
mov eax, dword [0x102839f8]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101e41c0]
divsd xmm0, qword [0x101e41d0]
mov edx, dword [esp + 0x68]
movsd qword [edx], xmm0
cmp dword [esp + 0x70], 0
je 0x1006c4f1
mov eax, dword [0x102839f0]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101e41c0]
divsd xmm0, qword [0x101e41d0]
mov edx, dword [esp + 0x70]
movsd qword [edx], xmm0
mov edx, dword [0x10283900]
mov ecx, dword [0x10283944]
and edx, 0xf
xor eax, eax
test edx, edx
jbe 0x1006c51b
xor ebx, ebx
lea ebp, [ecx + ecx]
movzx esi, bp
shr ecx, 0xf
and ecx, 1
or ecx, esi
inc ebx
cmp ebx, edx
jb 0x1006c508
mov ebp, ecx
and ebp, 3
je 0x1006c534
xor ebx, ebx
lea esi, [edx + edx]
and esi, 0xf
shr edx, 3
or edx, esi
inc ebx
cmp ebx, ebp
jb 0x1006c524
inc eax
cmp eax, 0x14
jl 0x1006c502
cmp dword [esp + 0x5c], 0
je 0x1006c54c
mov eax, dword [esp + 0x5c]
shl edx, 0x10
or edx, ecx
mov dword [eax], edx
cmp dword [esp + 0x64], 0
je 0x1006c59e
mov edx, dword [0x1028399c]
cmp edx, 0xffff
je 0x1006c594
cmp dword [0x10283994], 0
jne 0x1006c572
mov eax, dword [esp + 0x64]
mov dword [eax], edx
jmp 0x1006c59e
mov eax, dword [esp + 0x30]
cmp eax, edx
jae 0x1006c57e
test edi, edi
je 0x1006c58a
mov eax, dword [esp + 0x64]
mov dword [eax], 0
jmp 0x1006c59e
sub edx, eax
mov eax, dword [esp + 0x64]
mov dword [eax], edx
jmp 0x1006c59e
mov eax, dword [esp + 0x64]
mov dword [eax], 0xffffffff
cmp dword [esp + 0x6c], 0
je 0x1006c5c3
mov eax, dword [0x10283948]
cmp eax, 0xffff
je 0x1006c5b9
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
jmp 0x1006c5c3
mov eax, dword [esp + 0x6c]
mov dword [eax], 0xffffffff
cmp dword [esp + 0x74], 0
je 0x1006c5e8
mov eax, dword [0x10283958]
cmp eax, 0xffff
je 0x1006c5de
mov edx, dword [esp + 0x74]
mov dword [edx], eax
jmp 0x1006c5e8
mov eax, dword [esp + 0x74]
mov dword [eax], 0xffffffff
call fcn.100e2410
call fcn.100e2480
push 0
call fcn.100e2550
pop ecx
xor eax, eax
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret